UBB.Dev
Posted By: Dark_Wizard Text Fader for the UBB, who's interested? - 04/27/2000 2:18 AM
I have incorporated a text fader into my site but it isn't quite finished yet but will be soon, who is interested in this? check it out here
like the ones that's in my sig?

sure

------------------
Moderator of UBB 5.45 and Hacks Compatibility

D r. D o l l a r z
M o d e r a t o r
Hey Dr Dollarz


Congrats for Mod. [Linked Image]

Greetings
http://crazywhite.virtualave.net
thanks [Linked Image]

------------------
Moderator of UBB 5.45 and Hacks Compatibility

D r. D o l l a r z
M o d e r a t o r
Posted By: Alien Re: Text Fader for the UBB, who's interested? - 04/27/2000 6:54 AM
You can include me in that 'interested' list, I could use this function nicely.

------------------
Administrator
Alien Soup Forums
http://www.aliensoup.com/cgi-bin/forums/Ultimate.cgi
Posted By: Dawg911 Re: Text Fader for the UBB, who's interested? - 04/27/2000 10:27 AM
ADD ME TOO THIS!

I'd make one, it would be easy. but I'm too lazy.
Posted By: cal Re: Text Fader for the UBB, who's interested? - 04/27/2000 11:07 AM
I'm working on a JS news fader which shows your annoucements. It's in it's last beta stages.

Just a thought [Linked Image]
Posted By: Greg Hard Re: Text Fader for the UBB, who's interested? - 04/27/2000 11:25 PM
I am VERY interested!
Hey Cal... your JS NewsFader really looks nice on the http://www.islandncs.com/cgi-bin/ubb/Ultimate.cgi site... sswwwweeeeet!

------------------
Allen

- http://www.stand318.com
Posted By: cal Re: Text Fader for the UBB, who's interested? - 04/29/2000 11:26 AM
That's not mine. Dark_wizard did that himself. Mine is better in 3 ways:

1) It's looks better (automatically takes ubb style settings and is centered

2) Uses JS not Java

3) Show UBB annoucements, rather than set headlines

Just a thought [Linked Image]
Posted By: mazmanr Re: Text Fader for the UBB, who's interested? - 04/30/2000 2:12 AM
this woudl b cool....my users will like it [Linked Image]
Posted By: The Team Re: Text Fader for the UBB, who's interested? - 04/30/2000 11:08 AM
hey mr dark, you can add me in your list too.
Ok...heres the deal....Cal says his is better....you saw his thread above about his features but here is mine:

  • * Netscape and IE compatable
    * Addition of clickable URL's
    * Message will pause when you place your mouse over it allowing you to click on the URL.
    * Mine is a Java Applet (small drawback)

I am trying to finish it up, when it is complete I will post it here. If everyone thinks Cal's is better then I will not continue to work on it. The choice is yours... [Linked Image]
Posted By: Dave# Re: Text Fader for the UBB, who's interested? - 05/01/2000 1:39 AM
The small drawback - its an applet is a HUGE drawback- no-one will use it IMVHO

CAL

How are you going to pass extended HTML strings to js var's? Its tough

------------------
http://www.cpfc-bbs.com/
Posted By: cal Re: Text Fader for the UBB, who's interested? - 05/02/2000 6:00 PM
Dammit - I'm supposed to have quit, but I just can't help myself.

Basically, the only bug as I see it is that mine isn't NS compatible yet (due to a tiny problem that i'll fix this week). My links are clickable (duh) and my headlines are taken straight from UBB annoucements (thus, no need to enter information twice).

For the moment, email me for hack support since I will no longer be posting to this board. Hope to see you all soon.

Just a thought [Linked Image]
Quote
quote:
Yes Please keep working on yours

here is my version.
-no problems with Netscape and IE!

options:
-greet to the last registered member
-UBB-Announcements
-user-defined news per cp
-Admin-Login

