Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
Joined: May 2001
Posts: 1,042
Likes: 7
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

Sponsored Links
Joined: Jan 2000
Posts: 5,809
Likes: 12
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,809
Likes: 12
I'd like it if it faded smirk... hopefully functioning like the original did for IE wink ..


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jun 2001
Posts: 2,849
R
Spotlight Winner
Offline
Spotlight Winner
R
Joined: Jun 2001
Posts: 2,849
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.

Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
Joined: May 2001
Posts: 1,042
Likes: 7
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.

Joined: Dec 2003
Posts: 40
N
Member
Offline
Member
N
Joined: Dec 2003
Posts: 40
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.

Sponsored Links
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
Joined: May 2001
Posts: 1,042
Likes: 7
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.

Joined: Dec 2003
Posts: 40
N
Member
Offline
Member
N
Joined: Dec 2003
Posts: 40
I made the change, reuploaded, cleared caches, etc.

Still no improvement; still posts a blank line in between individual messages, sorry.

Joined: May 2001
Posts: 794
A
Content Queen
Offline
Content Queen
A
Joined: May 2001
Posts: 794
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!


Sue
adwoff.com
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
Joined: May 2001
Posts: 1,042
Likes: 7
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}";

Joined: Dec 2003
Posts: 40
N
Member
Offline
Member
N
Joined: Dec 2003
Posts: 40
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.

Sponsored Links
Joined: Dec 2003
Posts: 40
N
Member
Offline
Member
N
Joined: Dec 2003
Posts: 40
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?

Joined: Jan 2003
Posts: 3,456
Likes: 2
I
Master Hacker
Offline
Master Hacker
I
Joined: Jan 2003
Posts: 3,456
Likes: 2
This should work fine with 6.7

Joined: May 2001
Posts: 794
A
Content Queen
Offline
Content Queen
A
Joined: May 2001
Posts: 794
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.)


Sue
adwoff.com
Joined: Dec 2003
Posts: 40
N
Member
Offline
Member
N
Joined: Dec 2003
Posts: 40
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!

Joined: Nov 2003
Posts: 11
C
Junior Member
Offline
Junior Member
C
Joined: Nov 2003
Posts: 11
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.


Clay Autery
"More, Better, Faster..."
Joined: Nov 2003
Posts: 11
C
Junior Member
Offline
Junior Member
C
Joined: Nov 2003
Posts: 11
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!


Clay Autery
"More, Better, Faster..."
Joined: Oct 2001
Posts: 572
E
Member
Offline
Member
E
Joined: Oct 2001
Posts: 572
Works great smile

Joined: Jan 2003
Posts: 118
G
Member
Offline
Member
G
Joined: Jan 2003
Posts: 118
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...


-GATOR

"Pain is temporary, Pride is forever"
Joined: Jan 2003
Posts: 118
G
Member
Offline
Member
G
Joined: Jan 2003
Posts: 118
Any chance at getting this one looked at please? smile


-GATOR

"Pain is temporary, Pride is forever"
Joined: Jan 2003
Posts: 3,456
Likes: 2
I
Master Hacker
Offline
Master Hacker
I
Joined: Jan 2003
Posts: 3,456
Likes: 2
uh... remove the code you added to to ubb_forum_summary.cgi for the status mod.

Joined: Jan 2003
Posts: 118
G
Member
Offline
Member
G
Joined: Jan 2003
Posts: 118
Yep, that fixed it. Much appreciation Al. smile


-GATOR

"Pain is temporary, Pride is forever"
Joined: Mar 2001
Posts: 80
P
Member
Offline
Member
P
Joined: Mar 2001
Posts: 80
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.

Joined: Jan 2003
Posts: 28
L
Junior Member
Offline
Junior Member
L
Joined: Jan 2003
Posts: 28
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?

Joined: May 2001
Posts: 684
D
Code Monkey
Offline
Code Monkey
D
Joined: May 2001
Posts: 684
please delete


Webmaster of d-talk & Kabel-Forum.com
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Works well in 6.7.2, thanks smile

I've got a mhp if anyone is interested smile


- Allen wavey
- What Drives You?
Joined: Jun 2001
Posts: 729
1
Coder
Offline
Coder
1
Joined: Jun 2001
Posts: 729
Instead of having this display in the public-forums_summary would it be possible to have it display in each physical forum instead?

Joined: Jan 2003
Posts: 3,456
Likes: 2
I
Master Hacker
Offline
Master Hacker
I
Joined: Jan 2003
Posts: 3,456
Likes: 2
hmmm... you could probably just remove "_summary" from the install

Joined: Jun 2001
Posts: 729
1
Coder
Offline
Coder
1
Joined: Jun 2001
Posts: 729
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?

Joined: Jan 2003
Posts: 3,456
Likes: 2
I
Master Hacker
Offline
Master Hacker
I
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

Joined: Sep 2005
Posts: 44
G
God Offline
Member
Offline
Member
G
Joined: Sep 2005
Posts: 44
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.

Joined: May 2001
Posts: 684
D
Code Monkey
Offline
Code Monkey
D
Joined: May 2001
Posts: 684
Hello everyone,

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

My Board:

http://www.f1-board.com

Thanks
d-talk


Webmaster of d-talk & Kabel-Forum.com
Page 3 of 3 1 2 3

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,552
Posts293,830
Members13,842
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 238
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 5
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,809
Greg Hard 4,625
Top Posters(30 Days)
stell 3
Gizmo 1
Morgan 1
isaac 1
Top Likes Received
isaac 66
Gizmo 12
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20201211)
Responsive Width:

PHP: 5.4.45 Page Time: 0.114s Queries: 77 (0.050s) Memory: 3.5760 MB (Peak: 3.9290 MB) Data Comp: Zlib Server Time: 2021-03-07 14:57:26 UTC
Valid HTML 5 and Valid CSS