UBB.Dev
Posted By: Brett [6.6 - 6.7] [beta] News Fader - 11/17/2003 8:30 PM
Modification Name: News Fader

Author(s): Brett

Description: This mod puts a row at the top of your forum summary that fades text that you put in thru the CP.

Demo: Click Here

Download Link: https://www.ubbdev.com/ubb/upload/00006378/NewsFader6.6.zip

# of Downloads: [img]http://www.pavioni.com/scripts/dl.php/read/NewsFader6.6.zip[/img]

Credits: Slurpee, LK, Gizzy

Instructions / Other Info: This has a different Javascript from dynamicdrive.com, that finally works with mozilla. smile

(Don't forget to upload ALL the templates) wink
Posted By: AllenAyres Re: [6.6 - 6.7] [beta] News Fader - 11/17/2003 10:04 PM
Quote
quote:
Originally posted by Brett:
Instructions / Other Info: This has a different Javascript from dynamicdrive.com, that finally works with mozilla. smile
cool

thanks laugh
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 11/18/2003 2:33 AM
he updated my script! oh my! lol...
Posted By: RandyM Re: [6.6 - 6.7] [beta] News Fader - 11/18/2003 5:43 AM
Okay, I made a couple minor changes to get rid of the news fader name and added the $TBT and $TBB around it but even before I did that there were some issues. If you look here you'll see what I mean. It fades in but doesn't fade back out. I also turned the news image off in the CP but it's still there and it jumps around a lot. Any ideas?
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 11/18/2003 6:05 AM
lol thats a great error! if it wasn't for mozilla i'm sure it'd still be using the original java...
Posted By: RandyM Re: [6.6 - 6.7] [beta] News Fader - 11/18/2003 6:11 AM
Yeah, I'm gonna tweak it to see what I can do. What about colored fonts? When I assign a color it gets more funky.
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 11/18/2003 6:18 AM
Not a clue, with any luck brett made a change log of everything he did hehe...
Posted By: RandyM Re: [6.6 - 6.7] [beta] News Fader - 11/18/2003 7:52 AM
I removed it for the time being, I'll put it up on a test board to see what I can do with it. It's close but I liked the colored text in the old one but I use Opera most of the time now so that one wouldn't show up.
Posted By: aimisoft Re: [6.6 - 6.7] [beta] News Fader - 11/19/2003 5:42 PM
cool
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 11/23/2003 5:22 AM
the color is hardcoded into fader.js You'll have to tweak the rgb colors to make it look fine for your color scheme. I would really like it to take the colors of the cells it's in.
Posted By: RandyM Re: [6.6 - 6.7] [beta] News Fader - 11/23/2003 5:50 AM
I realize that the colors are hard coded, but the old version (IE only) did the colors and it looked great. I couldn't get this one to fade out, it just faded in. It just seemed a bit *off*. I've used a ton of code from DynamicDrive in the past and they have some great stuff.
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 11/23/2003 2:58 PM
the only way I found in this script to get defined colors to work involved getting rid of the fade part, so they just appeared and disappeared.
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 1:17 AM
Hi,

can someone tell me, how I can get a break between newsfader and forums at the forums page?

http://www.ubb-test.board-world.net/cgi-bin/ultimatebb.cgi
Posted By: RandyM Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 4:26 AM
After the news fader code;

Code
$ns
Add;

Code
$TBB


$TBT
That *should* do it.
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 12:06 PM
Thank you very much Randy M
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 1:07 PM
Hi, but now something with the newsfader table does not work...

http://www.ubb-test.board-world.net/cgi-bin/ultimatebb.cgi

What can I do?
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 3:08 PM
I hope that brett knew everything currently worked for 6.6 minus the cp portions...
Posted By: Brett Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 3:41 PM
Of course i know that everything worked...for ie(and some versions of ns) only. tipsy

I haven't had much time to work on this as i wanted to. And since thanksgivings here, i probably won't get on it until friday, if i don't somehow get it today.

d-talk: What do you mean, does not work? confused
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 3:45 PM
Hi Brett,

look at my site and watch the newsfader

http://www.ubb-test.board-world.net/cgi-bin/ultimatebb.cgi

The table of the fader is not correct

Look at the jpg...

[Linked Image]
Posted By: Brett Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 4:00 PM
in public_forum_summary.pl

change:

to:

then

change:

to:

then you'll need to clear your cache
Posted By: RandyM Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 4:06 PM
The timing of the fade is off unfortunately and even in IE it only fades in, not out. That's not Brett's fault, it's the script. The older version faded in and out nicely (and in color) without the long wait in between. *shrugs*
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 4:09 PM
Hi again,

nothing has changed.....:-(
Posted By: AllenAyres Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 6:16 PM
should be

(at least that's what it looks like to me)
Posted By: AllenAyres Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 6:18 PM
looks like you've fixed it shocked

like the design thumbsup
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 11/26/2003 6:25 PM
...but I nee a break between Newsfader and Forums....what can I do..
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 11/27/2003 11:59 PM
Hi what can I do that the newsfader 6.6, fades like 6.4?

http://www.d-talk.tv/cgi-bin/ultimatebb.cgi (6.5)

http://www.ubb-test.board-world.net/cgi-bin/ultimatebb.cgi
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 11/28/2003 12:12 AM
Compaire the install instructions between 6.4 and 6.6, see if it's just the fader script thats changed; if so, replace the fader script with the old one... btw, the cp files will be differant... most people like the old version even though it's not compatable with some browsers smirk...
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 11/28/2003 12:19 AM
Hi Gizzy,

I have replaced the fader script to the old one, but this does not work...
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 11/28/2003 12:38 AM
*goes off to write new port*
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 11/28/2003 2:22 AM
rofl al; make it Operation: Old Version....
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 11/28/2003 2:35 AM
I actually already got it working, I just hope I can stay awake long enough to write the install.txt tonight
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 11/28/2003 2:46 AM
Remember!! Use the old fader.js file with this mod.

This is unsupported by me unless it works

https://www.ubbdev.com/ubb/upload/00020028/NewsFader66.txt

The only step that changed was that really long one in public_forum_summary.pl
Posted By: Brett Re: [6.6 - 6.7] [beta] News Fader - 11/28/2003 4:14 AM
you gotta be kidding me...
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 11/28/2003 4:31 AM
*hugs Brett* it's ok
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 11/28/2003 4:36 PM
Hi Weird Al,

I build in your new code, but now I can not see anny fader at my board

http://www.ubb-test.board-world.net/cgi-bin/ultimatebb.cgi

Can you help?
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 11/28/2003 5:09 PM
rotfl...
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 11/28/2003 5:37 PM
didn't notice that the old version wanted $vars_newsfader{nfon} to eq "ON", where the new version checks to see if it's equal to 1.

Updated txt and fixed d-talks board
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 11/28/2003 6:54 PM
Thanks a lot Weird Al!!! thumbsup thumbsup thumbsup
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 12/03/2003 4:57 PM
btw: if anyone notices the fonts getting... "fuzzy" when fading, there is a little issue with users using ClearType from Microsoft. Disabling Cleartype will make it look perfect again
Posted By: RandyM Re: [6.6 - 6.7] [beta] News Fader - 12/04/2003 7:31 AM
I ended up using a script from DynamicDrive and an iframe. I have to edit the text in the script itself but it works great in all the browsers I've tested.
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 12/04/2003 8:17 AM
Randy: have a link?
Posted By: RandyM Re: [6.6 - 6.7] [beta] News Fader - 12/04/2003 8:56 AM
Sure, Click here .
Posted By: Digital Boy Re: [6.6 - 6.7] [beta] News Fader - 12/12/2003 7:14 PM
Does anyone know where I can find the OLD fader.js?

- MT
Posted By: AllenAyres Re: [6.6 - 6.7] [beta] News Fader - 12/13/2003 1:18 AM
you might try the archived mod forum... I don't think that file changed for years smile
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 12/13/2003 4:12 AM
I know one! check the 6.4/6.5 port! lol...
Posted By: Brett Re: [6.6 - 6.7] [beta] News Fader - 12/18/2003 12:22 AM
Zip file updated. It now fades in and out, and is still mozilla friendly. wink

Just reupload the fader.js and search the instructions for the addition in public_forum_summary.pl for the differences.
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 12/18/2003 2:10 AM
does it still only due black to white, white to black? I need it to take the colors of the page, no matter which css style I use
Posted By: RandyM Re: [6.6 - 6.7] [beta] News Fader - 12/18/2003 5:58 AM
I just tried it and it still has issues in Opera. I'm going to keep using the one I have now in the iframe. Thanks for trying Brett, this function just doesn't like cross browser compatibility in UBB.
Posted By: Digital Boy Re: [6.6 - 6.7] [beta] News Fader - 12/24/2003 5:19 PM
Quote
Originally posted by Weird Al:

didn't notice that the old version wanted $vars_newsfader{nfon} to eq "ON", where the new version checks to see if it's equal to 1.

Updated txt and fixed d-talks board
I just tried to re-install this mod after doing some other work and I'm having the same problem. I've re-installed it like three times and I still don't get anything to fade. I even used your new updated code. What changes do I have to make to get this to work properly?

- MT
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 12/24/2003 6:39 PM
So it doesn't show up at all?
Posted By: Digital Boy Re: [6.6 - 6.7] [beta] News Fader - 12/24/2003 6:44 PM
Well, I get the box and all, but that's it. Funny thing is, no errors are generated. I can't explain it. Everything else works beautifully. Any ideas?

- MT
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 12/24/2003 6:57 PM
did you upload the old verion of fader.js in the 6.3+ version?
Posted By: Digital Boy Re: [6.6 - 6.7] [beta] News Fader - 12/24/2003 7:16 PM
I uploaded the version from 6.4 and when that didn't work, I tried the one from 6.6... Is there a link to one that I should use? I'd like to re-import this hack and be done with it. wink

Thanks,

- MT
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 12/24/2003 7:18 PM
the 6.4 version is the one you should use
Posted By: Digital Boy Re: [6.6 - 6.7] [beta] News Fader - 12/29/2003 6:22 PM
Man, I can't tell you how much this bugs me! I had this working before when it was one of the first mods I added. Now, I can't add it in at all. Everything comes up fine, but it doesn't fade. Nothing, nada, zip, ziltch. No text is written to the page. All I get is a box (as if I had no text in the CP).

I've checked the error_log file and nothing's there. I've looked over the code and found nothing that should be modified in leu of other mods being added.

I just can't figure it out. If anyone can help solve this mystery please help. FYI, I already have the following mods installed with complete success:

Wordlets
AIM
Authority
Backup
Calendar
Stats
MegaMod
LastTotalMembers
Smilies
QuickReply
Thumbnail

Good luck!

- MT
Posted By: Digital Boy Re: [6.6 - 6.7] [beta] News Fader - 12/30/2003 3:40 PM
Nobody has any suggestions for this?

- MT
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 12/30/2003 3:44 PM
Have you upload fader.js ?
Posted By: Digital Boy Re: [6.6 - 6.7] [beta] News Fader - 12/30/2003 5:01 PM
Absolutely.... I can't figure it out. Fader.js should be in the UBB folder, right? That's where I put it. I'm sure there's a real simple answer to this that I'm missing, but I just don't see it.

- MT
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 12/30/2003 9:58 PM
Quote
Originally posted by Brett:

Zip file updated. It now fades in and out, and is still mozilla friendly. wink

Just reupload the fader.js and search the instructions for the addition in public_forum_summary.pl for the differences.



Brett, does it use colors now?

Originally posted by Matt Torbin:
[qb]
Absolutely.... I can't figure it out. Fader.js should be in the UBB folder, right? That's where I put it. I'm sure there's a real simple answer to this that I'm missing, but I just don't see it.

- MT
[/qb]
You are correct, it should be in the ubb (noncgi) directory.
Posted By: Digital Boy Re: [6.6 - 6.7] [beta] News Fader - 01/01/2004 12:27 AM
I hate to give up on this one, but it's just not happening. I've gone over and over and over it. I can't seem to figure it out:

1) No error messages are being created.
2) No CGI errors.

It's just not working. It's almost as if a different hack that installed earlier is over-riding this hack.

If anyone has had this issue or knows how to get around it, please let me know because I'm at a loss.

- MT
Posted By: Ericnord Re: [6.6 - 6.7] [beta] News Fader - 01/10/2004 1:18 AM
Just uploaded the hack w/ Weird Al's mod and the 6.4 fader.js. The newsfader automatically started working on my BB. Thanks for the mod, but where is the edit for it located in the CP of 6.6? I cannot find where to turn it on/off and where to enter text.

Thanks
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 01/10/2004 2:56 AM
In the left bar, there should be a link saying "Newsfader" or something similar
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 01/10/2004 3:04 AM
*Feature Request* Have an option to make the news fader attached/detached from the main island...

Quote
quote:
Gizzy: know what'd be nifty for the news fader?
Gizzy: an option to make it attached/detached to the main island
Weird Al: no, but I'm sure you'll tell me
Gizzy: have like a wordlet that inserts/removes
lol
Weird Al: the $TBB
$TBT ;-)
Gizzy: lol yar ;-)
Posted By: Ericnord Re: [6.6 - 6.7] [beta] News Fader - 01/10/2004 4:02 AM
I do not have anything on the left hand side of the control panel for the newsfader. I was confused in the install notes that it said the cp.cgi would be modified, but then the install mentioned cp2_lib.cgi. I'm assuming the cp.cgi gets it info from this, but if it does not then that is my problem since I never edited the cp.cgi in any way.

