PDA

View Full Version : Can I show latest sticky threads?


marshill
02-21-2007, 04:05 AM
I have this code I use on my HTML page to show the 10 latest threads:

<script type="text/javascript" src="forums\external.php?forumids=4,36&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 10; x++)
{
document.writeln("<a href=\"forums/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><font color=#9C8A88> <i>("+threads[x].threaddate+")</font></i> <br>");
}
//-->
</script>


how can I make it show only Stickied threads? I want the 10 lastest stickies.

is this possible? thanks!

anyone know? I'm getting buried here....wont bump again, but would love to know if this is possible

s.sami
09-12-2011, 11:59 AM
i am also searching this ??

BirdOPrey5
09-16-2011, 07:17 PM
Not with the javascript code posted.

Where is the array threads[x].threadid coming from? You would have to track that down and alter the database query being made.