![]() |
Rank Ordering
1 Attachment(s)
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. :cool: When you go to your "User Rank Manager" you will see a new field titled "Rank Order" associated with each defined rank: https://vborg.vbsupport.ru/external/2015/07/17.jpg And when you edit a rank, you will find a new field on the form into which you can set the rank order: https://vborg.vbsupport.ru/external/2015/07/17.jpg 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: https://vborg.vbsupport.ru/external/2015/07/17.jpg 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: |
thank you so much for the mod works so well :)
|
Works flawlessly, thanks. :)
|
Possible bug, but it seems when you try to add a new user rank with the mod installed you get a Database error. Assuming this was the problem as when I uninstalled it I was able to add the rank without a problem.
|
Quote:
|
Update: version 1.1
|
At installation, getting:
Quote:
After altering the paths, I've changed the ranking order for 2 ranks, one being 0 and the other being 1. (also tried one being 1, and the second being 2). But the rank order doesn't seem to change. |
I will look into parsing the config.php file. :)
Do you mean the value shown in the rank manager doesn't change, or the order in which the ranks are displayed in the postbits doesn't change? |
Sorry for not being clear about that! The ranks in the postbit doesn't change.
|
Did you run "update user titles and ranks?"
|
Missed that note ;), Will try later on, thanks!
|
MarkFL YOU ARE AMAZING !!!!!!!!!!
Thanks a lot... |
ya i getting the same error when adding a new rank
|
Quote:
Download the new one and re-upload the XML. |
This mod is really nice and useful
|
got ever thing working
|
I'm having an issue with this on vB 4.2.3. When I install it, I'm unable to see the area in the user ranks to edit the display order of existing ones as well as for setting up new ones.
|
Quote:
In your database, doe the table named "ranks" have the column "rankorder"? |
Quote:
/includes/functions_ranks.php or /includes/functions_ranks_orig.php I do see: /admincp/ranks.php and /admincp/ranks_orig.php When I'm in the database, I open the "Ranks" section, it says, "Rank Order" then has "NULL" in the column. |
Did you get any errors when installing?
Here's what I suggest doing:
|
Quote:
"Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error. More information about this error may be available in the server error log." I uninstalled it and re-installed it and got the same error. Where would I find a copy of the "functions_ranks.php" to copy to my "includes" folder? |
You should be able to grab a fresh copy from your vB files on your hard drive?
|
Excellent, here's a tutorial on how to do old manually: http://vbforos.com/forum/recursos/ti...go-de-usuarios
|
Quote:
|
Were those two files on your server prior to installing this add-on?
|
Quote:
|
If those files were present before the installation of this add-on, then you should find that you have copies of the originals as well as the modified versions of the originals.
Here is what I recommend doing. Uninstall the product, then delete "admincp/ranks.php" and "includes/functions_ranks.php" from your server. Upload unaltered versions of these two files from your installation fileset on your hard drive to the correct locations. Finally, install this product again. Verify that you now have 4 files (the originals that have been renamed and the modified versions). |
Quote:
When I went to install the product again, I got the following error: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error. More information about this error may be available in the server error log." The product shows to be installed. I went and checked the files in the directory and only "admincp/ranks.php" & "includes/functions_ranks.php" are there. Not the other two. |
Without knowing the nature of the server errors, I really don't know what to tell you. It sounds like a permissions issue (chmod 777) though.
|
I'm having a similar issue on vBulletin 4.2.3. The plugin is installed, and I'm receiving no errors, but neither file has been created and as far as I can tell the database hasn't been affected either. It's late now so I'm not able to fiddle around with my file settings, however I'll try in the morning and let you know how I get on.
Edit: Ended up getting the plugin to install but it deleted the contents of my ranks.php and functions_ranks.php files. Not sure what the go there was. Any suggestions? |
Is there a version of vBulletin 3?
|
Quote:
|
This plugin works like an absolute charm! Had to run the update tool on "Update User Titles and Ranks" just to see the order changes, but that was completely expected.
Amazing plugin, Mark. Thanks a ton. |
Sweet! Ty!
|
Worked perfect. We use a custom admincp folder name for security, I just modified the xml file before installation and replaced all the admincp occurrences with my actual folder name.
|
Not working on 5.2.4
|
Quote:
|
Doesn't work with 4.2.0. I get a bunch of errors on import. No 'Rank Order' column appears after import.
Warning: Illegal string offset 'dependency' in [path]/includes/adminfunctions_plugin.php on line 912 Warning: Illegal string offset 'template' in [path]/includes/adminfunctions_plugin.php on line 1242 Warning: Illegal string offset 'stylevargroup' in [path]/includes/adminfunctions_plugin.php on line 1253 Warning: Illegal string offset 'stylevar' in [path]/includes/adminfunctions_plugin.php on line 1258 Warning: Illegal string offset 'plugin' in [path]/includes/adminfunctions_plugin.php on line 1274 Warning: Illegal string offset 'phrasetype' in [path]/includes/adminfunctions_plugin.php on line 1294 |
Quote:
|
Installed!
It didn't work on the first install but I quickly figured out that it was due to the fact that I had changed the name of the my "admincp" folder. I uninstalled the plug-in and created a new empty folder that I titled as "admincp" and uploaded the rank.php file into it. I then installed the plug-in again, moved the two files from the "admincp" folder into my renamed admincp folder and everything is working just as advertised. I also deleted the dummy admincp folder. Thanks for the cool plug-in! |
All times are GMT. The time now is 07:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|