Any ideas...the fader looks great on the site, except for the lack of being able to modify.
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 01/10/2004 4:14 AM
cp.cgi isn't modified. cp2_lib.cgi is the file modified, and that's the file that would show the link on the left.

Make sure you did both of those steps correctly
Posted By: Ericnord Re: [6.6 - 6.7] [beta] News Fader - 01/10/2004 6:19 AM
Thank Weird Al.....all appears to be working flawlessly now! Guess I forgot to upload or an error in uploading the cp2_lib.cgi.
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 02/14/2004 10:27 PM
Hey Brett, this site says it's fader is not only cross compatible, but will also work like the old one...

http://www.webreference.com/dhtml/column13/allCode2.html

care to give it a shot?
Posted By: Charles Capps Re: [6.6 - 6.7] [beta] News Fader - 02/14/2004 10:37 PM
That code is designed for NS4 and IE4, not web standards.
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 02/14/2004 10:58 PM
well IE6 wasn't designed for web standards either tipsy
Posted By: ADWOFF Re: [6.6 - 6.7] [beta] News Fader - 02/29/2004 10:55 PM
Okay, after playing around with Brett's info--and not getting the fader to appear, I read through th rest of the forum and saw Ian Spencer's revisions.

So I gave that a shot.

The fader appears! YAY!

