This Hack allows the display of "last registered member" regardless of if display number of registered members is on or not.
*** Welcome The Last Member To Register Hack ***
updated by Flames, June 2000 to allow this to display with or without Member totals.
This hack will allow you to post a welcome message on your Ultimate.cgi to the last person to register on your board, which appears right below your "Registered Users" listing. The newest member's username will also link to their profile.
## This section no longer applies
##*Note: You must have the "registered users" display set to "on" in ##your General Variables. This hack works is known to work on versions ##5.39b and above. If you have any questions, you can contact me at ##
[email protected], but I can't promise a response right away.
Edit ULTIMATE.CGI
Look for this codE:
## check other display options--
if ($DisplayMemberTotal eq "true") {
&GetMemberListArray;
my $TotalMembers = @members;
Right underneath that add this:
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
Next look for this code:
$MemberLine = "Registered Members:
$TotalMembers";
}
Right before the second set of "" add this:
Greetings to our newest registered member,
$LastRegSo that line should now look like this:
$MemberLine = "Registered Members:
$TotalMembersGreetings to our newest registered member,
$LastReg";
}
Directly under this add the following
## Allows display of last registered user even when "registered users ##display" is turned off.
##Hack Modification by Flames, June 2000
if ($DisplayMemberTotal eq "false") {
&GetMemberListArray;
my $TotalMembers = @members;
@lastmember = reverse(@members);
$LastReg = $lastmember[0];
$LastRegCoded = $LastReg;
chomp($LastReg);
$LastRegCoded =~ tr/ /+/;
chomp($LastRegCoded);
$MemberLine = "Greetings to our newest registered member,
$LastReg";
}
## Upload to your cgi bin and set the chmod to 755