LiveLoad chargement des sujets sur le forum- Les thèmes seront chargés par défilement:
Installation
Ouvrez /templates/template/bullet_energy/block_topic.tpl
Rechercher:
<ol class="listTopicBlock" id="contentBoxAppendTo">
{listTopic}
</ol>
<div class="sepBoxBot"><span><a id="ajaxGetTopic" onclick="doTopicGetAjax(); return false;" data-type="2">Afficher plus de sujets</a></span></div>
</script>
var loading = false;
$(window).scroll(function(){
if((($(window).scrollTop()+$(window).height())+250)>=$(document).height()) {
if(loading == false) {
loading = true;
var a = $("#ajaxGetTopic").attr("data-type");
if (!a) {
loading = true;
return false;
}
ShowLoading("");
$.post(document.URL, {action: "categories",page: a}, function (a) {
if (a.param == 1) {
$("#paginationForum").replaceWith(a.pagination);
$("#ajaxGetTopic").replaceWith(a.linck);
$(a.data).appendTo("#contentBoxAppendTo")
loading = false;
} else {
loading = true;
}
}, "json");
HideLoading("");
}
}
});
Auteur: Inconnu