Only there seems to be an *issue* ...

Here's what I keep getting:

Quote
quote:
A Trojan Has Been Detected and Cleaned!

The file C:WINDOWSLOCAL SETTINGSTEMPORARY INTERNET FILESCONTENT.IE52TC7UXU5ULTIMATEBB[21].HTM was infected by the Univ.script/99 trojan and has been deleted to the complete the clean process
This is a McAfee VirusScan message.

It comes up every time I post a new topic, and then go to the front page to see the "fader"

What on earth is going on, and how do I stop it?!
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 03/01/2004 3:00 AM
you get norton! lol...
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 03/01/2004 3:23 AM
Although I'm sure that Gizzy's reply is exactly what you wanted wink


There is no trojan horse in this mod. However, alerts don't go off for no reason (most of the time) so I reccomend you look into downloading Ad-aware (lavasoft.de if I remember correctly) and see it that finds anything.
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 03/01/2004 4:38 AM
If you're going to go the spyware approach, go Spybot Search and Destroy; it's free and has more spyware issues than most other programs.
Posted By: ADWOFF Re: [6.6 - 6.7] [beta] News Fader - 03/01/2004 4:47 AM
Quote
Originally posted by Gizzy:

you get norton! lol...
Ha ha ha ha tipsy

I actually have the ad-aware program ... and will run it ...

