![]() |
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 1??Open file: admin/index.php Find?? makenavoption("Add","announcement.php?action=add", "|"); makenavoption("Modify","announcement.php?action=mo dify"); makenavselect("Announcements"); // *** Below it add code?? makenavoption("Add","newsfade.php?action=add","|") ; makenavoption("Modify","newsfade.php?action=modify "); makenavselect("News"); // *** 2??Open file: index.php Find?? $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 Below it add code?? <SCRIPT LANGUAGE='JavaScript1.2' TYPE='text/javascript'> prefix=""; arNews = [ $newsfadebits ] </SCRIPT> <SCRIPT LANGUAGE='JavaScript1.2' SRC='fader.js' TYPE='text/javascript'></script> </head> <body> ??note: add before $header?? Conitue find?? $unregwelcomemessage </table> <!-- /text --> <br> <!-- main --> Below it add code?? <table bgcolor="#0A293E" cellpadding="4" cellspacing="1" width="100%" border="0"> <TR bgcolor="#1D6AA0" id=cat><TD colspan=6> <normalfont color="#000000">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 bgcolor="#0A293E" cellpadding="4" cellspacing="1" width="100%" border="0"> <tr align="center"> 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? |
ummm, sorry but can someone explain the £º and other odd charatcers Im not understanding? (maybe its a canadian thing)
|
There just from a diffrent language... Just take all the odd ones out, and it will be regular... :p
-Syphin |
I see ZTSKY, so I'm assuming those characters are Chinese chars.
|
first thankz for this hack but i have one problem
PHP Code:
what's wrong?? |
1. use "ultra edit32" open hack's txt file.
2. this hack can use in vbb220 or vbb221 because this code: $newsfades=$DB_site->query("SELECT title,pagetext FROM announcement WHERE enddate>='$datenow' AND forumid=0 ORDER BY startdate DESC"); 3. this code $newsfadebits = "\"welcome new member<b>$newusername</b>\",\"\",\n"; I have no time to test.Because i have not use this code. :rolleyes: |
Quote:
PHP Code:
|
Quote:
i moved this code and it work~~ thankz~~u give me a big help again!!:D |
Quote:
|
Any change that this gonna work on 2.0.3?
|
would it work with vb2.0.3?
|
this is just the update for VB 2.20 1
|
wait i am pitigul...... I installed it but now how do i put in news?
|
Just a side note:
I did NOT write this hack, and have nothing to do with it. |
Quote:
Add | Modify |
I would love to see what this does first...
|
installed, and it works
but im having some problems? I want ALL text to be BOLD and all links to be BOLD+UNDERLINED but when I input this into the fader, it doesnt work help? here is my fader file: |
Quote:
|
Hey what do i add, to make it say, welcome to our nbewest member ______
|
Quote:
PHP Code:
|
arg, im so lazy tho...
|
hmmmmm thanks for your help, but it only says welcome to or newest member, by the way i am using 2.2.1 so maybe its a different code?
THANKSA!! |
Quote:
|
Quote:
And that vBStats thread was insane! but worth every bit! |
Quote:
|
I just reread the instructions. Didn't realize I had to move the entire hack below that line. DOH :D
|
Quote:
|
Well acutally no it's not now either :(
I made the changes, but it only shows the new member, then it cycles away and nothing comes up. I added a test news messge too:( |
:rolleyes:
again I misspoke. It cycles to my test message but because I hyperlinked it, it's the same color as the bacground:D How do I change the fader background color? and font color on fader itself? Also, it cylces to my test message and stops. shouldn't it keep going in a circle back to newest member? |
Quote:
|
Can I use the vbulletin variables like {tableheadcolor} in the .js file?
THANK YOU:D:D:D:D:D:D |
No you can't I find out;)
All is working! Thanks FWC!! and Arrow for this hack!! |
Thank You, Thank You, Thank You !!
It's working great ! |
One question, i added:
PHP Code:
PHP Code:
but it dont scrolls to the next news item, it only says welcome to our newest member :( Does anyone know how 2 fix this? |
I had the same problem, the solution is on page 1 of this hack, you need to move ALL the code below a certain point.
|
Anyone know how I can have birthdays auto-show in there for 1 day?
|
that would be sweet, the birth day thingy!
|
Quote:
PHP Code:
PHP Code:
|
Quote:
PHP Code:
|
Or maybe this hack helps:
https://vborg.vbsupport.ru/showthrea...threadid=20344 |
All times are GMT. The time now is 06:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|