in public_forum_summary.pl
change:
to: |
then
change: |
to: |
then you'll need to clear your cache
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*
Hi again,
nothing has changed.....:-(
should be |
(at least that's what it looks like to me)
looks like you've fixed it like the design
...but I nee a break between Newsfader and Forums....what can I do..
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 ...
Hi Gizzy,
I have replaced the fader script to the old one, but this does not work...
*goes off to write new port*
rofl al; make it Operation: Old Version....
I actually already got it working, I just hope I can stay awake long enough to write the install.txt tonight
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
you gotta be kidding me...
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?
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
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
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.
Does anyone know where I can find the OLD fader.js?
- MT
you might try the archived mod forum... I don't think that file changed for years
I know one! check the 6.4/6.5 port! lol...
Zip file updated. It now fades in and out, and is still mozilla friendly. Just reupload the fader.js and search the instructions for the addition in public_forum_summary.pl for the differences.
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
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.
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
So it doesn't show up at all?
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
did you upload the old verion of fader.js in the 6.3+ version?
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. Thanks, - MT
the 6.4 version is the one you should use
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
Nobody has any suggestions for this?
- MT
Have you upload fader.js ?
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
Originally posted by Brett:
Zip file updated. It now fades in and out, and is still mozilla friendly. 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.
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
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
In the left bar, there should be a link saying "Newsfader" or something similar
*Feature Request* Have an option to make the news fader attached/detached from the main island... 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 ;-)
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.
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
Thank Weird Al.....all appears to be working flawlessly now! Guess I forgot to upload or an error in uploading the cp2_lib.cgi.
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?
That code is designed for NS4 and IE4, not web standards.
well IE6 wasn't designed for web standards either
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: 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?!
Although I'm sure that Gizzy's reply is exactly what you wanted 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.
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.
Originally posted by Gizzy:
you get norton! lol...
Ha ha ha ha 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.
All-righty, cuz I'm a persistant person (it's da goat in me ), 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! ) 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.
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.
It's becasue brett's doesn't fade.
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!
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?
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.
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 . I still do want to get this working as i would like to see a cross-browser fader for once on ubb
I'd like it if it faded ... hopefully functioning like the original did for IE ..
Originally posted by Gizzy: I'd like it if it faded ... hopefully functioning like the original did for IE .. That would be great.
smartalecs 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.
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:
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.
ok, i see. making progress How about replacing the read_news sub in ubb_forum_summary.cgi with this 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.
I made the change, reuploaded, cleared caches, etc.
Still no improvement; still posts a blank line in between individual messages, sorry.
I think I'm seeing what Nate is seeing ... or, rather, not seeing. 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!
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: var bcolor = "$vars_style{AltColumnColor1}"; var tcolor = "$vars_style{CategoryStripTextColor}";
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.
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 sub ReadNews { my @news = split (/n/, $vars_news_fader{nftext}); my $chr = chr(13); to 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?
This should work fine with 6.7
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.)
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!
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: <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: <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 var tcolor = "$vars_style{CategoryStripColor}"; still hasn't been changed to: 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.
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!
Works great
Hey all, It's me again. 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? Thanks again...
Any chance at getting this one looked at please?
uh... remove the code you added to to ubb_forum_summary.cgi for the status mod.
Yep, that fixed it. Much appreciation Al.
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.
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?
Works well in 6.7.2, thanks I've got a mhp if anyone is interested
Instead of having this display in the public-forums_summary would it be possible to have it display in each physical forum instead?
hmmm... you could probably just remove "_summary" from the install
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?
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
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.
Hello everyone, can someone help me? News Fader Hack brakes all my tables.... My Board: http://www.f1-board.com Thanks d-talk
| |