The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help Stuck
Hello,
i been looking all over the internet and i still cant find out how to do this im stuck I know you need to edit a VBulletin file to get these: Shows the latest threads from the VBulletin forum. I got mine code in the header: <script type="text/javascript" src="http://www.habbofaithforum/external.php?type=js"></script> another site has theirs like: <script type="text/javascript" src="http://www.clubhabboforum.net/external.php?type=js"></script> So i know i need to edit the external.php but i dont know what as i could muck it all up and reck my forum. The code for the image is: (theres) Code:
<script language="" type="text/javascript"> <!-- function trim(str, chars) { return ltrim(rtrim(str, chars), chars); } function ltrim(str, chars) { chars = chars || "\\s"; return str.replace(new RegExp("^[" + chars + "]+", "g"), ""); } function rtrim(str, chars) { chars = chars || "\\s"; return str.replace(new RegExp("[" + chars + "]+$", "g"), ""); } for (x = 0; x < 4; x++) { title = threads[x].title; title = title.split(" "); for( i = 0; i < 4; i++ ) { if( !title[i] ) { title[i] = ""; } } title = title[0] + " " + title[1] + " " + title[2] + " " + title[3]; title = trim( title ); if( title.length > 25 ) { title = title.slice( 0, 24 ); } title = title + "..."; document.writeln("» <a href=\"http://www.clubhabboforum.net/showthread.php?t="+threads[x].threadid+"\" target=\"_blank\" class=\"green\">"+title+"</a><br /><i>Posted By "+threads[x].poster+" on "+threads[x].threaddate+"</i><br />"); } //--> </script> Code:
<script language="" type="text/javascript"> <!-- function trim(str, chars) { return ltrim(rtrim(str, chars), chars); } function ltrim(str, chars) { chars = chars || "\\s"; return str.replace(new RegExp("^[" + chars + "]+", "g"), ""); } function rtrim(str, chars) { chars = chars || "\\s"; return str.replace(new RegExp("[" + chars + "]+$", "g"), ""); } for (x = 0; x < 4; x++) { title = threads[x].title; title = title.split(" "); for( i = 0; i < 4; i++ ) { if( !title[i] ) { title[i] = ""; } } title = title[0] + " " + title[1] + " " + title[2] + " " + title[3]; title = trim( title ); if( title.length > 25 ) { title = title.slice( 0, 24 ); } title = title + "..."; document.writeln("<a href=\"http://www.habbofaithforum.com/showthread.php?t="+threads[x].threadid+"\" target=\"_blank\" class=\"green\">"+title+"</a><br />Posted By "+threads[x].poster+"<br />"); } //--> </script> Enable External Javascript Enabling this option will allow people to receive a feed of the latest threads in specific forum(s). This may be included into a webpage to provide dynamic content. The option refers specifically to a Javascript feed is set to yes :s --------------- Added [DATE]1282408283[/DATE] at [TIME]1282408283[/TIME] --------------- Dont matter - VBulletin Staff supported me please close |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|