The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Select Forum ID help
OK i am trying to use a MOD from here but i want it to show ONLY 1 select forum id rather that all the threads
The code i have is: <!--ticker--> <div id="ticker-wrapper" class="no-js"> <ul id="js-news" class="js-hidden"> <script type="text/javascript" src="{vb:raw vboptions.bburl}/external.php?&type=js"></script> <script type="text/javascript"> <!-- for (var i = 0; i < threads.length; i++) { document.write('<li><a href="{vb:raw vboptions.bburl}/showthread.php?t=' + threads[i]['threadid'] + '">' + threads[i]['title'] + '</a>' + ' ' + '<span style="color: red;">Posted By:</span>'+ ' ' + threads[i]['poster'] + '</a>' + '</li>'); } //--> </script> </ul> </div> <!--ticker--> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> <script src="js/jquery.ticker.js" type="text/javascript"></script> <script type="text/javascript" src="{vb:raw vboptions.bburl}/external.php?&type=js"></script> <script type="text/javascript"> $(function () { $('#js-news').ticker(); }); </script> Can anyone help on what i would add to make it show ONLY say forum ID 442 ? Many thanks |
#2
|
|||
|
|||
Try this:
Code:
<script type="text/javascript" src="{vb:raw vboptions.bburl}/external.php?&type=js&forumid=442"></script> (add part in red to existing line - scroll right to see the part to be added). |
#3
|
||||
|
||||
Ive added that but no change
|
#4
|
|||
|
|||
I missed that you were calling external twice. That's not necessary unless you want different forums for the recent threads and the ticker (or did you only mean to use one or the other?). In any case, try this:
Code:
<!--ticker--> <div id="ticker-wrapper" class="no-js"> <ul id="js-news" class="js-hidden"> <script type="text/javascript" src="{vb:raw vboptions.bburl}/external.php?&type=js&forumid=442"></script> <script type="text/javascript"> <!-- for (var i = 0; i < threads.length; i++) { document.write('<li><a href="{vb:raw vboptions.bburl}/showthread.php?t=' + threads[i]['threadid'] + '">' + threads[i]['title'] + '</a>' + ' ' + '<span style="color: red;">Posted By:</span>'+ ' ' + threads[i]['poster'] + '</a>' + '</li>'); } //--> </script> </ul> </div> <!--ticker--> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> <script src="js/jquery.ticker.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $('#js-news').ticker(); }); </script> This writes out links to the recent threads, and also sets up the ticker. If you don't mean to do both then you should remove some of that code. |
#5
|
||||
|
||||
Its a MOD on here that some are having issues with
I have managed to fix 1 issues myself due to no answer from the original coder It is meant to show a news ticker for latest threads BUT i ONLY want to show the forum id 442 So the ticker displays the threads from ONLY forum id 442 Cheers |
#6
|
|||
|
|||
OK, if this is a mod then you should be asking for help in the mod thread.
|
#7
|
||||
|
||||
I have asked but no reply at all
As stated i fixed 1 issue others were having myself to get it showing correctly on my forums but its showing ALL threads when i want it to show ONLY forum ID 442 |
#8
|
|||
|
|||
I'm just telling you what the forum rules are. I should have noticed that you said it was a mod in your first post.
Also, if that's most or all of the code for the mod it shoudn't be posted here. |
#9
|
||||
|
||||
It seems when i add "&forumid=442" it stops working
If i remove that, It shows ALL threads --------------- Added [DATE]1334262053[/DATE] at [TIME]1334262053[/TIME] --------------- So if the coder does not answer a support question i can not ask the community on how to make it work ? |
#10
|
|||
|
|||
People can respond in the mod thread. If you'll post the link to the thread I'll try to help you there.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|