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?
have you made any headway on this?
NBAustinfor underlined links change in Ultimate.cgi FDRlnkDec = "none";
to: FDRlnkDec = "underline"; Dark_Wizard -> aa@german-elite-board.com
NBAustinhere 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.2newsfader 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 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
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.3Demo: 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);
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? 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?
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.
NBAustinfind in cpanel3.cgi and Ultimate.cgi $CGIPath/newzline.txt or *.cgi and change all to: $NonCGIPath/newzline.txt
I created and uploaded in ascii. I don't have a clue as to setting rights. No change.
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 "&VerifyAdmin CP...." 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" 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>
News Fader für DHTML Browser. | demo
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]!
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?
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..
sorry forgot to add my URL.. here it is:
http://www.demna.org:81/~barsa/cgi-bin/Ultimate.cgi
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?
|