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