Still, it bugs me that I try to install the fader hack--and I get that kind of a message ... I know very little about viruses/trojans, et al--other than they can really mess up a lot of systems ...

And I know this, until I can figure out WHY this mod is creating this trojan message, I cannot use the fader ... which will really, really, really bum me out ... it's one of my most effective ways of communicating with my members.
Posted By: ADWOFF Re: [6.6 - 6.7] [beta] News Fader - 03/01/2004 5:14 AM
All-righty, cuz I'm a persistant person (it's da goat in me wink ), I rehacked the files using Brett's directions, and I'm pleased to say that there is no trojan alert coming up any more.

That's the "good news."

The bad news is that my fader is acting very strangely.

I have a graphic on the left. The news appears on the right (I know, duh! tipsy )

Let's say it's 100 pixels wide for the graphic area (which is a bit much) and 600 for the text area.

What is happening now is that it keeps flipping back and forth.

One moment, the graphic area is 100 pixels; the next, it's 600.

Is this making sense?

I'm going to try it using the old script ... and cross my fingers and hope it works ... but if not, this is the *issue* I'm having with this mod.
Posted By: ADWOFF Re: [6.6 - 6.7] [beta] News Fader - 03/01/2004 5:39 AM
Well, the old fader script file created errors, so I went back to the newer one ... it's still behaving strangely, though ... any ideas why?

