Previous Thread
Next Thread
Print Thread
Rate Thread
#37707 06/12/2000 10:46 AM
Joined: Jun 2000
Posts: 3
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 3
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, $LastReg

So that line should now look like this:
$MemberLine = "Registered Members: $TotalMembers
Greetings 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

Sponsored Links
Joined: Jan 2000
Posts: 47
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 47
All you did was add
to the text.

------------------
http://su.ffgamers.net

Joy! A hobby that only cost me $170.

Joined: Jun 2000
Posts: 3
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 3
Ya think?.... then use the original and see if it displays the greeting with "show number of registered members" turned off.
Alternatively read the authors note saying it WONT (but it now does).
Failing all else read the thing before making half assed coments.
Have a nice day.
PS this was done for those who's board may not have a lot of members and still want to display this feature


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)