Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 254
Member
Member
Offline
Joined: Apr 2001
Posts: 254
OK! I am hacking myself! eek
I am making a hack so that Members can select if they want to be Federation or Klingon Ranks Templates. They then progress through their disered ranks.

I have managed to get so that members can select what Rank they want from their profile.
But what I can't work out is where to put the code for UBB to find out what rank people r, and what rank template they r.

I am using bits of a UBB 5 hack and the Flag Hack and modifying it.

Here is the code for the UBBVersion5 MultiRank so that UBB finds out what rank everyone is. It goes in ubb_library2.pl


##### Next, FIND #######

if ($ThisStatus eq "Administrator") {
$ThisStatus = "
Admin";
}
elsif ($ThisStatus eq "Moderator") {
$ThisStatus = "
Moderator";
} else {
$ThisStatus = "
Member";
if ($thisprofile[7] > 10) {
$ThisStatus = "
Senior Member";
}

# NOTE: Replace the above with this below, you will have to create a Ranks directory in your non-cgi directory and upload all the pips you want then below you will need to change the name of each pic for the pips to what you have.


#get reply writer's email view status
my $ProfileNumber = &GetUserNumber($thisline[2]);
if ($ProfileNumber ne "") {
@thisprofile = &OpenProfile("$ProfileNumber.cgi");
$EmailView = $thisprofile[11];
$ThisStatus = $thisprofile[8];
$Rank = $thisprofile[16];


if ($ThisStatus eq "Moderator") {
$ThisStatus = "Klingon Moderator

";
}

elsif ($Rank eq "Klingon") {
if ($thisprofile[7] > 0) {
$ThisStatus = "Newbie

";
}
if ($thisprofile[7] > 1) {
$ThisStatus = "Cadet

";
}
if ($thisprofile[7] > 20) {
$ThisStatus = "Warrior 1st Class

";
}
if ($thisprofile[7] > 50) {
$ThisStatus = "Warrior 2nd Class

";
}
if ($thisprofile[7] > 100) {
$ThisStatus = "Warrior 3rd Class

";
}

if ($ThisStatus eq "Administrator") {
$ThisStatus = "Klingon Administrator

";
}
elsif ($ThisStatus eq "Moderator") {
$ThisStatus = "Klingon Moderator

";
}
}


elsif ($Rank eq "Federation") {
if ($thisprofile[7] > 0) {
$ThisStatus = "Newbie

";
}
if ($thisprofile[7] > 1) {
$ThisStatus = "Cadet

";
}
if ($thisprofile[7] > 20) {
$ThisStatus = "Ensign

";
}
if ($thisprofile[7] > 50) {
$ThisStatus = "Lt. J.G.

";
}
if ($thisprofile[7] > 100) {
$ThisStatus = "Lieutenant

";
}
if ($thisprofile[7] > 250) {
$ThisStatus = "Lt. Commander

";
}
if ($thisprofile[7] > 500) {
$ThisStatus = "Commander

";
}
if ($thisprofile[7] > 1000) {
$ThisStatus = "Executive Commander

";
}


if ($thisprofile[7] > 5000) {
$ThisStatus = "Admiral

";
}
if ($ThisStatus eq "Administrator") {
$ThisStatus = "Federation Administrator

";
}
elsif ($ThisStatus eq "Moderator") {
$ThisStatus = "Federation Moderator

";
}
}


Sorry about the long post.
Right, what I need to know is where do i put this and do I need to declare the variable $ThisStatus anywhere?
The profile number the Rank info is saved too is Profile 19.
Thankyou

If you want to go through email
[email protected]

Ill keep checking here though.
thankyou

Sponsored Links
Entire Thread
Subject Posted By Posted
A little help please! Multi Ranks hack. Cyberdude8472 10/10/2001 7:46 PM
Re: A little help please! Multi Ranks hack. Cyberdude8472 10/11/2001 2:55 AM
Re: A little help please! Multi Ranks hack. Cyberdude8472 10/12/2001 1:34 AM
Re: A little help please! Multi Ranks hack. Cyberdude8472 10/12/2001 8:03 PM
Re: A little help please! Multi Ranks hack. Lord Dexter 10/13/2001 3:39 AM
Re: A little help please! Multi Ranks hack. Cyberdude8472 10/13/2001 5:21 PM
Re: A little help please! Multi Ranks hack. Lord Dexter 10/14/2001 2:48 AM

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:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 75951
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 2
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)