I just installed News Fader v2.4 on 5.47. I ran into a problem.
Display Newest Member
In the installation instructions is says to add the following to Ultimate.cgi
#############################################
if ($NEWS_UDEF ne "") {
$the_page = "";
&ReadNews;
} else {
$the_page = "";
}
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);
}
}
#############################################
and a whole lot more in addition to that.
Well, I added the code and it did display the HTML message but No Newest Member was being displayed.
SO i got to looking around, and here is what I came up with:
This is the original v5.47 #Check Display Option Code:
#############################################
## check other display options--
if ($DisplayMemberTotal eq "true") {
open (MEMTOTAL, "$MembersPath/membertotal.cgi");
$TotalMembers = ;
close (MEMTOTAL);
$MemberLine = "Registered Members: $TotalMembers";
}
#############################################
So I replaced the code and made it look this:
#############################################
if ($DisplayMemberTotal eq "true") {
open (MEMTOTAL, "$MembersPath/membertotal.cgi");
$TotalMembers = ;
close (MEMTOTAL);
## Welcome Newest Member...
&GetMemberListArray;
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
$MemberLine = "Registered Members: $TotalMembers";
}
#############################################
The additional code is from the "Welcome Newest User Hack" which is nearly the same as the Fader hack Section that was added.
GO figure :-)
I think the authors of the News Fader already had this installed when they wrote the News Fader Hack instructions, but Im not sure. All I know at this point is, that its now working just the way it used to on 5.45c
I guess the recommendation here is, to add to the requirments section of the News Fader hack that (at least with v5.47 maybe others), "The Display Newest User Hack" Needs to be Installed, or just add the code to the Fader hack itself.
In any case, maybe Im out to lunch here and or have missed something major, but It's now working and I'm really happy :-)
Allen said I should post this in this section, so here it is. Maybe you all can figure out what did wrong or if the hack needs a tweek for v5.47.
Thanks.
G_B