Version: , by epic
Developer Last Online: Aug 2004
Version: 2.2.x
Rating:
Released: 11-20-2001
Last Update: Never
Installs: 5
No support by the author.
newsfaderHACK--ZTSKY,2001.04.23
This zip file has three files:newsfader.php??fader.js??newshackforvb2
******abolve is originally author's info ******
******rehacked to 220??221 by arrow??2001,11,18******
================================================== ===
My zip file has three files:newsfader.php??fader.js??newshackforvb220_22 1en.txt??this file??
First excuse my worse english,let's start to hack
$permissions=getpermissions();
if (!$permissions['canview']) {
show_nopermission();
}
Below it add code??
// newsfade hack start
$newsfadebits = "";
$newsfades=$DB_site->query("SELECT title,pagetext FROM announcement WHERE enddate>='$datenow' 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);
// newsfade hack end
3??Modify template??forumhome
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
4??upload newsfader.php to your forum's admin directory;
upload fader.js to your forum's root directory;
upload fade.gif to your forum's root directory,it's ok now!
Can u enjoy it?
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by squawell first thankz for this hack but i have one problem
PHP Code:
$newsfadebits = "\"welcome new member<b>$newusername</b>\",\"\",\n";
i use this code but it did not show up the username
what's wrong??
You have to move the code for index.php further down the page. $newusername hasn't been determined yet if you put it where the instructions say. I put it right after:
PHP Code:
// get newest member
$getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]");
$newusername=$getnewestusers['username'];
$newuserid=$getnewestusers['userid'];
Originally posted by FWC You have to move the code for index.php further down the page. $newusername hasn't been determined yet if you put it where the instructions say. I put it right after:
PHP Code:
// get newest member
$getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]");
$newusername=$getnewestusers['username'];
$newuserid=$getnewestusers['userid'];