View Full Version : How to Hook/Show latest threads in a specific forunm....?
Say the forum id was 1 what is the code to hook the latest threads in that forum?
i want this in my side column?
any help?
--------------- Added 1224345988 at 1224345988 ---------------
????????
Lynne
10-18-2008, 03:13 PM
You may want to look at the modifications for this (search "latest" "all mods" "titles only") .
nope, any help there should just be abit of code to hook surely?1
Lynne
10-20-2008, 02:30 PM
How about this method (make sure to see post 3 also) - http://www.vbulletin.com/forum/showthread.php?t=283817
thank you, great mod btw.
--------------- Added 1224529342 at 1224529342 ---------------
ok 1 problem doesnt seem to be working great for some reason it's not hooking every thread i post in that forum
this is my code,
<tr>
<td class="alt1">
<!-- show latest active threads -->
<table cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tbody>
<tr>
<td colspan="2">
<a href="search.php?do=getnew">Latest Active Threads</a>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td width="100%">
<div>
<script type="text/javascript" src="external.php?forumids=32,37,38,39,40&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 8; x++)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />");
}
//-->
</script></div>
</td>
</tr>
</tbody>
<!-- show latest active threads -->
</table>
<br />
</td>
</tr>
any help?
Lynne
10-20-2008, 06:32 PM
I've never used the script before. However, you should be aware that using any method that uses external.php will only give you threads that are available for unregistered users to see. If you need to see threads in other forums, you'll either have to modify external.php to allow those forumids or you'll have to use code that makes the query for those threads.
ok so i think its working, it just takes its time to load new threads created....anyway to speed this up?
--------------- Added 1224532831 at 1224532831 ---------------
any other ideas on how to do this better ?
Lynne
10-20-2008, 07:18 PM
I use an actually query for my home page. But then, I grab more than just basic thread info for my home page so it's not a 'normal' threads query.
it works just it's slow....surely i can speed it up somhow?
any other suggestions?
Lynne
10-20-2008, 08:31 PM
My only suggestions are get it from external.php or get it from a query. I don't know what else to suggest.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.