PDA

View Full Version : [RELEASE vb2B2] NewsFader 2.0


02-26-2001, 10:00 PM
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.

02-27-2001, 09:27 AM
Fader in action on my test board. Just changing news. :)

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

02-27-2001, 04:51 PM
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

02-27-2001, 05:07 PM
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.

02-28-2001, 01:06 AM
I agree...birthdays would be really cool! Can you hack THAT???

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

02-28-2001, 02:21 AM
Yeah, sounds like a dope idea. Possible to do it?

02-28-2001, 06:11 AM
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. :)

02-28-2001, 11:43 PM
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...

03-01-2001, 12:08 AM
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

03-01-2001, 12:53 AM
Thats a great one. and your ticker was the best install notes I have ever seen.

03-01-2001, 12:54 AM
Can you make it so its self updating? the time etc?

03-01-2001, 01:53 AM
Great hack no problems including it.

03-01-2001, 08:14 AM
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.

03-01-2001, 08:18 AM
Originally posted by philliplewis
Can you make it so its self updating? the time etc?

It is self updating.

03-01-2001, 08:23 AM
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.

03-01-2001, 02:34 PM
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.

03-01-2001, 03:22 PM
<!-- 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 :(

03-01-2001, 03:31 PM
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;

03-01-2001, 03:49 PM
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 :(

03-01-2001, 04:02 PM
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.

03-02-2001, 02:40 AM
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

03-02-2001, 02:50 AM
i removed the fader from my forum shoe.. sorry.

03-12-2001, 04:42 PM
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

03-13-2001, 05:20 AM
You probably didn't follow the instructions carefully.

03-13-2001, 08:45 AM
Does this version work withe vbulletin 2.0 beta 3???
Where can i see a real demo plzz....
Thx :)

03-13-2001, 08:49 AM
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.

03-13-2001, 01:06 PM
Will make that and give you the link :)

03-13-2001, 05:26 PM
i have install the script
For the demo go here:

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

You need to be register!!

Enjoy!

03-20-2001, 11:32 PM
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

03-21-2001, 06:39 AM
Did you recieve any error?

ukliam
04-16-2001, 10:31 AM
It works for me...

bokhalifa
04-16-2001, 01:25 PM
good hack


It works for me;)



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

Steve Machol
04-16-2001, 04:39 PM
[QUOTE]Originally posted by ukliam
It works for me...

ukliam
04-17-2001, 08:51 AM
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
04-17-2001, 04:54 PM
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
04-26-2001, 05:27 PM
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
04-27-2001, 01:53 AM
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.

GimmeTech
04-28-2001, 01:38 AM
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
04-28-2001, 06:38 AM
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
04-28-2001, 09:46 AM
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
04-28-2001, 10:01 AM
do ya know how to change the background settings of the fader box?

PeF
04-28-2001, 10:21 AM
fader_setup template

FDRbackCol = "white"; should do the trick.

ff92k
04-28-2001, 10:34 AM
top banana!
can you use code instead of text?

PeF
04-28-2001, 10:44 AM
:confused:

ff92k
04-28-2001, 10:46 AM
you know colours have colour codes
Can i use them, instead of using text, like "white"

PeF
04-28-2001, 10:51 AM
Yep, sure.
Use any color in hexa format to fit your needs. Ie #ffffff or #003366 etc.

ff92k
04-28-2001, 11:19 AM
wowsers...It looks incredible!

TwiZteR
05-02-2001, 01:01 AM
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
05-02-2001, 12:12 PM
Read the first post where stands vBulletin Beta 2 as supported version.

Why are you running Beta 1?

GimmeTech
05-03-2001, 01:29 AM
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
05-03-2001, 06:38 AM
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).

GimmeTech
05-03-2001, 07:33 AM
Well that is nice Pef. Work well done already.
Looking forward to your new work.

Thank You.

adrianmak
05-04-2001, 12:46 AM
does it work on vb2 rc2 ?

Steve Machol
05-04-2001, 03:33 AM
[QUOTE]Originally posted by adrianmak
does it work on vb2 rc2 ?

kreker
05-06-2001, 10:08 AM
wow!

looks very well!

works perfectly in my board!

Mesh
05-07-2001, 08:29 AM
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
05-07-2001, 10:19 AM
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
05-21-2001, 09:07 PM
any idea why it wont display on v2 final I've had it running great on all the other versions?

TwiZteR
05-25-2001, 04:45 AM
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
05-25-2001, 05:55 AM
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
05-25-2001, 06:09 AM
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
05-25-2001, 06:48 AM
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
05-25-2001, 07:37 AM
cleared it all up, tnx alot ;)

SharkHead
06-07-2001, 07:37 AM
is it released to v2 already?

Dakota
06-07-2001, 09:35 PM
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
06-07-2001, 10:03 PM
@ dakota just put $birthdaybits somewhere in the fader_news template

Dakota
06-07-2001, 10:47 PM
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
06-08-2001, 12:17 AM
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
06-08-2001, 04:38 AM
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
06-08-2001, 06:59 AM
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
06-11-2001, 07:37 PM
Sweet! I can't wait to try the hack

First-Man
06-11-2001, 08:31 PM
When does it work with the final?

Hooper
06-12-2001, 02:49 AM
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
06-12-2001, 10:32 PM
In the new version you should also have an option to have the text scroll across it.

SS2 Dan
06-13-2001, 11:54 PM
anyone have news about the new fader hack????

webhost
06-16-2001, 01:11 AM
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
06-16-2001, 07:29 AM
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
06-16-2001, 03:35 PM
I installed the hack onto VB 2 final, but it doesn't show..HELP!

west
06-19-2001, 08:01 AM
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
06-19-2001, 11:18 AM
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
06-20-2001, 07:44 PM
nooooooooooooooooooooooooooooooo

dicetomato
06-22-2001, 04:41 AM
Maybe our hero Tubedogg can finish it?

I want this hack bad.

Aaron Pepper
06-26-2001, 08:34 PM
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
07-04-2001, 11:34 AM
Does anyone know how to adjust the scroll speed for the fader?
its a little slow..
Thanx!

First-Man
07-04-2001, 02:17 PM
Here is an good one. It works on 2.x.
Big thx to Fryzid. He change something in "PeF" fader.

Remi
07-07-2001, 02:28 PM
PM popup is not working!

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

BigSjedow
10-30-2001, 02:58 PM
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

|DarkManX|
10-30-2001, 10:50 PM
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:

wbc
11-01-2001, 07:46 AM
what do i have to change that the fader is working with 2.2.0

Thanks

tweak
11-01-2001, 08:21 AM
THANX!

xug
11-02-2001, 11:06 AM
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 :(

xug
11-03-2001, 12:19 AM
Dear Tubedogg could you take a look into this problem, I really would like to have my newsfader back!

Warlord
03-10-2002, 01:17 AM
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.

Schorsch
07-08-2002, 06:18 PM
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

Ordovicium
07-11-2002, 11:39 AM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=36402&highlight=NewsFader" target="_blank">https://vborg.vbsupport.ru/showt...ight=NewsFader</a>

mauisun
08-05-2002, 12:35 AM
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