http://adwoff.com/ubb-test/cgi/ultimatebb.cgi is my test site.
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 03/01/2004 6:29 AM
It's becasue brett's doesn't fade.
Posted By: ADWOFF Re: [6.6 - 6.7] [beta] News Fader - 03/01/2004 6:31 AM
Quote
Originally posted by Gizzy:

It's becasue brett's doesn't fade.
Okay. How does one fix the problem of the alternating sizes (i.e. 100 for the graphic/600 for the message ... then 600 for the graphic/100 for the message)?

I really would like to have this mod!
Posted By: Nate Re: [6.6 - 6.7] [beta] News Fader - 03/06/2004 5:12 AM
I thought I'd share my problem with this news fader, as it may present a clue to where the bugs lie.

I made the mods as described in the .zip in Brett's first post in this thread. I also used the fader.js in that zip.

I'm running UBB 6.6.1, and viewing it on IE6. Everything appears to be working except that the text doesn't show. The text is there, except that it is the same color as the background. The only text in the fader that is the color that it should be (ie. the only text I can see) is the numerical values for the number of posts and the number of topics.

I know the text is there-- if I run my mouse over it as if to highlight it, I can see it in the negative. Why is it doing that?!? I tried going into public_forum_summary.pl and including font color attributes everywhere and still no luck!?

Has anyone gotten this to work on 6.6.1?
Posted By: Nate Re: [6.6 - 6.7] [beta] News Fader - 03/06/2004 5:19 AM
Clue#2 - Its not reading carriage returns that separate the lines of text. In my CP where you type in the text to be displayed, I have carriage returns at the end of each line. These carriage returns aren't recognized, even if I leave two carriage returns between lines.
Posted By: Brett Re: [6.6 - 6.7] [beta] News Fader - 03/06/2004 6:15 AM
Hrm, I will reload this tonight when i get off work in a couple of hours. That would be grand if it was just a color error shocked . I still do want to get this working as i would like to see a cross-browser fader for once on ubb wink
Posted By: Gizmo Re: [6.6 - 6.7] [beta] News Fader - 03/06/2004 8:26 AM
I'd like it if it faded smirk... hopefully functioning like the original did for IE wink ..
Posted By: RandyM Re: [6.6 - 6.7] [beta] News Fader - 03/06/2004 8:34 AM
Quote
Originally posted by Gizzy:

