php forum
php mysql forum
php mysql smarty
 
Topic Options
#43000 - 10/15/00 06:10 AM v5.47 .v.s. Fader 2.4 Display N. Member Problem
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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 = <MEMTOTAL>;
close (MEMTOTAL);
$MemberLine = "Registered Members: <B>$TotalMembers</B>";
}
#############################################

So I replaced the code and made it look this:

#############################################
if ($DisplayMemberTotal eq "true") {
open (MEMTOTAL, "$MembersPath/membertotal.cgi");
$TotalMembers = <MEMTOTAL>;
close (MEMTOTAL);
## Welcome Newest Member...
&GetMemberListArray;
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);

$MemberLine = "Registered Members: <B>$TotalMembers</B>";
}
#############################################

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

Top


Who's Online
1 registered (Gizmo), 17 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Today at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks