PDA

View Full Version : [RELEASE vb2B2] NewsFader 2.0


PeF
27 Feb 2001, 11:25
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.

27 Feb 2001, 11:27
Fader in action on my test board. Just changing news. :)

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

27 Feb 2001, 18:51
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

27 Feb 2001, 19:07
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.

28 Feb 2001, 03:06
I agree...birthdays would be really cool! Can you hack THAT???

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

28 Feb 2001, 04:21
Yeah, sounds like a dope idea. Possible to do it?

28 Feb 2001, 08:11
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. :)

01 Mar 2001, 01:43
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...

01 Mar 2001, 02:08
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

01 Mar 2001, 02:53
Thats a great one. and your ticker was the best install notes I have ever seen.

01 Mar 2001, 02:54
Can you make it so its self updating? the time etc?

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

01 Mar 2001, 10:14
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.

01 Mar 2001, 10:18
Originally posted by philliplewis
Can you make it so its self updating? the time etc?

It is self updating.

01 Mar 2001, 10:23
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.

01 Mar 2001, 16:34
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.

01 Mar 2001, 17:22
<!-- 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 :(

01 Mar 2001, 17:31
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;

01 Mar 2001, 17:49
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 :(

01 Mar 2001, 18:02
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.

02 Mar 2001, 04:40
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

02 Mar 2001, 04:50
i removed the fader from my forum shoe.. sorry.

12 Mar 2001, 18:42
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

13 Mar 2001, 07:20
You probably didn't follow the instructions carefully.

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

13 Mar 2001, 10:49
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.

13 Mar 2001, 15:06
Will make that and give you the link :)

13 Mar 2001, 19:26
i have install the script
For the demo go here:

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

You need to be register!!

Enjoy!

21 Mar 2001, 01:32
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

21 Mar 2001, 08:39
Did you recieve any error?

ukliam
16 Apr 2001, 12:31
It works for me...

bokhalifa
16 Apr 2001, 15:25
good hack


It works for me;)



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

Steve Machol
16 Apr 2001, 18:39
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
17 Apr 2001, 10:51
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
17 Apr 2001, 18:54
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
26 Apr 2001, 19:27
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
27 Apr 2001, 03:53
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
28 Apr 2001, 03:38
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
28 Apr 2001, 08:38
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
28 Apr 2001, 11:46
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
28 Apr 2001, 12:01
do ya know how to change the background settings of the fader box?

PeF
28 Apr 2001, 12:21
fader_setup template

FDRbackCol = "white"; should do the trick.

ff92k
28 Apr 2001, 12:34
top banana!
can you use code instead of text?

PeF
28 Apr 2001, 12:44
:confused:

ff92k
28 Apr 2001, 12:46
you know colours have colour codes
Can i use them, instead of using text, like "white"

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

ff92k
28 Apr 2001, 13:19
wowsers...It looks incredible!

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

Why are you running Beta 1?

GimmeTech
03 May 2001, 03:29
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
03 May 2001, 08:38
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
03 May 2001, 09:33
Well that is nice Pef. Work well done already.
Looking forward to your new work.

Thank You.

adrianmak
04 May 2001, 02:46
does it work on vb2 rc2 ?

Steve Machol
04 May 2001, 05:33
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
06 May 2001, 12:08
wow!

looks very well!

works perfectly in my board!

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

TwiZteR
25 May 2001, 06:45
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
25 May 2001, 07:55
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
25 May 2001, 08:09
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
25 May 2001, 08:48
fader_news template

If you wanna link it should look like this (an example of fader_news template with custom values):



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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
25 May 2001, 09:37
cleared it all up, tnx alot ;)

SharkHead
07 Jun 2001, 09:37
is it released to v2 already?

Dakota
07 Jun 2001, 23:35
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
08 Jun 2001, 00:03
@ dakota just put $birthdaybits somewhere in the fader_news template

Dakota
08 Jun 2001, 00:47
ok well I tryed that and I added this to the fader_news template



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



But now it doesn't load.

Edit: btw I am using RC3

Hooper
08 Jun 2001, 02:17
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
08 Jun 2001, 06:38
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
08 Jun 2001, 08:59
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
11 Jun 2001, 21:37
Sweet! I can't wait to try the hack

First-Man
11 Jun 2001, 22:31
When does it work with the final?

Hooper
12 Jun 2001, 04:49
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
13 Jun 2001, 00:32
In the new version you should also have an option to have the text scroll across it.

SS2 Dan
14 Jun 2001, 01:54
anyone have news about the new fader hack????

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

west
19 Jun 2001, 10:01
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
19 Jun 2001, 13:18
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
20 Jun 2001, 21:44
nooooooooooooooooooooooooooooooo

dicetomato
22 Jun 2001, 06:41
Maybe our hero Tubedogg can finish it?

I want this hack bad.

Aaron Pepper
26 Jun 2001, 22:34
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
04 Jul 2001, 13:34
Does anyone know how to adjust the scroll speed for the fader?
its a little slow..
Thanx!

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

Remi
07 Jul 2001, 16:28
PM popup is not working!

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

BigSjedow
30 Oct 2001, 16:58
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|
31 Oct 2001, 00:50
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
01 Nov 2001, 09:46
what do i have to change that the fader is working with 2.2.0

Thanks

tweak
01 Nov 2001, 10:21
THANX!

xug
02 Nov 2001, 13:06
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
03 Nov 2001, 02:19
Dear Tubedogg could you take a look into this problem, I really would like to have my newsfader back!

Warlord
10 Mar 2002, 03:17
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
08 Jul 2002, 20:18
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
11 Jul 2002, 13:39
http://www.vbulletin.org/forum/showthread.php?s=&threadid=36402&highlight=NewsFader

mauisun
05 Aug 2002, 02:35
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