I'd like it if it faded smirk... hopefully functioning like the original did for IE wink ..
That would be great.
Posted By: Brett Re: [6.6 - 6.7] [beta] News Fader - 03/06/2004 10:08 AM
smartalecs tipsy

It wasn't really helpful to install it on my testboard to see it working great on mozilla 1.6 and IE6. :

Nate: Could i have you replace (in public_forum_summary.pl)
'var tcolor = "$vars_style{CategoryStripColor}";'

to

'var tcolor = "$vars_style{CategoryStripTextColor}";'

? You'll also have to clear the forum summary cache. When i tested it, i was using the default colors. So i may need to create a new variable to insert the faded color too...

Also, line returns in the news fader text indicate individual messages. The only way to have an actual line return is too put the
tag in.
Posted By: Nate Re: [6.6 - 6.7] [beta] News Fader - 03/06/2004 6:49 PM
I understand that a line return separates the individual messages. For some reason last night, a line return was not separating individual messages.

Anyhow, I made the adjustment to public_forum_summary.pl, double-checked and reuploaded all the hacked files to make sure everything was done right. Checked permissions, went into CP, cleared the forum summary cache, closed my browser and opened a fresh browser window, and went to my test board.

The text is now visible! The fader is very close to working perfectly, but I see two more abnormalities--

First, once the fader begins to display the news fader text, its adding a blank line message between my individual messages. In other words, if my CP news fader text reads:

Quote
quote:
This is a test
Of the emergency broadcast system
then my fader does this:

