سلام
جهت نمايش آخرين تاپيك هاي ارسال شده در انجمنهاي vBulletin در بخشهاي ديگر سايت خود كافيست كد زير را در آن صفحه قرار دهيد:
کد HTML:
<script src="http://forum.senatorha.com/external.php?type=JS"></script>
سپس با استفاده از كد جاوا اسكريپت زير ميتوانيد آخرين ارسالها را نمايش دهيد:
کد HTML:
<script type="text/javascript">
for (i=0; i<=15; i++) {
document.write('<a href="http://forum.senatorha.com/showthread.php?t=', threads[i].threadid, '" target="_blank" title="Author : ', threads[i].poster, ' in ', threads[i].threaddate, '-', threads[i].threadtime, '">', threads[i].title, '</a><br>');
}
</script>
با اين كار آخرين ارسالهاي انجمنهاي شما در هرجايي كه تمايل داشته باشيد نمايش داده خواهد شد.
حالا براي مثال و براي اينكه حالت Scrollداشته باشد آخرين ارسالها از كد زير استفاده كنيد:
کد HTML:
<marquee direction="up" scrolldelay="30" scrollamount="1" onmouseover="stop();" onmouseout="start();">
<script type="text/javascript">
for (i=0; i<=15; i++) {
document.write('<a href="http://forum.senatorha.com/showthread.php?t=', threads[i].threadid, '" target="_blank" title="Author : ', threads[i].poster, ' in ', threads[i].threaddate, '-', threads[i].threadtime, '">', threads[i].title, '</a><br>');
}
</script>
</marquee>
توجه داشته باشيد در همه قسمتهاي به جاي http://forum.senatorha.com آدرس انجمنهاي خود را قرار دهيد.
موفق باشيد
__________________