For members with 1-49 Postings it shows the correct rank "Newbie" but for members with 50 and more Postings it shows the rank"member" and not "Mitglied"!!!
This is a great hack Jimbo, but appears to be lacking one feature that I found that I wanted enough to where I hacked it in myself.
Basically what I wanted was for users to be able to pick one of two or more different categories at registration times and get a different set of ranks depending on which category they pick. I did some tweaking here and there and came up with the following hack which needs to be applied on top of Jimbo's custom status hack. Note that because I manage UBB in CVS I've found it very easy to give a unified diff file rather than the usual set of instructions for the hack. Apoligies in advance if this is unsuitable, but this is also the way I choose to submit my hacks. I recommend that you apply this hack manually rather than using the patch program, but if you choose to do the latter you will probably have to supply the location of many of the files it modifies as well as fixing a number of rejects.
Note that this hack does use the first custom profile field. You can change that to any of the other three fields in the usual manner. Before applying this hack I recommend turning custom ranks off, then fix the ranks according to the instructions in Custom status management before turning custom ranks back on again. You'll have to set the first custom field in registration settings to Category and enable it also:
Index: cp_custom_status.cgi =================================================================== RCS file: /var/www/cvs/ubb-cgi/cp_custom_status.cgi,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- cp_custom_status.cgi 2001/08/17 04:04:56 1.1 +++ cp_custom_status.cgi 2001/08/19 09:56:30 1.2 @@ -180,11 +180,12 @@ sub SetCustomStatusSettings { unless ($check =~ m/|!!|/) { &StandardHTML("ERROR (line $count): Custom Rank: $check does not have |!!| present OR a blank line exists where there shouldn't be one. If you've received this error previously and the data has been inputted correctly, you'll need to disable the Data Verification Check in Custom/Status Rank Variable Settings."); } - ($num, $rank) = split(/|!!|/ , $check); - unless ($num > $last) { - &StandardHTML("ERROR (around line $count): Custom ranks not in lowest to highest order. $num in $check is less than or equal to the one above it. It should be higher!"); - } - $last = $num; +# Disable this check -- PJ - 08/19/2001 +# ($num, $rank) = split(/|!!|/ , $check); +# unless ($num > $last) { +# &StandardHTML("ERROR (around line $count): Custom ranks not in lowest to highest order. $num in $check is less than or equal to the one above it. It should be higher!"); +# } +# $last = $num; } @check = (split/n/, $in{custom_override_guts}); for $check (@check) { Index: ubb_custom_status.cgi =================================================================== RCS file: /var/www/cvs/ubb-cgi/ubb_custom_status.cgi,v retrieving revision 1.1 retrieving revision 1.5 diff -u -p -r1.1 -r1.5 --- ubb_custom_status.cgi 2001/08/17 04:04:56 1.1 +++ ubb_custom_status.cgi 2001/08/19 10:21:11 1.5 @@ -9,7 +9,9 @@ require "$vars_config{VariablesPath}/var
I "had" the same problemme, your problemme is it is showing the UBB's default ranks not your custom ranks, so all I did to get it working (after 30 minutes of riping my hair out) is I just went into Miscellaneous Settings, and where it says
"Use Alternate User Titles? There are four status options for users: administrators, moderators, members, and junior members. You can have these four user classes appear as alternate titles, if you like. For instance, if you have a Star Trek site, you may want your administrators to be called Star Fleet Captain, your moderators to be called First Mate, your Members to be called Lieutenant and your Junior Members to be called Ensign."
All I did was go to the Junior member field and type in anything you like (I typed Pawn as in the chess piece) then click update Miscellaneous Settings, and you custom ranks should work now
I guess by updating the Miscellaneous Settings, when it processed it realised you have custom ranks and not the default ones, I dunno, but thats all I did and it works now
Also, like quasic said ages ago (page 1 or 2), in the Custom Ranks fields where you put in your |!!| bizzo, press and make sure you backspace any leftover spaces
I apoogize if this has already been answered but me and my mate have both got 6.05's respectively but we both can't seem to get this to work. When we select Custom Title/Rank Settings in CP we're guided to a blank page with your credits/info on the bottom example:
Sorry for my bad English... Hack work greatly, but I can't see custom status in profile. I tried to replace $user_status with $custom_status in public_edit_profile.pl & public_display_profile.pl, but take no result. What I should make to do that.
2 P Ajamian Your upgrade is cooool, but I'm not professional in hacking. Can You explain, what exactly I need to do?
I may sound like a complete idiot (but I'll take my chances here). This is a very popular hack and it has the features I'm looking for in my board but I seem to have an installation problem. I (think) I configured the hack properly but when I try to execute it I get the infamous 'syntax error page' suggesting that it is trying to call the vars_custom_status.cgi which never generated. In fact, none of the files that were supposed to generate did.
If anyone could kindly point our my errors and help me that would be cool.
I fixed the problem (which was my bad to begin with) so everything is operational. Awesome hack btw!
Paranoix: I don't know in detail of what you did but this is what I did. I set my 'custom ranks' (the ranks according to the amount of posts) for regular members and guests, 'custom rank' for Mods and Admins and 'custom rank override' for the members I wanted to have a distinct title. All of them were set to "0" posts so they are automatically set to that rank specified. Ex for custom override (notice the alone "0"):
members numbers here|!!|0|!!|your title here ----> 00000015|!!|0|!!|Captain
2PrimeTime I did that too, It's work. Thanks. By the way, Do you have moderators in other forums shown as "moderators" or like other members? I have as "Moderators" and I dont know what I need to do.
My Moderators have been renamed actually and they show up in all of the forums regardless whether they are moderating those forums or not. I did change it so that they show up as regular members in the beginning, but I decided that they should have their own rank so I used 'custom override'. This is more labor intensive but I like its flexibility.
Hmm...I'm not exactly clear to what you want to achieve. Is it that your Moderators show up as the name "Moderators" in every forum?...Or that you only want your Moderators to show up on the forums they moderate?
I think your best bet would be to speak to Qasic or Jimbo, but I'll help you if I can.
UBB's default has that option...Although I rather do it manually by going into the files rather than CP. Try this...Erase all settings from your ranking hack and only set the custom rank for moderators and see what happens. I think there is a way but because that means you would have to edit the hack codes I suggest you speak to Qasic or Jimbo...I'm sure they will help you as they did with many others.
hi... i just insatalled that hack but everytime i go to the control panel to set it up i get this messge: Access Denied. No permission to write inside /home/*****/public_html/cgi-bin/cgi. Read FAQ for more information.
i tried moving the files to a folder that i chmod 777 and still the same message...
i solved this problem by chmod cgi-bin folder as 777 and the files created correctly but when i tried to set the ranks i got this message: Access Denied. No permission to write inside /home/*****/ranks. Read FAQ for more information.
Err...Did you go into the Primary Settings or Maintenance to set your ranks first? You may have attempted to do this already but you need to configure the settings in the Primary Settings before you can go into the Maintenance to set your members' ranks. Just wondering.
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.