quote:
[qb]This is a test
---pause for a moment---
(blank line with no words)
---pause for a moment---
Of the emergency broadcast system
---pause for a moment---
(blank line with no words)
---pause for a moment---[/qb]
The second abnormality that I noticed, which is fairly insignificant, is that while the words, "Total Posts" and "Total Topics" fade out, the actual values adjacent them do not fade out, but rather stick around until the words fade out and then disappear. Like I said, this is minor but I figured I'd mention it anyhow.
Posted By: Brett Re: [6.6 - 6.7] [beta] News Fader - 03/06/2004 8:10 PM
ok, i see. making progress smile How about replacing the read_news sub in ubb_forum_summary.cgi with this
Code
sub ReadNews {
my @news = split (/n/, $vars_news_fader{nftext});
my $chr = chr(13);
foreach (0.. $#news) {
$news[$_] = &strip_lead_trail_space($news[$_]);
next if($news[$_] eq '');

$news[$_] =~ s/(<img src=")(.+?)(" border="0")(>)/$1$2$3 /$4/isg;
$news[$_] = &Smilies($news[$_]);
$news[$_] = &UBBCode($news[$_]);
$news[$_] =~ s/(<img border="0" title="" alt=".+?" src=")(.+?)(" />)/$1$vars_config{NonCGIURL}/$2$3/isg;
$news[$_] =~ s/(<img border="0" alt=".+?" title="" src=")(graemlins/.+?)(" />)/$1$vars_config{NonCGIURL}/$2$3/isg;
$news[$_] =~ s/"/\"/isg;
$news[$_] =~ s/$chr//isg;
$the_page .= ($#news == $_) ? qq~"$news[$_]", ""~ : qq~"$news[$_]",n~;
}
}
I saw what you were talking about, and this should clear it up.
Posted By: Nate Re: [6.6 - 6.7] [beta] News Fader - 03/06/2004 10:26 PM
I made the change, reuploaded, cleared caches, etc.

Still no improvement; still posts a blank line in between individual messages, sorry.
Posted By: ADWOFF Re: [6.6 - 6.7] [beta] News Fader - 03/07/2004 11:45 PM
I think I'm seeing what Nate is seeing ... or, rather, not seeing. smile

After I enter a topic to the fader, it acts as if there is another message--albeit it, invisible.

A little quirk--one that I can live with for now--since the fader is fading and not *resizing* itself like it did before!
Posted By: Brett Re: [6.6 - 6.7] [beta] News Fader - 03/08/2004 1:20 PM
I went to your test board ADWOFF, and saw the problem. I was able to, what it looks like, patch the problem by changing in public_forum_summary.pl the bcolor, and tcolor parts to this:
Code
	var bcolor = "$vars_style{AltColumnColor1}";
var tcolor = "$vars_style{CategoryStripTextColor}";
Posted By: Nate Re: [6.6 - 6.7] [beta] News Fader - 03/08/2004 6:14 PM
Hmmm... no dice-- problem persists.

I wish I knew more perl and javascript; I've been taking a look at it myself but I'm afraid I won't be of much help until I learn more.
Posted By: Nate Re: [6.6 - 6.7] [beta] News Fader - 03/18/2004 9:23 PM
The problem is occuring where cp2_newsfader.pl writes the newsfader text to the vars file. If you look at vars_news_fader, there are two carriage returns at the end of each line instead of one.

I'm not sure why it does this, but perhaps a patch like this might work:

In ubb_forum_summary.cgi, change

Code
 sub ReadNews {
my @news = split (/n/, $vars_news_fader{nftext});
my $chr = chr(13);
to

Code
 sub ReadNews {
my @news = split (/nn/, $vars_news_fader{nftext});
my $chr = chr(13);
I would try it myself, but I have since upgraded to 6.7. Any plans to port this to 6.7?
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 03/18/2004 9:44 PM
This should work fine with 6.7
Posted By: ADWOFF Re: [6.6 - 6.7] [beta] News Fader - 04/18/2004 9:12 PM
I have this installed at my site, but the *delay* between the news events listed is significant.

Is there any way of fixing this?

(Yes, I tried playing with the amount of time between events, and that didn't seem to have any factor in changing the speed.)
Posted By: Nate Re: [6.6 - 6.7] [beta] News Fader - 04/20/2004 12:58 AM
I don't know how to fix it, but I can show you where the problem is:

Open up a copy of your vars_news_fader.cgi, and look at nftext-- see how it has entered a double carriage return at the end of each line? This hack needs to be re-worked so that it only enters a single carriage return, and then the amount of time between events will work properly.

I know some perl, but not enough to be able to spot what's causing this to happen. Good luck!
Posted By: Clay Autery Re: [6.6 - 6.7] [beta] News Fader - 04/20/2004 6:45 AM
As a work-around, I simply elected to reduce the event time to 1 second, and chose not to leave the "greeting" field blank in the CP->News Fader

Additionally, if the 1 second setting is still too ong for you (actually about 2 seconds), you can always go into the code in public_forum_summary.pl and changed this code:


Code
<script language="JavaScript1.2" type="text/javascript">
<!--
var delay = parseInt('$vars_news_fader{nfspan}') * 1000;
Change 1000 to what you need to make it right... 1000 milliseconds is default... If ou cut it down to 500, then you'll be right at one second total...

Also, if I jump in here:

Code
<td width="100%" height="49" align="$vars_news_fader{nfalign}">
and change the "height" value to 32, I get exactly two lines of text without the cell visibly "growing".... This is especially useful when folks pop up a "less than maximized" window (width), and causes even the shorter headlines to double up.

Also... The

Code
var tcolor = "$vars_style{CategoryStripColor}";
still hasn't been changed to:

Code
var tcolor = "$vars_style{CategoryStripTextColor}";
yet in the download file in the first post.

I think that's all I had to change.
I like this hack...

Here's my board if you want to see it: TurboFord.org

PS - I am using the fader.js in Brett's zip, and it seems to be working fine.
Posted By: Clay Autery Re: [6.6 - 6.7] [beta] News Fader - 04/20/2004 10:12 PM
Also... when/if new work is done on this hack, it'd be an AWESOME idea in my opinion to add an "optional" FIND/ADD instruction such that you could have the News Fader appear in the Forum level...

I'm assuming, since to get it on the Forum Summary level requires the code hack to public_forum_summary.pl, that to get the fader to appear at the top of each forum, some code would need to be added/changed in public_forum.pl

Why?

Well, a LOT of my readers don't enter the board via the Forums Summary page... I have a LOT of regulars who are linked directly to their favorite forum...

If I use the Fader to put out important info, then these guys miss it a lot of times.

Thanks!
Posted By: eXtremeTim Re: [6.6 - 6.7] [beta] News Fader - 04/29/2004 7:27 PM
Works great smile
Posted By: GATOR420 Re: [6.6 - 6.7] [beta] News Fader - 06/13/2004 10:51 AM
Hey all,

It's me again. smile In my News Fader it seems to be displaying twice the number of posts and topics when it displays total posts and topics than what it really on the board.

OK, not sure what is screwed up here, but I also just noticed that FSUM status was reporting double the total counts as well. Statistics seems to be the only thing reading the true count. Help please? smile

Thanks again...
Posted By: GATOR420 Re: [6.6 - 6.7] [beta] News Fader - 06/18/2004 1:00 AM
Any chance at getting this one looked at please? smile
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 06/18/2004 2:20 AM
uh... remove the code you added to to ubb_forum_summary.cgi for the status mod.
Posted By: GATOR420 Re: [6.6 - 6.7] [beta] News Fader - 06/19/2004 12:23 PM
Yep, that fixed it. Much appreciation Al. smile
Posted By: [email protected] Re: [6.6 - 6.7] [beta] News Fader - 07/10/2004 1:17 PM
It seems any html in the text line to be displayed causes the fade part to fail and the text just appears.

That's why the topic totals just jump on and off - they have a separate font statement.

I removed the < from the front of a link and it faded ok.
Posted By: LedFoot Re: [6.6 - 6.7] [beta] News Fader - 08/10/2004 3:36 AM
Runs in 6.7.1 just in case anyone was wondering with 1 minor exception. There seems to be a transition period (default of 6 seconds) where the news window is blank.

I tried changing the timeout to 2 seconds and the system information transitions OK now but the stuff I configure (with the ENTER as a separator) still puts in a 6 second delay between news items.

Any thoughts?
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 09/19/2004 8:41 PM
please delete
Posted By: AllenAyres Re: [6.6 - 6.7] [beta] News Fader - 01/08/2005 11:01 AM
Works well in 6.7.2, thanks smile

I've got a mhp if anyone is interested smile
Posted By: 1QuickSI Re: [6.6 - 6.7] [beta] News Fader - 03/02/2005 2:42 AM
Instead of having this display in the public-forums_summary would it be possible to have it display in each physical forum instead?
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 03/02/2005 3:54 AM
hmmm... you could probably just remove "_summary" from the install
Posted By: 1QuickSI Re: [6.6 - 6.7] [beta] News Fader - 03/02/2005 4:54 AM
Ok so public_forum_page.pl Ideas of where to add the text and would it be the same as shown in the install docs?
Posted By: Ian Spence Re: [6.6 - 6.7] [beta] News Fader - 03/03/2005 2:08 AM
prolly not, but I'm sure someone who knew what they were doing could do it no problem. In order to save, will do it later tonight or tomorrow night
Posted By: God Re: [6.6 - 6.7] [beta] News Fader - 09/29/2005 5:26 AM
I installed the newsfader and it is working but it isn't fading properly and sometimes I have to 'submit changes' in the cp about 5-6 times before it takes effect (yes, I cleared the cache).

I tried installed the fader.js from the 6.4 version but then it doesn't work at all.

Could someone please tell me what it is I need to do to make the fading work properly instead of the sporadic manner in which it is working now?

It fades in (but never to full white) and then all of a sudden disappears.

I've read through all 8 pages but I must have missed something because I still can't get it to function.
Posted By: d-talk Re: [6.6 - 6.7] [beta] News Fader - 03/10/2006 1:29 AM
Hello everyone,

can someone help me? News Fader Hack brakes all my tables....

My Board:

http://www.f1-board.com

Thanks
d-talk
© UBB.Developers