The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Please advise... I have the following code to pull thread titles on a java feed...
Code:
<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>
How do i do this... Please advise... |
|
#2
|
|||
|
|||
|
and can i display threads from specific keywords?
e.g. all threads about tupac etc.... |
|
#3
|
||||
|
||||
|
you mean Javascript, right ?
don't misunderstand it, Java is totally different with JavaScript. |
|
#4
|
|||
|
|||
|
Sorry yer i mean javascript feeds, the feed that built into the forum...
|
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
|||
|
|||
|
I dont see where the option is...?
|
|
#7
|
||||
|
||||
|
ACP -> vBulletin Options -> Forum Display Options (forumdisplay) -> Maximum Displayed Threads Before Page Split
|
|
#8
|
|||
|
|||
|
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... |
|
#9
|
||||
|
||||
|
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 ? |
|
#10
|
|||
|
|||
|
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... |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|