The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#72
|
|||
|
|||
See my earlier post regarding that...they are no longer using straight HTML anymore, they are using arrays.
They've replaced all that code with the following line: PHP Code:
|
#74
|
|||
|
|||
how do I add this line into the news fader?
The $bbtitle member of the day is <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$memberoftheday[userid]">$memberoftheday[username]</a> please tell me thanks... |
#75
|
||||
|
||||
Ok, I re-wrote the hack to work on 2.2.4 with code from the posts of BitBender and PBC.
Just thought I'd make it a bit easier for some of the newer php hackers to install this. vBulletin Newsfader Hack for 2.2.4 Files to edit: vb/admin/index.php vb/index.php Template to edit: forumhome *********************************** **1)open ADMIN/INDEX.PHP and find** *********************************** makenavoption("Add","announcement.php?action=add", "|"); makenavoption("Modify","announcement.php?action=mo dify"); makenavselect("Announcements"); // *** ************************** **just below it,add this** ************************** // start of newsfader hack makenavoption("Add","newsfade.php?&action=add","|" ); makenavoption("Edit","newsfade.php?&action=modify" ,"|"); makenavselect("Forum News"); // end of newsfader hack ******************* **save and upload** ******************* ****************************** **2)open vb/index.php and find** ****************************** if ($birthdays) { eval("\$birthdaybits = \"".gettemplate("forumhome_birthdaybit")."\";") ; } } ************************** **just below it add this** ************************** // Hack newsfade $newsfadebits = "\"<b><i>Welcome to $bbtitle</b></i>\",\"\",\n"; $newsfades=$DB_site->query("SELECT title,pagetext FROM announcement WHERE enddate>=$today AND forumid=0 ORDER BY startdate DESC"); while ($newsfade=$DB_site->fetch_array($newsfades)) { $newsfadebits.="\"".addslashes($newsfade[pagetext])."\",\"$newsfade[title]\",\n"; } $newsfadebits = substr($newsfadebits,0,-2); // End Hack newsfade *************************************** **3)edit template forumhome and find:** *************************************** <meta name="description" content="$bbtitle is a discussion forum powered by vBulletin. To visit the forum, go to $bburl/ . To find out about vBulletin, go to http://www.vbulletin.com/ ."> <title>$bbtitle - powered by vBulletin</title> $headinclude ********************* **Just below it,add** ********************* <SCRIPT LANGUAGE='JavaScript1.2' TYPE='text/javascript'> prefix=""; arNews = [ $newsfadebits ] </SCRIPT> <SCRIPT LANGUAGE='JavaScript1.2' SRC='fader.js' TYPE='text/javascript'></script> **************note: this should be added before "$header"************** ************* **then find** ************* $unregwelcomemessage </table> <!-- /text --> <br> <!-- main --> ******************************* **just below it,add this code** ******************************* <table bgcolor="{tablebordercolor}" cellpadding="4" cellspacing="1" width="100%" border="0"> <TR bgcolor="{tableheadbgcolor}" id=cat><TD colspan=6> <normalfont color="{categoryfontcolor}">Forum News</normalfont></td> </tr> <tr><td colspan=6 bgcolor="#f7f7f7" height=30 valign="top" align="center"> <div id="elFader" style="position:relative;visibility:hidden;width:5 00"><div align="center">Forum news</div></div> </td></tr> <table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td> **********upload NEWSFADER.PHP to you vb/ADMIN **********upload FADER.JS to your vb/ **********go to you vb/ADMIN modify or post a news! You're done. |
#76
|
||||
|
||||
okay I have this installed on vb 2.2.6 but for some reason, my news only last one day , anyone have a fix to this problem
|
#77
|
|||
|
|||
Quote:
god i was such a newb back then. its also nice to know that ppl were hacking there boards on september 11 last year hypedave i might install this again but at the moment i dunno so i cant really help you. this hack might be out of date. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|