I write the code here on weekend
[aa] I'm impressed...the interface is nice and is far better than mine or Cal's, can you ICQ me with a URL so I can see it in action? [Linked Image]
I like it, where can i get the instructions for it [Linked Image]
Oh my god that is amazing!
Posted By: Slasher Re: Text Fader for the UBB, who's interested? - 05/06/2000 1:33 AM
Not bad i like it, i hope you'll finish it soon [Linked Image]
Count me in. I hope it will be backwards compatible with versions like 5.39. [Linked Image]
okay, tomorrow evening is finished it wink
This enables you in the forumdisplay the display and fadeIn of news that you can define on yourself
For this you can choose between several options ("generell settings").
You also can add, delete and edit userdefined news on the controlpanel ("add news").

Yes! Excellent Hack, In 24 Hours I am gonna have this hack installed!
Posted By: Alien Re: Text Fader for the UBB, who's interested? - 05/07/2000 8:20 AM
This looks great.

Looking forward to adding this in!

------------------
Administrator
Alien Soup Forums
http://www.aliensoup.com/cgi-bin/forums/Ultimate.cgi
Posted By: Slasher Re: Text Fader for the UBB, who's interested? - 05/07/2000 2:46 PM
I hope you don't make it in german like in your example [Linked Image]
aaarrgggghhhhh!! how much longer....this is a nice addition...can't wait... [Linked Image]
Is this English correct?

dialog generell settings:

NEWS FADER

Enables showing and fading of the news in the Forum-overview. It is possible to integrate the UBB's current announcements, if turned on.
You can also create userdefined news by controlpanel under "Add News"


Options:

"Show the lastest reg. Member"
"Do not show the lastest reg. member"
"Show current UBB-Announcements"
"Do not Show current UBB-Announcements"
"Show userdefined news"
"Do not show userdefined news"


Dialog NEWS ADDON in CP

ADD NEWS

To add a new newsline use the first editbox. HTML and links are allowed. But please use ' instead of ".
If the whole line should link to a page then use the second editbox to enter the link. No " again.

Add Newsline:
Add Newsline-Link (Optional):


EDIT / DELETE NEWS

The contents of this editbox are the userdefined newslines.
Here you can edit or delete old newslines. Change the text in this editbox and press "update" when you're done.
a news datarecord consists of "topic", "link",
Ensure after editing that the last datarecord may not have an comma as last character!!!


hmm?
Posted By: The Team Re: Text Fader for the UBB, who's interested? - 05/07/2000 10:37 PM
generell ---> general
lastest ---> latest

rest is OK [Linked Image]

hope you will post it very soon
newsfader v2.2 (beta!)


DEMO (temp!)
AWESOME!!
exit(0); # comply with SafePerl

This doesn't exist in 5.39 in both Ultimate.cgi and cpanel3.cgi. Where should I put the subs?
go to the bottom of the file and add the code

in cpanel3.cgi directly underneath

ENDIT
}


and in Ultimate.cgi underneath

RegHTML
} ## END Register SR ##



5.39? huih [Linked Image]
Underneath what?

"exit(0); # comply with SafePerl" does not exist in version 5.39, and there are 2 instances of this in the instructions. Once in Ultimate.cgi, and once in cpanel3.cgi.

Where do i put the subs that follow "exit(0); # comply with SafePerl" in your hack instructions in version 5.39?
Good job, this hack works perfectly and like the feature to add news lines via controlpanel. Its a keeper
Thanks [aa]! [Linked Image]
no luck here...I get "Done, but with errors on page", must be conflicting with another javascript....not sure...checked the code three times.....[aa] if your on ICQ me at 29478259 thx.DW
oops!

One more....

5.39 doesn't have FloodCheck.

This doesn't exist in cpanel2.cgi:

