PDA

View Full Version : Java Feeds...


MajorFm.com
01-16-2005, 10:19 PM
Please advise... I have the following code to pull thread titles on a java feed...

<script type="text/javascript" src="http://www.majorfm.com/forum/external.php?type=js&forumids=118,119,120,121,122,123,124,125"></script>
<script type="text/javascript">
<!--
var max = 40;
if(threads.length < max) max = threads.length;
for(i = 0; i < max; i++)
{
if (threads[i].title.length > 31)
{ threads[i].title = threads[i].title.substring(0, 31) + '...'; }
document.writeln("<img border=\"0\" src=\"http://www.majorfm.com/images/news.gif\" width=\"11\" height=\"11\"><a href=\"http://www.majorfm.com/forum/showthread.php?t=" + threads[i].threadid + "\">" + threads[i].title + "</a> <br>");
}
//-->
</script>

However it only ever pulls 15 titles, i want atleast 40

How do i do this...

Please advise...

MajorFm.com
01-16-2005, 11:04 PM
and can i display threads from specific keywords?

e.g. all threads about tupac etc....

deathemperor
01-17-2005, 01:23 AM
you mean Javascript, right ?

don't misunderstand it, Java is totally different with JavaScript.

MajorFm.com
01-17-2005, 03:49 PM
Sorry yer i mean javascript feeds, the feed that built into the forum...

deathemperor
01-18-2005, 05:15 AM
I think the number 15 was set in your ACP (15 threads per page), to change it you need to edit it in your ACP or write a new query to take 40 rows from the database.

MajorFm.com
01-18-2005, 12:29 PM
I dont see where the option is...?

deathemperor
01-18-2005, 01:00 PM
ACP -> vBulletin Options -> Forum Display Options (forumdisplay) -> Maximum Displayed Threads Before Page Split

MajorFm.com
01-18-2005, 03:42 PM
No i mean the list of the javascript feed, not the threads per forum...

check the feed at www.majorfm.com/main.shtml under current urban news...

deathemperor
01-19-2005, 10:26 AM
as I said before, you will need to change the query LIMIT to the number you want, the current number is probally 15.

What is that portal btw ?

MajorFm.com
01-19-2005, 11:15 AM
Its not a portal, its my design, the forum was skinned around my design :-)

So there is no way of changeing the length of the Javascript feed without changeing the threads per page? because i wanted to have diffrent length's per feed etc...