Helpful Information
 
 
Category: vBulletin.org Forum
[RELEASE vb2B2] NewsFader 2.0

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.

Fader in action on my test board. Just changing news. :)

[The size of the attachment is 50,2KB]

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

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.

I agree...birthdays would be really cool! Can you hack THAT???

BTW, this works GREAT on my site....THANK YOU!

Yeah, sounds like a dope idea. Possible to do it?

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. :)

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...

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

Thats a great one. and your ticker was the best install notes I have ever seen.

Can you make it so its self updating? the time etc?

Great hack no problems including it.

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.

Originally posted by philliplewis
Can you make it so its self updating? the time etc?

It is self updating.

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.

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.

<!-- 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',usergroupid='6',
nosessionhash='0'
WHERE userid='8'
mysql error: Unknown column 'newsfader' in 'field list'

Thats the error I got :(

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;

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 :(

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.

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

i removed the fader from my forum shoe.. sorry.

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

You probably didn't follow the instructions carefully.

Does this version work withe vbulletin 2.0 beta 3???
Where can i see a real demo plzz....
Thx :)

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.

Will make that and give you the link :)

i have install the script
For the demo go here:

http://www.flash-france.com/forums/

You need to be register!!

Enjoy!

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

Did you recieve any error?

It works for me...

good hack


It works for me;)



http://bokhalifa.org/daar/bo/

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.

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.

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!

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.)

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.

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!

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

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).

do ya know how to change the background settings of the fader box?

fader_setup template

FDRbackCol = "white"; should do the trick.

top banana!
can you use code instead of text?

:confused:

you know colours have colour codes
Can i use them, instead of using text, like "white"

Yep, sure.
Use any color in hexa format to fit your needs. Ie #ffffff or #003366 etc.

wowsers...It looks incredible!

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:

Read the first post where stands vBulletin Beta 2 as supported version.

Why are you running Beta 1?

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.

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).

Well that is nice Pef. Work well done already.
Looking forward to your new work.

Thank You.

does it work on vb2 rc2 ?

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

wow!

looks very well!

works perfectly in my board!

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?!?

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

any idea why it wont display on v2 final I've had it running great on all the other versions?

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 ?? ;)

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.

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

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.

cleared it all up, tnx alot ;)

is it released to v2 already?

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.

@ dakota just put $birthdaybits somewhere in the fader_news template

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

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.

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.

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","",

Sweet! I can't wait to try the hack

When does it work with the final?

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

In the new version you should also have an option to have the text scroll across it.

anyone have news about the new fader hack????

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

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

I installed the hack onto VB 2 final, but it doesn't show..HELP!

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

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.

nooooooooooooooooooooooooooooooo

Maybe our hero Tubedogg can finish it?

I want this hack bad.

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.

Does anyone know how to adjust the scroll speed for the fader?
its a little slow..
Thanx!

Here is an good one. It works on 2.x.
Big thx to Fryzid. He change something in "PeF" fader.

PM popup is not working!

Is it only me or this nice hack still has some problems.

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

Originally posted by BigSjedow
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



same thing here......:confused:

what do i have to change that the fader is working with 2.2.0

Thanks

THANX!

I had it newsfader installed in my vb2.0.3 and was working perfectly, no that I upgraded to vb2.2.0 it doesn't work anymore.

Please help, my news title bar looks so empty :(

Dear Tubedogg could you take a look into this problem, I really would like to have my newsfader back!

Anybody upgrading this hack for 2.2.3?

I'm gonna try to, but I'm still a bit newbish and may not be able to do it.

I really need such a "news fading" hack!!

does this one work on vB 2.2.6 ??

or is there another news fading hack working with new vB version ?

thanks,
Schorsch

http://www.vbulletin.org/forum/showthread.php?s=&threadid=36402&highlight=NewsFader

that's too bad,fullly installed on 2.2.6 after about 40 minutes and no work. apparently it never did work on 2.2.6. anyone able to get it working?
....mauisun










privacy (GDPR)