View Full Version : [RELEASE vb2B2] NewsFader 2.0
PeF
Tue 27th Feb '01, 7:25am
Description:
This small hack will show a DHTML fader on your board. You may choose what to display during fading, customize colors, widths, heights, what to show with links, etc. A member can choose whether to display News Fader or not.
vBulletin versions supported:
2.0 Beta 2
Files to edit:
index.php, register.php, member.php
Templates to modify:
4 - forumhome, registeradult, registercoppa, modifyoptions
Number of new queries:
0
Number of new templates:
5
Size:
10,8KB
Demo:
N/A
Known bugs and issues:
Some versions of Netscape display fader incorrectly.
Future:
"Happy Birthday" or something similar will show when a member has birthday. :D
Instructions:
Included in the attached ZIP file.
PeF
Tue 27th Feb '01, 7:27am
Fader in action on my test board. Just changing news. :)
[The size of the attachment is 50,2KB]
Joe
Tue 27th Feb '01, 2:51pm
I have been using the fader hack on my beta 1 site for awhile now at http://bikeforums.com/v2/ Only logged in users will see the fader, everyone else will see the New User text... Also, for some reason, some unregistered users recive a javascript error, im still trying to de-bug it.
I'll probly remove the fader for my public version as IMHO it slows down the page, and i always use the get new posts feature, i hate waiting for the fader to show that line ;)
Sorry, i took down my beta forum, as my main forum went live with v2, i decided not to use the fader hack in the public forum
Me2Be
Tue 27th Feb '01, 3:07pm
Just throwing out ideas, but it would be cool if you could have it say "happy birthday" to those who's birthdays are listed in the profile as one of the news topics.
Jaxsdad
Tue 27th Feb '01, 11:06pm
I agree...birthdays would be really cool! Can you hack THAT???
BTW, this works GREAT on my site....THANK YOU!
Fred
Wed 28th Feb '01, 12:21am
Yeah, sounds like a dope idea. Possible to do it?
PeF
Wed 28th Feb '01, 4:11am
I'll update this version as soon as possible. There're some bugs with unregistered users (the fader's not showing correctly) which have to be fixed. Next version will also contain a possibility to turn on or turn off the fader using the user control panel (not every member wants to slow down page load :)).
Birthdays are great idea and I'll try to make it run. :)
version2
Wed 28th Feb '01, 9:43pm
OK...this is a seperate idea I am sure...but what about a fader that shows the last 5 posts...like a snippet of each...or something like that.
I could possibly work on that...
[JaGz]
Wed 28th Feb '01, 10:08pm
Will news fader work with ver 1.1.5 i know you have 2.0 as being supported just wondering if 1.15 was or if there was a ver for 1.1.5? Thx
philliplewis
Wed 28th Feb '01, 10:53pm
Thats a great one. and your ticker was the best install notes I have ever seen.
philliplewis
Wed 28th Feb '01, 10:54pm
Can you make it so its self updating? the time etc?
EXCHANGE
Wed 28th Feb '01, 11:53pm
Great hack no problems including it.
PeF
Thu 1st Mar '01, 6:14am
Originally posted by [JaGz]
Will news fader work with ver 1.1.5 i know you have 2.0 as being supported just wondering if 1.15 was or if there was a ver for 1.1.5? Thx
Yes, I released News Fader for 1.1.5 some time ago. Just try a search.
PeF
Thu 1st Mar '01, 6:18am
Originally posted by philliplewis
Can you make it so its self updating? the time etc?
It is self updating.
PeF
Thu 1st Mar '01, 6:23am
Originally posted by version2
OK...this is a seperate idea I am sure...but what about a fader that shows the last 5 posts...like a snippet of each...or something like that.
I could possibly work on that...
Hmmm. I'll take a look but before I'll add new features I have to sweep any bugs found.
PeF
Thu 1st Mar '01, 12:34pm
Update:
A member can now choose whether to display News Fader or not.
Created some new templates for easier manipulation.
Bug fixes with unregistered users.
News Fader replaces
Registered Members: 3098
9912 threads in total | 69663 posts in total Welcome back PeF.
You last visited: 03-01-2001 01:20 PM.
The time now is 05:29 PM. View new posts .
Welcome to our newest member, Prince2001
if chosen to be displayed. If not everything remains intact. :)
New zip uploaded.
philliplewis
Thu 1st Mar '01, 1:22pm
<!-- Database error in vBulletin: Invalid SQL: UPDATE user
SET styleid='1',adminemail='1',
showemail='0',invisible='0',cookieuser='1',
maxposts='-1',daysprune='-1',
timezoneoffset='0',emailnotification='1',
startofweek='1',showsignatures='1',receivepm='1',
emailonpm='0',pmpopup='0',newsfader='1',usergroupi d='6',
nosessionhash='0'
WHERE userid='8'
mysql error: Unknown column 'newsfader' in 'field list'
Thats the error I got :(
PeF
Thu 1st Mar '01, 1:31pm
Silly me. Forgot to add MySQL command.
Download new ZIP and run update.php or run in phpMyAdmin:
ALTER TABLE user ADD newsfader smallint (6) NOT NULL DEFAULT 0;
philliplewis
Thu 1st Mar '01, 1:49pm
Did you know that the older one u had didnt work in netscape?
I went back to the old one. Messing with the mysql database allways goes wrong for me :(
PeF
Thu 1st Mar '01, 2:02pm
You won't mess up anything. It just alters table user. One new field created. That's all.
Netscape, as usual, has problems with DHTML and Javascripting.
Shoe
Fri 2nd Mar '01, 12:40am
Where can I see an example of the fader?
I checked the sites mentioned in this thread--registered and logged in but didn't see it?
Thanks
Joe
Fri 2nd Mar '01, 12:50am
i removed the fader from my forum shoe.. sorry.
CGiFORCE
Mon 12th Mar '01, 2:42pm
any1 know if this works correctly with beta3?
i get an javascript error when the news is done...
not good, right?
it's running on vB2.0 beta3
PeF
Tue 13th Mar '01, 3:20am
You probably didn't follow the instructions carefully.
jojo85
Tue 13th Mar '01, 6:45am
Does this version work withe vbulletin 2.0 beta 3???
Where can i see a real demo plzz....
Thx :)
PeF
Tue 13th Mar '01, 6:49am
It should work without troubles.
Demo, as mentioned, is not available. I'm behind a firewall.
If anyone else decided to post a link to show a demo, I'll appretiate it.
jojo85
Tue 13th Mar '01, 11:06am
Will make that and give you the link :)
jojo85
Tue 13th Mar '01, 3:26pm
i have install the script
For the demo go here:
http://www.flash-france.com/forums/
You need to be register!!
Enjoy!
[JaGz]
Tue 20th Mar '01, 9:32pm
well i installed several times didnt work for me im running vb2.0 beta 3 got to to display once but NO link would work on any of the board.. Ill just wait till next ver comes out thank for your hard work though man.. Peace
PeF
Wed 21st Mar '01, 4:39am
Did you recieve any error?
ukliam
Mon 16th Apr '01, 8:31am
It works for me...
bokhalifa
Mon 16th Apr '01, 11:25am
good hack
It works for me;)
http://bokhalifa.org/daar/bo/
Steve Machol
Mon 16th Apr '01, 2:39pm
Originally posted by ukliam
It works for me...
Very nice looking forums you have there ukliam!
Can I ask how you get that border effect around your forum? I see this a lot but I don't have sufficient HTML skills to duplicate this effect.
ukliam
Tue 17th Apr '01, 6:51am
Smachol, it is just done using a few images in a table... pretty easy to do.
As I remember you from my UBB days, if you want a hand, just let me know.
Steve Machol
Tue 17th Apr '01, 2:54pm
ukliam,
Thanks for the offer. And yes I remember you from UBB as well. You were always a great help and resource for information.
If you don't mind, I would appreciate you looking at my vB 2.0 Test forum and suggesting how I could go about adding the image borders. The URL is in my sig. Thanks!
Steve Machol
Thu 26th Apr '01, 3:27pm
I ran into a slight problem with this hack with RC2.
The problem is that I have a drop-dowm javascript menu that will not display when the Newsfader is running. The menu script is placed in the headinclude template which falls within the < head > < /head > tags with a slight "<body onload="init()">" placed in the header template. The Newsfader, of course, is in the forumhome template and falls wihin the < body > < /body > tags. Is it possible there's a conflict between javascripts when one is within < head > < /head > and the other within < body > < /body >?
When I look at the page source all of the code for the menu script is there, it just won't display.
Any idea how to make this javascript work alongside the javascript that placed in my headinclude template? (Unfortunately I had to disable this hack until I can get this sorted out.)
Steve Machol
Thu 26th Apr '01, 11:53pm
I've reinstalled this hack in the hope that someone can take a look at it and tell me why the drop-down menu isn't working when Fader is on.
Hooper
Fri 27th Apr '01, 11:38pm
Where are you Pef........??????????????????????????????????
Smachol has posted just what I came in here to post on. The newsfader java is crashing other java in RC2. Or at least it apprears so. The PM pop-ups do not work and Smachols java menu does not work with the Fader installed. With the fader uninstalled everything works again.
Any chance you could respond and maybe give myself and smachol some direction to what might fix this?
Note: Simply put. The fader works no matter what. No other java disables the fader. The fader disables everything else. At least from what I can see.
Thank You!
ff92k
Sat 28th Apr '01, 4:38am
i have to ask 2 questions about it
1 : how do you change the background colour of the newsfader bar?
and secondly : It gets rid of "total posts" ect....is there any way i can just get this back?, i know it is the fader, but i want it in both
PeF
Sat 28th Apr '01, 7:46am
First, I'd like to apologize for the delay. Currently, I'm changing a department (from PC LAN to Internet Services :)) in my company and I'm forced to limit my Internet access (just for a while). As soon as the final release of vBulletin is released I'll take a look at my hacks and I'll rewrite them ASAP. I have some new hacks in a progress and they need to be finished as well. So, please be patient, I need some time.
Thanks for heads up guys and again, I apologize.
Smachol: If you experience such as problems, I recommend to stop using News Fader. Also, feel free to drop me a message (if you have ICQ, take a look at my profile or email me. I can try to allocate some time and take a look at your site).
ff92k
Sat 28th Apr '01, 8:01am
do ya know how to change the background settings of the fader box?
PeF
Sat 28th Apr '01, 8:21am
fader_setup template
FDRbackCol = "white"; should do the trick.
ff92k
Sat 28th Apr '01, 8:34am
top banana!
can you use code instead of text?
PeF
Sat 28th Apr '01, 8:44am
:confused:
ff92k
Sat 28th Apr '01, 8:46am
you know colours have colour codes
Can i use them, instead of using text, like "white"
PeF
Sat 28th Apr '01, 8:51am
Yep, sure.
Use any color in hexa format to fit your needs. Ie #ffffff or #003366 etc.
ff92k
Sat 28th Apr '01, 9:19am
wowsers...It looks incredible!
TwiZteR
Tue 1st May '01, 11:01pm
hmmmmmm....I use vB 2.0 beta 1 ...any reason why it doesn't work there ?? ..like..where do I add news?, and also, when I check the option to view the fader in my prefs, it keeps unchecking, so there is just the vbtitle showing on the index ... :confused:
PeF
Wed 2nd May '01, 10:12am
Read the first post where stands vBulletin Beta 2 as supported version.
Why are you running Beta 1?
Hooper
Wed 2nd May '01, 11:29pm
Hi Pef,
Your hack is incredible. I really like it. It does however not allow the PM popup to work. Actually any other javascript will not run with the fader. Any suggestions, or are you going to wait until the final to see what this might be?
Running RC2
Thank You.
PeF
Thu 3rd May '01, 4:38am
I'll wait till final version. I'll try to make News Fader in Flash as well (of course, a source code will be available to download).
Hooper
Thu 3rd May '01, 5:33am
Well that is nice Pef. Work well done already.
Looking forward to your new work.
Thank You.
adrianmak
Thu 3rd May '01, 10:46pm
does it work on vb2 rc2 ?
Steve Machol
Fri 4th May '01, 1:33am
Originally posted by adrianmak
does it work on vb2 rc2 ?
It works but, as has been pointed out, it keeps some other javascripts from executing
Kreker
Sun 6th May '01, 8:08am
wow!
looks very well!
works perfectly in my board!
Mesh
Mon 7th May '01, 6:29am
I got a little problem with installing the newsfader...
I followed the entire readme, but something is wrong with the manual (which I doubt) or something is different in my template...
I'm on step 6:
6. Edit modifyoptions template
************************************************
* Find:
************************************************
<tr bgcolor="{secondaltcolor}">
<TD><normalfont><b>Pop up a box when you receive a Private Message?</b></normalfont><br>
<smallfont>This will pop up a small warning box when you receive a Private Message asking whether you want to view the message.</smallfont></TD>
<TD valign=top><normalfont><INPUT TYPE="RADIO" NAME="pmpopup" $pmpopupchecked VALUE="yes">
yes <INPUT TYPE="RADIO" NAME="pmpopup" $pmpopupnotchecked VALUE="no"> no</normalfont></TD>
</tr>
************************************************
* Under it place:
************************************************
<tr bgcolor="{firstaltcolor}">
<TD valign=top><normalfont><B>Show News Fader?</b><br>
<smallfont>Clicking yes shows News Fader on the main page.</smallfont>
</normalfont></TD>
<TD valign=top><normalfont><INPUT TYPE="RADIO" NAME="newsfader" VALUE="no" $newsfadernotchecked> yes <INPUT TYPE="RADIO" NAME="newsfader" VALUE="yes" $newsfaderchecked>
no</normalfont></TD>
</TR>
But....
The only part I can find that looks like it is this part in the modifyoptions template:
<td bgcolor="{firstaltcolor}"><normalfont><b>Pop up a box when you receive a Private Message?</b></normalfont><br>
<smallfont>This will pop up a small warning box when you receive a Private Message asking whether you want to view the message.</smallfont></td>
<td bgcolor="{firstaltcolor}"><normalfont>
<input type="radio" name="pmpopup" $pmpopupchecked value="yes"> yes
<input type="radio" name="pmpopup" $pmpopupnotchecked value="no"> no
</normalfont></td></tr>
I found it under User Option Templates
Why can't I find it?!?
Or am I doning something wrong?!?
PeF
Mon 7th May '01, 8:19am
News Fader hack has been written for Beta 2 as mentioned in the first post. And as already said, I'll make a rewrite as soon as the final version hits the shelves. :D
Funkie
Mon 21st May '01, 7:07pm
any idea why it wont display on v2 final I've had it running great on all the other versions?
TwiZteR
Fri 25th May '01, 2:45am
might be an awfully stupid question, but I have to ask, I have now installed it on RC3...shows up and looks nice and all that, but heh...where can I add those nice news ?? ;)
Hooper
Fri 25th May '01, 3:55am
Pef said that he will be releasing a new version for the final. I'm quite sure that he is aware of the final being released. Patience is a virtue.
TwiZteR -
You add the news to the news template that you created.
TwiZteR
Fri 25th May '01, 4:09am
k tnx, works now..told u it could be a stupid qst :D ..anyways..is there any way to insert links there?, if I tried with html, it stopped working, if I tried with vbb code, it showed as text
PeF
Fri 25th May '01, 4:48am
fader_news template
If you wanna link it should look like this (an example of fader_news template with custom values):
prefix="$bburl/";
arNews = [
"Visit Yahoo,","http://www.yahoo.com",
"What's new on Blizzard","http://www.blizzard.com",
"Last line","http://www.google.com"
]
Be sure you didn't add comma at the end of the last line. This is very important. With the comma at the end News Fader won't work correctly.
Let's take a look at the values we have in our example:
"Visit Yahoo,","http://www.yahoo.com",
Visit Yahoo - a text which will be displayed when "fading". If this text is followed by hyperlink it'll the be changed to link so that the link will look like this:
Visit Yahoo (http://www.yahoo.com)
I hope I made it clear. :)
Last word: As soon as the hack(s) is(are) rewritten other versions than vBulletin 2.0 Final won't be supported.
TwiZteR
Fri 25th May '01, 5:37am
cleared it all up, tnx alot ;)
SharkHead
Thu 7th Jun '01, 5:37am
is it released to v2 already?
Dakota
Thu 7th Jun '01, 7:35pm
I just installed this hack. I love it, but I was wondering if anyone has figured out how to add Birthdays to it.
Also in the setup template, could you explain what the settings are, and what they do.
Funkie
Thu 7th Jun '01, 8:03pm
@ dakota just put $birthdaybits somewhere in the fader_news template
Dakota
Thu 7th Jun '01, 8:47pm
ok well I tryed that and I added this to the fader_news template
"Todays Birthdays:","",
"$birthdaybits",""
But now it doesn't load.
Edit: btw I am using RC3
Hooper
Thu 7th Jun '01, 10:17pm
Originally posted by Dakota
Edit: btw I am using RC3
Might want to upgrade to 2.0.1. RC3 will not be supported or written for.
Dakota
Fri 8th Jun '01, 2:38am
Well currently I cannot upgrade. I do not know the member info for my forum. I am not the one who owns the license, and I haven't been able to contact my host in a while.
Funkie
Fri 8th Jun '01, 4:59am
I'm running v2.01 final so I cant test this for you as news fader is not yet working for final but this should work
"Todays Birthdays: $birthdaybits","",
SS2 Dan
Mon 11th Jun '01, 5:37pm
Sweet! I can't wait to try the hack
First-Man
Mon 11th Jun '01, 6:31pm
When does it work with the final?
Hooper
Tue 12th Jun '01, 12:49am
ALL:
I would advise that everyone wait for the re-write for 2.0 final. There is a problem with the hack working with some of the jscripting. If you install this, your pop up PM's will not work for example. Hopefully Pef will give us an update to where this is at.
Cheers all,
Hooper
Dakota
Tue 12th Jun '01, 8:32pm
In the new version you should also have an option to have the text scroll across it.
SS2 Dan
Wed 13th Jun '01, 9:54pm
anyone have news about the new fader hack????
express
Fri 15th Jun '01, 11:11pm
Would be possible somehow to use this hack with changes to the code to do the following?
Say you have a page either in vb or just a plain page that has a border with a color of blue for this example. Could you place code like this in somehow to have the dark blue border fade to lite blue and back to dark blue. Just steady rotating of the border color fading in and out?
Joey
tazthedev
Sat 16th Jun '01, 5:29am
The hack is installed fine except... i got problem with the update.php .... got errors when i did that ... so i add the newsfader field by myself. i goes to the options to disable the fader option, but i got a slight problem ... any idea ?!?
thanks
SS2 Dan
Sat 16th Jun '01, 1:35pm
I installed the hack onto VB 2 final, but it doesn't show..HELP!
west
Tue 19th Jun '01, 6:01am
Hello !
I installed the hack onto VB 2.0.1 but it doesn't show too
someone can help me please ?
does it work on VB 2.0.1 ???
THX again
PeF
Tue 19th Jun '01, 9:18am
I'm forced to say I have to leave this community for some time due to my new job and some projects I work for (and of course my personal life). This all means I won't be able to rewrite my hacks as promised so if anyone is interested in the rewrite, just go ahead. You'll find links to my old hacks in my signature.
I apologize for any inconveniences.
SS2 Dan
Wed 20th Jun '01, 5:44pm
nooooooooooooooooooooooooooooooo
dicetomato
Fri 22nd Jun '01, 2:41am
Maybe our hero Tubedogg can finish it?
I want this hack bad.
Aaron Pepper
Tue 26th Jun '01, 6:34pm
Hey dicetomato ;)
Well anyway, this is one of the best and most useful hacks there is. Hopefully someone would be able to re-code it for vB 2.x full.
If I had my way it would be a defaut feature of vB...same with the stars hack. Oh well.
Maverick1236
Wed 4th Jul '01, 9:34am
Does anyone know how to adjust the scroll speed for the fader?
its a little slow..
Thanx!
First-Man
Wed 4th Jul '01, 12:17pm
Here is an good one. It works on 2.x.
Big thx to Fryzid. He change something in "PeF" fader.
Remi
Sat 7th Jul '01, 12:28pm
PM popup is not working!
Is it only me or this nice hack still has some problems.
BigSjedow
Tue 30th Oct '01, 12:58pm
i got the nice border with news, but the news itself dowsn't show up, maybe it missed the train but i think it's something else :(
Using 2.0.3
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.