View Full Version : [RELEASE newsfader for all vb version.(11* to 2.0*)]
This hack is write by gogosoft and edit by ztsky.
I have post it before,but in Chinese.Many people PM or email me want to get a English version,So I re-release it in English.
This hack can work on all vb versions
File to be edit:
admin/index.php
index.php
template to be edit:
forumhome
how to install it? :
down zip file.
there are three files in it.
fader.js newsfade.php and installnews.txt
**********upload NEWSFADER.PHP to you vb/ADMIN
**********upload FADER.JS to your vb/
**********edit you file or template as installnews.txt
**********upload edied file.
**********go to you vb/ADMIN modify or post a news!
this all:p
NEW ZIP FILE SEE THE NEXT POST
rmusic
07-10-2001, 06:49 AM
cool
thanx
it will be at http://www.r-music.net/forums
rmusic
07-10-2001, 08:41 AM
theres acouple problems
1. Doesnt match sites colors
2. The last Member isnt working
i can fix the colors but i dont know about the last member to post :(
ztsky
07-10-2001, 08:53 AM
Sorry ,I use a fixed colors.
I have edit this hack.
Enjoy!
plz re-down it.
rmusic
07-10-2001, 08:55 AM
thank you
i will try again :)
ztsky
07-10-2001, 08:59 AM
Originally posted by rmusic
thank you
i will try again :)
to you:just re-edit index.php and forumhome template.
rmusic
07-10-2001, 09:14 AM
<a href="http://www.r-music.net/forums/index.php" target="_blank">http://www.r-music.net/forums/index.php</a>
how do i make the white be the back ground color
how do i make the link color be the normal link
how do i make the font color to be normal
and the final problem
how do i get the borders to be fixed (bottom of forum, because of newsfader it has the on off table bg as the boarder color)
other than those problems im facing It's a good hack
ztsky
07-10-2001, 09:26 AM
Originally posted by rmusic
http://www.r-music.net/forums/index.php
how do i make the white be the back ground color
how do i make the link color be the normal link
how do i make the font color to be normal
and the final problem
how do i get the borders to be fixed (bottom of forum, because of newsfader it has the on off table bg as the boarder color)
other than those problems im facing It's a good hack
the news colors are in fader.js
open this file you'll look:
FDRboxWid = 600;
FDRboxHgt = 20;
FDRborWid = 0;
FDRborCol = "#070707";
FDRborSty = "solid";
FDRbackCol = "#f7f7f7";
FDRboxPad = 4;
this can edot to control news width and colors
the news bgcollor is in forumhome template
Look this:
<tr><td colspan=6 bgcolor="#f7f7f7" height=30 valign="top" align="center">
You can edit this #f7f7f7 as you like.
You can easily do all colors and width\height
just try it.
rmusic
07-10-2001, 10:12 AM
ok that worked
now what about that table boarder mess up
i cant figure it out
rmusic
07-10-2001, 01:09 PM
i have uninstalled it because i dont really need it but when i do need it i will install it
Thank you very much ztsky, it is great
Any one knows how to chang the size of the font inside the fader!!
I tryed editing the fader.js file but it did not work
Second, how do you add more permanent news to the fader.
ztsky
07-10-2001, 08:08 PM
Originally posted by Remi
Thank you very much ztsky, it is great
Any one knows how to chang the size of the font inside the fader!!
I tryed editing the fader.js file but it did not work
Second, how do you add more permanent news to the fader.
plz do as the install.txt!!
in add in forumhome:
style="position:relative;visibility:hidden;width:500">
width:500 you an edit it as you like.
rushdy007
07-10-2001, 11:55 PM
The news is not displaying.
I followed all the instructions in the install.txt file.
I just see a blank table with the heading of Forum News.
Can someone help me:(
rmusic
07-10-2001, 11:58 PM
did you add news from the cp
rushdy007
07-11-2001, 12:15 AM
I added the news in the cp....still it is not displayed.
I also tried with 2 news
rmusic
07-11-2001, 12:22 AM
i used what was in the install
rushdy007
07-11-2001, 12:23 AM
R-music,
Can you give me the Newsfader code to be added in the forumhome template.
I added the code in the install.txt file in the forumhome template. It didn't work
rmusic
07-11-2001, 12:24 AM
i dont think it would be what you put in the template
it might be the script it self
ztsky
07-11-2001, 04:48 AM
Originally posted by rushdy007
R-music,
Can you give me the Newsfader code to be added in the forumhome template.
I added the code in the install.txt file in the forumhome template. It didn't work
I don't think you had edited file and template as the install.txt said.
It's so clear and easily.
rushdy007
07-11-2001, 05:44 AM
I followed the instruction as of install.txt. It still doesn't work. I just get a blank table with the heading "Forum News"
ztsky
07-11-2001, 07:44 AM
Originally posted by rushdy007
I followed the instruction as of install.txt. It still doesn't work. I just get a blank table with the heading "Forum News"
go to you admin cp to add news!
rushdy007
07-11-2001, 09:41 AM
I have added the news from the admin control panel. It doesn't work
ThomasP
07-11-2001, 12:10 PM
Hi there,
seems to be another great hack from you!
Does it work with PHP3 servers?
Thanks,
-Tom
Chin San
07-11-2001, 01:49 PM
cool...:D :D :D
thanx...:D :D :D
ztsky
07-11-2001, 03:59 PM
Originally posted by ThomasP
Hi there,
seems to be another great hack from you!
Does it work with PHP3 servers?
Thanks,
-Tom
I haven't try it in php3 servers.
But i think it can work well.
ztsky
07-11-2001, 04:02 PM
Originally posted by rushdy007
I followed the instruction as of install.txt. It still doesn't work. I just get a blank table with the heading "Forum News"
where are your forum?I want to go and see it.
This hack is very simple and fancility,I don't kown why you can't install it.:( :confused:
Great work ztsky, and it will be even greater if you give the user the choice to activate it or deactivat it from their CPs.
mark58
07-18-2001, 01:59 AM
i am getting alot of emails saying the index pages (forums home - listing all the forums) won't load up beyond the java news fader. i assume these people don't have java enabled. is there somethign i can add so if someone doesn't have a java enabled browser the page will just not load the java news fader but will load the rest of the page???
html newbie - thanks
butty
07-31-2001, 01:43 AM
great hack mate!! is it possible to change some of the events that come up ie change the newest member bit to birthday (if 1) or maybe post counts etc etc.
Funkie
08-02-2001, 09:19 PM
wont display on v2.0.3 unless you upload the index.php from v2.0.1 but when you add news it dosn't put it in the order you add it any help plz
Dajackal
08-11-2001, 01:58 PM
i have no text either...
when i looked in the fader.js file
i noticed
FDRgifSrc = "images/fade.gif";
i looked in my images dir and could'nt find fade.gif
i have vb 2.0.1
i added some news in admincp and it works right, but if a new member registered, all my news are away!?!?!??!
rickjansen105
08-17-2001, 06:45 AM
it works on VBB 2.03 i think...
but when i open index.php I see the newsfader, but it hangs at:
Welcome our newest member Admin
(Between «member» and «Admin», there are the pound-char and the degree-char)
then it stops
it doesn't fade then anymore... how is this possible???
rickjansen105
08-17-2001, 06:54 AM
works now :)
my fault, i didn't gave up a end-time (you must, otherwise it sets it to 1969-12-31!)
but still, how can I get rid of that ?pound-char? and that ?degree-char??
where is it saved? i searched through newsfade.php and fader.js, but couln't find it! :(
kushti
08-19-2001, 08:45 AM
Originally posted by rickjansen105
how can I get rid of that ?pound-char? and that ?degree-char??
where is it saved? i searched through newsfade.php and fader.js, but couln't find it! :(
Yeah I got that too - does anyone know how to get that fixed?
BabyU
08-20-2001, 12:15 AM
It's in the code that you added to index.php .
BabyU
08-20-2001, 12:58 AM
I have this hack installed without a problem, except the appearance. First question -- how do I set the $newsfadebits to left align? It has quite a bit of blank space in front of the message and I can't figure out why. The actual announcements start exactly where they should.
Secondly, no matter what I set FDRboxWid at, it seems to wrap around at what appears about 300 or 400 pixels. Worse yet, when it wraps, the 2 lines overlap each other. I've set FDRboxHgt as high as 100, but it doesn't appear to change the height of the text box. I also took height=30 out of the forumhome template, hoping that it would automatically adjust as needed.
Thanks for a great hack and any insight into these minor problems that I'm running into! I have it installed at http://www.babyuniversity.com/forums/index.php
Dunny
08-20-2001, 12:11 PM
This hack worked fine but would crash the the browser on anything lower then IE 5.5, worked fine on Netscape though...just a warning!
Sander T
08-23-2001, 11:28 AM
IE5 closes when i enable the fader :( Could some one help me with this?
rickjansen105
08-25-2001, 08:53 AM
funny, coz i have IE 5, and it works normal...
KarateKid[WBC]
08-29-2001, 12:22 PM
In my Board -> www.kampfkunst-board.de.vu there is no newest user shown!?!?? Only the variable
Please help me there :(
bitbender
09-02-2001, 03:57 AM
I applied this hack and all is working well, with the exception of the newest member line display. The special characters in the code line of index.php in the main VB folder:
$newsfadebits = "\"Welcome our new member??$newusername\",\"\",\n";
My version of VB is having a real problem with the '??' characters.
What are these ?
BabyU
09-02-2001, 12:09 PM
I assumed it was just extra "garbage". I took those characters out of the code and it worked fine.
bitbender
09-03-2001, 08:24 PM
I did too, and it worked well, I just wanted that "newest member $unewusername' display...:)
BabyU
09-03-2001, 08:34 PM
Mine did until I took it out of the script :)
Just install this hack and customized the background and font colors to match the board. Dropped the table heading so that the fader just comes in and out of the background by itself. Works like a charm. Thanks much.
Regards,
web
almighty one
09-10-2001, 01:01 AM
this hack seems to work for me it shows welcome our newest memeber then goes on to a test post but it is posting all my posts in html hyper links how do i stop this?
If you do not want the news posts to be hyperlinks, make sure the URL field is blank, including the default "http://".
Regards,
web
almighty one
09-10-2001, 01:14 AM
yes i removed the http but it still shows as a hyper link do i need to edit soemhting soemwhere else in the install part to stop this
almighty one
09-10-2001, 01:25 AM
also can soemone tell me how to center the text dead center top to bottom if i wanted my box taller then the text is like say i went 1 inch high on box with 1/2 inch text how would it be in the middle of the box?
I tested it before I replied to you. When the URL field is blank, the news post does not appear as a hyperlink. When the URL field contains "http://" even without the remaining portion of the URL, the news post appears as a hyperlink.
Regards,
web
almighty one
09-10-2001, 01:44 AM
ok thanx i got it fixed now the center middle issue is at hand also i seen ona board soemwhere that the news fader had various settings like 1st post typed in <i assume using java script DHTML> next post rolled in from top then one did another transition is there a way to add transitions to this or make it look at a list of transitions or soemthing i tried to add a java script in but it is to long text to do so any help is appriciated
Generics
09-11-2001, 07:24 PM
is hter a way to change the background color of the newsfader ??
mfg Generics
almighty one
09-12-2001, 12:15 AM
Originally posted by Generics
is hter a way to change the background color of the newsfader ??
mfg Generics
yeah right click the fader js file and select edit then look here
FDRboxWid = 820;
FDRboxHgt = 25;
FDRborWid = 2;
FDRborCol = "#336699";
FDRborSty = "solid";
FDRbackCol = "#336699"; <~~~~ bg color
FDRboxPad = 4;
squawell
09-12-2001, 06:41 AM
it's a great hack!!
thanks~~~~~
and how to make it display the forum new post??
Generics
09-12-2001, 07:50 AM
kewl thx you helped me a lot ;)
mfg Generics
bitbender
09-12-2001, 10:35 PM
Is great hack. I like having it on my board.
One thing I've noticed, however, and I've seen at least ONE other in this thread has seen this.
Occasionally, when a new member registers, all the newsfader entries 'leave' the database!
This has happened to me three times in the previous week! I have about 10 news items in the fader table, and they are scrolling along, just fine.
Next thing I know is I get PM's from my membership saying they are gone! I look in CP, and WOW, none of my 10 news entries are there any more....Ok, so I add em back!
Two days later, same thing! I check logs to see whose deleted them, because, surely that's what has happened, but, no log entries!!
Ok, so what was the only other activity at the time??
New user registered themselves to board.
??????? ANybody else see this, or am I blind, and missed the fix in an earlier post?
ColdFusion
10-17-2001, 04:13 PM
people dont like to sit in 1 place too long so is there a way to speed it up?
I am assuming it is a setting in the .js file but i cannot find anything!
bbensen
10-22-2001, 10:48 PM
Thanks for the great hack! If you want to see my modification of it, you can check here ... www.DIYAW.com (http://www.diydaw.com/forums/)
Cyb0rg
11-07-2001, 06:54 PM
This fader does not work on *** 2.2.0 anymore. As soon as I up the INDEX.PHP , the board give me a SQL Error like:
Invalid SQL: SELECT title,pagetext FROM announcement WHERE enddate>= AND forumid=0 ORDER BY startdate DESC
mysql error: You have an error in your SQL syntax near 'AND forumid=0 ORDER BY startdate DESC' at line 1
But when I look at the News in my Admin-CP (I had to change some Code to make it implemented there), the News are there and ready to edit.
Whats wrong ?!?!
Dear ztsky
Could you update this newsfader for vb2.2.0 !
Many thanks in advance !!
toLTcaboLT
11-15-2001, 07:18 PM
Can anyone do it for vbb 2.2.0? Please?!
THank you !
tried the 2.20 install, didn't work
once you edit the $bburl/index.php
you get DB errors when you try to acsess it
sorry, I never caught the errors :p
Renegade
11-17-2001, 03:54 AM
Yea I get the same error too.
My guess as to why it's not working in 2.2.0 is the fact that they are now using command lines like:
makenavoption("Add","announcement.php?action=add","|");
instead of embedding the HTML code directly into the file.
Psychdrone
11-19-2001, 08:45 PM
yes please please please please someone redue this hack for us 2.2.1 owners!!
xware
11-21-2001, 02:15 AM
It's a great hack.
just a little edit for vb2.2*:
in index.php's added code:
replace:
enddate>=$datenow
with this:
enddate>=$today
if you want the new backgroud color integratedntegtate with your board:
in fader.js:
replace :
FDRbackCol = "#f7f7f7";
with:
FDRbackCol = "";
Perhaps someone can update this hack for 2.2.*, since the original programmer doesnt seem to be around anymore...?
Psychdrone
11-21-2001, 02:49 AM
yes that would be great guys!
Psychdrone
11-21-2001, 03:00 AM
actually this is wheremy problem is at, where it says
1)open ADMIN/INDEX.PHP
find£º
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr bgcolor="#3F3849"><td><font color="#BCB6CD">
<b>Announcement</b>
</font></td></tr></table>
<a href="announcement.php?s=<?php echo $session[sessionhash]; ?>&action=add">add</a> |
<a href="announcement.php?s=<?php echo $session[sessionhash]; ?>&action=modify">edit</a>
</td></tr>
I can't find that in my admin/index? Could some one tell me what line its on?
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:
makenavoption("Add","announcement.php?action=add","|");
bitbender
02-04-2002, 11:24 AM
See my reply in the thread here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=32118&highlight=newsfader)
It's working(this time), too!
Cheers, all.
igowoofwoof
02-05-2002, 04:49 AM
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...
Warlord
03-22-2002, 02:27 AM
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=modify");
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:500"><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.
hypedave
07-02-2002, 11:27 AM
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
Originally posted by rmusic
theres acouple problems
1. Doesnt match sites colors
2. The last Member isnt working
i can fix the colors but i dont know about the last member to post :(
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.