print qq(




Flood Check?


Where do i put the code?

Thanks in advance!
Ok.
I click on "Add News" in the CP, submit my Identification, and i get a blank screen.

What did I do wrong?
arrgs... wink

Dark_Wizard:
I am not Java expert however try the java routine from originalhack:







but the code is [censored], it won't work with NS and did many errors at the HTML code...


NBAustin:

Add the code directly underneath:


&InputRadioRow("#dedfdf", "Cookie Option", "If you are setting up more than one UBB on a domain, you should elect to have cookies set to the precise directory that that UBB is running in. If you are only running one UBB on your domain, then you can set your cookies more broadly. The default is to set BROADLY.", " Set Cookies to This UBB CGI Directory Only

Set Cookies Broadly - Entire Domain");
print<


and... the blank screen...hmmm this is a beta-bug with adminpass-cookie. i'll fix the error.
here is my error as reported by Internet Explorer 5.1
I also get an ugly red box to the right of the news headline. i saw your fix for this, but colspan="4" is nowhere in my ultimate.cgi file.

Any thoughts?
You can see it here .

Thanks in advance.
Dark_Wizard

did you set those variables in the general settings and only set that switches you really want to use at the cp...?

This is a beta version wink
No change [aa].

Still have the box.

PS... The "Announcements" headline should be underlined like the last regged member is so people know to click on it.
Would anyone know why it doesnt show the users name for newest registered member
Quote
quote:
Yes...I have tried everything...just userdefined, then just announcements, then both...all the variables are set...do you want me to email my Ultimtae file? If so give me your email address....
NBAustin change in ...



to:





KillmAll:

change in ultimate.cgi:


if ($NEWS_REG eq "ON") {
if ($DisplayMemberTotal ne "true") {
&GetMemberListArray;
my $TotalMembers = @members;
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
}


to:

if ($NEWS_REG eq "ON") {
if ($DisplayMemberTotal ne "true") {
&GetMemberListArray;
my $TotalMembers = @members;
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
} else {
if ($LastReg eq "") {
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
}
}


or install "show the latest reg. memberhack"!
that doesn't work either...I tried it on a clean 5.45b test board and it doesn't work. Can anyone help?
Quote
quote:
have you made any headway on this?
NBAustin

for underlined links change in Ultimate.cgi

FDRlnkDec = "none";

to:

FDRlnkDec = "underline";



Dark_Wizard -> aa@german-elite-board.com
NBAustin

here is the fix for blank screen:

in cpanel3.cgi find:


sub NewsFader {
&get_cookie;
&VerifyAdminCP($UserName, $Password);
if ($Proceed eq "true") {

and change to:


sub NewsFader {
&VerifyAdminCP($UserName, $Password);
if ($Proceed eq "true") {


---------------------

i added the changes made so far to the description. current version is 2.2

newsfader v2.2 (beta!)


DEMO (temp!)
[aa],

made the change, and it's still comes up blank.

I noticed this:

$newspage = "$CGIPath/newzline.cgi";

Did I miss something? I don't remember any instructs for a newzline.cgi file.
Dark_Wizard hmmm....

if the following doesn't work it's not the fault of the hack:


    [*] all options must be set to 'show...'

    [*] create a userdefined test-newsline

    [*] create an announcement to be shown in all forums

    [*] check if there is a file called 'newzline.cgi' in your cgi-bin and if there is a userdefined message in it.


errm... did the newslinehack 1.1 work for you?

please note that i made some changes in yours and cal's routine:


if ($AnnouncementBlock ne "") {$AnnouncementBlock .= ",n";}
$AnnouncementBlock .= qq("$LatestTitle","$CGIURL/ubbmisc.cgi?action=getannounce&ForumNumber=1&Start=$StartJulian&End=$EndJulian&Session=$SessionLogin");


to:

if ($AnnouncementBlock ne "") {$AnnouncementBlock .= "$SEP_On";}
$AnnouncementBlock .= qq("$LatestTitle","$CGIURL/ubbmisc.cgi?action=getannounce&ForumNumber=1&Start=$StartJulian&End=$EndJulian&Session=$SessionLogin"$SEP_U);


NBAustin the file creates itself if it doesn't already exist

ps. i will change some things on the error-handling soon
What u posted for me worked perfect [aa].

Thanks
I guess i need this "newsline hack".

I wish i had known this. Can someone direct me to it? Evidently this is why "Add News" comes up blank.
the bug with the blank page at actualisations has been fixed. i had to change some things for this, because only the admin should be able to run it wink

everyone with a previous version installed has to do this changes:

#
##in cpanel3.cgi find:
#

if ($action eq "news") {
&NewsFader;
}

#
## replace with
#

if ($action eq "news") {
&get_cookie;
$User_name = $UserName;
$Pass = $Password;
&VerifyAdminCP($UserName, $Password);
if ($Proceed eq "true") {
&NewsFader;
}
}

#
## in cpanel3.cgi delete:
#

sub NewsUpdateMessage {
&get_cookie;
if ($cookie{UserNameCP}) {
$UserName = "$cookie{UserNameCP}";
$Password = "$cookie{PasswordCP}";
&VerifyAdminCP($UserName, $Password);
if ($Proceed eq "true") {
&NewsFader;
} else {
exit;
}
}
}

#
## in cpanel3.cgi replace
## sub NewsFader, sub updatenews and sub addnewsline
# with:

sub NewsFader {
$Password = $Pass;
$Username = $User_name;
&VerifyAdminCP($Username, $Password);
if ($Proceed eq "true") {
require "Styles.file";
open(NEWS,"<$CGIPath/newzline.cgi");
@lines = ;
close(NEWS);
$the_page = join('', @lines);

print<
NewZ$HeaderInsert

S E T N E W S L I N E S




















ADD NEWS $a_message


To add a new newsline use the first editbox. HTML and links are allowed. But please use ' instead of ".

If the whole line should link to a page then use the second editbox to enter the link. No " again.
Newsline:


Newsline Link (Optional):

























EDIT / DELETE NEWSLINES $u_message

The contents of this editbox are the userdefined newslines.

Here you can edit or delete old newslines. Change the text in this editbox and press "update" when you're done.


a news datarecord consists of "topic", "link",

Ensure after editing that the last datarecord may not have an comma as last character!!!












by AA 2000



NEWZHTML
}
}

sub updatenews {
$Pass = $in{'Pass'};
$User_name = $in{'User_name'};
&VerifyAdminCP($User_name, $Pass);
if ($Proceed eq "true") {
$new_page = $in{'new_page'};
@newstuff = $new_page;
open(NEWS,">$CGIPath/newzline.cgi");
print NEWS join('', @newstuff);
close(NEWS);
$a_message = "";
$u_message = "$User_name, The NEWS-database have been successfully updated.";
&NewsFader;
exit;
}
}

sub addnewsline {
$Pass = $in{'Pass'};
$User_name = $in{'User_name'};
&VerifyAdminCP($User_name, $Pass);
if ($Proceed eq "true") {
$newitem = $in{'new_item'};
$subject = $in{'subject'};
$currentnews = ""$subject","$newitem"";
$hmhm = "";
open(NEWS,"<$CGIPath/newzline.cgi");
@newslines = ;
close(NEWS);
foreach $item(@newslines)
{
$hmhm .= $item;
}
if ($hmhm ne "") {$currentnews .= ",n";}
$hmhm = $currentnews.$hmhm;
@newslines = $hmhm;

open(NEWS,">$CGIPath/newzline.cgi");
foreach $line(@newslines)
{
print NEWS "$line";
}
close (NEWS);
$u_message = "";
$a_message = "$User_name, The new Newsline successfully added!";
&NewsFader;
exit;
}
}

#
##done
#

all instructions can be found here:



current version 2.3

Demo: here
sorry. DEMO: here
Can anyone help me with this that has javascript experience? If you go to my page and click on the icon in the lower left hand corner with the java error it will display the error like this http://www.islandncs.com/error.gif
then view source and see line 48 has nothing there...am I missing something when I post the news? It says it's missing the ] am I supposed to add this somewhere? Please help...
[aa],

I just made all those changes, and it still comes up blank when submit my identification to "Add News".
Dark_Wizard

the following entries in UltBB.setup ?

$NEWS_REG = qq(ON);
$NEWS_ANNC = qq(ON);
$NEWS_UDEF = qq(ON);
Quote
quote:
Now what the hell is this?
NBAustin

#
##in cpanel3.cgi find:
#

sub NewsFader {
$Password = $Pass;
$Username = $User_name;
&VerifyAdminCP($Username, $Password);
if ($Proceed eq "true") {
require "Styles.file";

#
## and replace with:
##

sub NewsFader {
require "Styles.file";

#
## in cpanel3.cgi find:
##

NEWZHTML
}
}

#
## and replace with:
##

NEWZHTML
}

#
##done
#
Try again [aa].

Still get a blank page.
NBAustin

$NEWS_REG = qq(ON);
$NEWS_ANNC = qq(ON);
$NEWS_UDEF = qq(ON);

Settings from CP!

$NEWS_REG = qq(ON); ->> "Show the latest reg. Member"
$NEWS_REG = qq(OFF); ->> "Do not Show the latest reg. Member"

.
.
.
Evidently it's not creating that newzline.cgi file.

It accepts my identification, but puts up a blank page and the browser says DONE at the lower left.
NBAustin grrr... are they sure that they have a UBB? wink

delete your f*** cookies!
Of course i have a UBB!

It's 5.39.

Everything else accepts my cookies just fine.

"Add News" accepts my cookie, but puts up a blank page. It is NOT creating that newzline.cgi file.
NBAustin ok, find in cpanel3.cgi and Ultimate.cgi newzline.cgi and change to newzline.txt

your chmod of cgi-bin is 755?
I'm running on NT. I don't need to CHMOD.

Why change to a txt file? Are we grasping at straws now? Experimenting?
Quote
quote:
Quote
quote:
It's a cookie issue.....try creating the newzline.cgi file and give the rights as follows: -rw-r--r-- see if that helps....
just dumped the cookies and redid them. No change.
NBAustin

find in cpanel3.cgi and Ultimate.cgi $CGIPath/newzline.txt or *.cgi wink

and change all to: $NonCGIPath/newzline.txt
Quote
quote:
I created and uploaded in ascii. I don't have a clue as to setting rights.

No change.
Quote
quote:
No change. Still blank.
Maybe I should reinstall this hack?
This is going nowhere.

I think it's a backward compatibility problem. This was written for the newer versions, not for versions like 5.39.

Any more ideas before I scrap and start over?

Everything works except "Add News".
NBAustin SOORRRRRY!

DEMO 5.39: here!


in 5.39 "&VerifyAdminCP{blah..." ???

change all "&VerifyAdminCP...."

to "&VerifyAdmin...." (delete "CP" !!!!

damn
Thanks.

Now...which files? Just Ultimate.cgi & cpanel3.cgi or all of the ones listed in the hack?
&VerifyAdminCP does not exist in any of the files.
in cpanel3.cgi!

if ($action eq "news") {
&get_cookie;
$User_name = $UserName;
$Pass = $Password;
&VerifyAdmin($UserName, $Password);
if ($Proceed eq "true") {
&NewsFader;
}
}
if ($action eq "updnews") {
&updatenews;
}
if ($action eq "addnews") {
&addnewsline;
}

....

sub NewsFader {
$Password = $Pass;
$Username = $User_name;
&VerifyAdmin($Username, $Password);
if ($Proceed eq "true") {

require "Styles.file";

...

sub updatenews {
$Pass = $in{'Pass'};
$User_name = $in{'User_name'};
&VerifyAdmin($User_name, $Pass);
if ($Proceed eq "true") {

...

sub addnewsline {
$Pass = $in{'Pass'};
$User_name = $in{'User_name'};
&VerifyAdmin($User_name, $Pass);
if ($Proceed eq "true") {


and rechange:

NEWZHTML
}

to

NEWZHTML
}
}
Making progress!

I can get the "Add News" screen.

BUT....
I enter text in the box.....and click "add"....

and i get ANOTHER blank screen!
Fixed it. Missed a "CP" [Linked Image]

Thanks!
NBAustin hehe...hm here your last chance before you'll better try an update

#
##find in cpanel3.cgi:
#

if ($action eq "news") {
&get_cookie;
$User_name = $UserName;
$Pass = $Password;
&VerifyAdmin($UserName, $Password);
if ($Proceed eq "true") {
&NewsFader;
}
}

#
## and replace with:
#

if ($action eq "news") {
&get_cookie; #retrieves all current cookies

if ($cookie{UserNameCP}) {
$UserName = "$cookie{UserNameCP}";
$Password = "$cookie{PasswordCP}";
$User_name = $UserName;
$Pass = $Password;
&VerifyAdmin($UserName, $Password);

if ($Proceed eq "true") {
&NewsFader;
}
}
}

#
## done
#
Works fine now. Didn't need the last fix you offered. Thank you for your patience and help!

Now.....
We need to make the box taller (or whatever needs to be done) to handle 2 lines of text! If you go too long, it gets cut off, and only partially shows a tip of the 2nd line's text.
try in Ultimate.cgi:

FDRboxHgt = 50; or 45?

and

50>


demo
Posted By: NBAustin Re: Text Fader for the UBB, who's interested? - 05/09/2000 10:03 AM
Thank you.

I'll play around with that.

5.39 doesn't suck!
I just have so many hacks, I can't upgrade. I have extra text fields and truncation crap for news article posting, and I have to comply with copyright laws.

I tried an upgrade a while back and none of my stuff worked.

Thanks again for your patience and help [aa]!
Posted By: NBAustin Re: Text Fader for the UBB, who's interested? - 05/09/2000 10:08 AM
I wish we could edit our posts here.

Is there a way we can fit more text on the one line? It seems the box can accomodate a longer text line.
Yeah, I read over and over again about this rant of the news fader and it all seems cool but just exactly where do I get it??? Should have told that a long time ago eh?
Posted By: LoneWolf Re: Text Fader for the UBB, who's interested? - 05/21/2001 10:13 AM
I installed the hack and everything works perfectly. Except when the userdefined news finishes the hack stops and I would get "Error on Page" message below.

It doesn't want to loop! help please..
Posted By: LoneWolf Re: Text Fader for the UBB, who's interested? - 05/21/2001 10:20 AM
sorry forgot to add my URL.. here it is:

http://www.demna.org:81/~barsa/cgi-bin/Ultimate.cgi
Posted By: CT Re: Text Fader for the UBB, who's interested? - 05/22/2001 2:18 AM
Make sure you don't end your custom news with a ,
yeah am sure my news doesn't inclue a "," but when I add an entry the script adds it automatically if I inserted for instance "testing testing" the script will save it as: "testing testing","",
You have to make sure the last line doesn't have a comma, the script inserts it and we never got around to fixing it.
Thanks man!! yeaah FINALLY it worked!.. I didnt know that I have to "manually" delete the last comma in the userdefined field! this bug should have been noted in the installation readme file!

Thanks again!
The newscript works beautifully (2.5) in 5.47e, except for the welcome our newest user, message.
Fixed by adding to the else statement as shown below.

In the Ultimate.cgi file:
if ($NEWS_REG ne "") {
if ($DisplayMemberTotal ne "true") {
&GetMemberListArray;
my $TotalMembers = @members;
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
} else {
if ($LastReg eq "") {
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
}
}

##
# Replace with :
##

if ($NEWS_REG ne "") {
if ($DisplayMemberTotal ne "true") {
&GetMemberListArray;
my $TotalMembers = @members;
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
} else {
if ($LastReg eq "") {
&GetMemberListArray;
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
}
}

[ May 29, 2001 02:33 AM: Message edited by: dynomite ]
Can someone tell me what this hack does please?
© UBB.Developers