The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Rank Ordering Details »» | |||||||||||||||||||||||||||||||||
This product will, upon installation, add a column to your "ranks" table labeled "rankorder" and will edit your "/admincp/ranks.php" and "/includes/functions_ranks.php" files so that you may assign display ordering for your defined ranks. The original code is stored as "/admincp/ranks_orig.php" and "/includes/functions_ranks_orig.php" respectively. When uninstalled, your database and files are restored to their original condition.
This add-on utilizes code written by DragonBlade and n8td as posted here: where do I change the order of rank images? This add-on simply automates all of the file edits and the database change into one easy step. When you go to your "User Rank Manager" you will see a new field titled "Rank Order" associated with each defined rank: And when you edit a rank, you will find a new field on the form into which you can set the rank order: Rank ordering can be used to control the order in which your various ranks are displayed in user postbits and profile pages. The smaller the number, the higher in the stack a rank will be displayed. For example, suppose you have a rank for the forum owner(s) and you want this to be on top regardless of the other ranks the owners might have. You could assign this rank a rank order of 0. Then you may have several ranks which indicate a user's position in your staff, such as administrators, global moderators, forum moderators, etc. No one user would have more than 1 of these ranks, and so you could assign these a rank order of 1. This way any of the owners who are also an admin/global mod/mod would have the site owner rank on top and then their staff position rank next. In this manner, you can assign rank orders to completely control the order in which all of your ranks are displayed: Note: Once you edit your ranks to assign the rank order, you must run "update user titles and ranks" in order for the ordering to take effect. Update: version 1.1
Update: version 1.2
Note: If you have not renamed your "admincp" folder, then you don't need to update to v. 1.2. If you edited the v. 1.1 .XML file to use your renamed "admincp" folder, then you also don't need to upgrade to v. 1.2. If you do decide to upgrade to v. 1.2 anyway, then you need to uninstall v. 1.1 first. If you wish to keep the rank ordering you've already defined, then you need to edit the product's uninstall code to remove the following db query: PHP Code:
In AdminCP go to Plugins & Products -> Manage Products -> Add/Import Product. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file. Click "Import" There are no settings to set, once installed, the product is active. :up: Note: When updating your vB, please follow these steps after completing the upgrade: First, delete the files "/includes/functions_ranks_orig.php" and "admincp/ranks_orig.php". Next, edit the "Rank Ordering" product to remove the uninstall code completely and save it. Then, uninstall the product. Lastly, reinstall the product, and the new PHP files will be backed up and then edited, and you'll be back in business. Support for this product can be found here: Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
Comments |
#42
|
||||
|
||||
Running vBulletin 4.2.3 Patch Level 2.
Installed just now, but there is no rankorder column when I go into User Rank Manager. Quote:
Thoughts? Suggestions? Added: Just read post#35. Edited the .xml to replace admincp with admincontrolpanel and reloaded. Same result; no rankorder column and the two files remain unchanged. |
#43
|
||||
|
||||
Quote:
Quote:
|
#44
|
||||
|
||||
Tried uninstalling the MOD first, and then reloading it. Same results.
I can't just rename the /admincontrolpanel to /admincp as doing so results in my not being able to access the AdminCP. I had renamed this folder several years ago for security reasons. Where in vBulletin is the folder name for admincp set? |
#45
|
||||
|
||||
Quote:
PHP Code:
|
#46
|
||||
|
||||
That file exists in two locations; our server forum root as well as /includes.
I edited both files are replaced admincontrolpanel with admincp. Renamed the /admincontrolpanel folder to /admincp. When I attempt to load the AdminCP it fails with: The requested URL /admincontrolpanel/index.php was not found on this server. I've reset both files and renamed the folder back so that at least getting into the AdminCP still works. Is this likely just a browser cache problem? |
#47
|
||||
|
||||
Try vpcarrocci's method...
|
#48
|
||||
|
||||
Duplicating exactly what post #40 did also doesn't work here.
The ranks.php file in the created /admincp folder remains unchanged and the second file: ranks_orig.php; doesn't exist/wasn't created. The same is true of the /includes/functions.php file. It remains unchanged and the second file: functions_orig.php doesn exist/wasn't created. Installing the MOD didn't present any errors of any kind. |
#49
|
||||
|
||||
Quote:
|
#50
|
||||
|
||||
I'll do that if it really becomes necessary.
As neither the source files are being changed; date/time stamp isn't changing; and the backup files aren't being created, I thought maybe it's a permission issue, like it was with the other MOD I mucked with. Both directories; admincontrolpanel and inlcudes; have permissions of 755. The contents of both directories have permissions of 644. I changed the directories to 775 and the two individual .php files to 775 and reran the installation .xml file. Still didn't get any error notifications, but the result was the same; no backup files created and the original files remained untouched. Permissions on the directories and the two files have been reset back to what they were. Is there a way to capture what's going on when the .xml file is run to a log file we can then examine? |
#51
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|