PDA

View Full Version : external.php quick question - latest replies, not newest threads?


psoexplorer
09-14-2005, 09:56 AM
I'm currently using the following code to show the latest threads from my forum on my main site.

<script type="text/javascript" src="http://www.mysite.com/forum/external.php?type=js"></script>

<script type="text/javascript">
<!--
CutOff = 16 // Number of maximum chars to cut off before adding '...'

function cutOffTitle(title)
{
if (title.length > CutOff)
{
title = title.substring(0, 16) + '..'
}

return title
}

for (var i = 0; i < 7; i++)
{
document.write('<a href="http://www.mysite.com/forum/showthread.php?t=' + threads[i]['threadid'] + '">' + cutOffTitle(threads[i]['title']) + '</a><br />');
}
//-->
</script>


My question is - what do I need to change/add to make the listings show the most recently updated threads? For example, if a thread is made, and then a week later somebody posts a new reply, it will show up in the list as the latest change to that thread. Because right now it merely shows the latest NEW threads.

psoexplorer
09-15-2005, 12:15 PM
If nobody really knows, could you direct me to a site/manual that shows all the options for external.php? I cant seem to find anything on it..

psoexplorer
09-17-2005, 05:36 PM
Bump....

Marco van Herwaarden
09-17-2005, 06:19 PM
There should be info on this in the vB manual and at vbulletin.com

psoexplorer
09-17-2005, 09:25 PM
Vbulletin.com admins told me to come here. There's nothing in the manual about changing what it shows...

Marco van Herwaarden
09-18-2005, 04:46 AM
Are you using 3.0 or 3.5?

psoexplorer
09-18-2005, 02:06 PM
3.0.7 .......there's a 3.5???