Facebook Page
Twitter
RSS
+ Reply to Thread
Results 1 to 1 of 1

Thread: Rank Ordering

  1. Pessimist Singularitarian
    MHB Coder
    MHB Math Helper
    MHB Ambassador
    MarkFL's Avatar
    Status
    Offline
    Join Date
    Feb 2012
    Location
    St. Augustine, FL.
    Posts
    13,311
    Thanks
    34,279 times
    Thanked
    31,681 times
    Thank/Post
    2.380
    Trophies
    25 Highscores
    Awards
    MHB Chat Room Award (2017)  

MHB Calculus Award (2017)  

MHB Pre-University Math Award (2017)  

MHB Statistics Award (2016)  

MHB Calculus Award (2016)
    #1
    Overview

    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.

    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.

    Updates:

    Version 1.1:

    • Added missed file edit which allows for new ranks to be successfully added after installing this add-on.


    Version 1.2:

    • Reads path to admin control panel folder from config.php.


    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:



    Compatibility:

    Tested and working on VB 4.2.x and should work on all 4.x versions of vBulletin.

    Backup/Warning:

    This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

    As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

    To Install:

    1. Download and extract the attached .zip file.
    2. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
    3. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
    4. Click "Import."
    5. There are no settings to set, once installed, the product is active.


    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.

  2. # ADS
    Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many
     

Similar Threads

  1. Replies: 0
    Last Post: November 12th, 2014, 16:45
  2. Well Ordering, finite sets
    By Csharp in forum Discrete Mathematics, Set Theory, and Logic
    Replies: 3
    Last Post: June 18th, 2014, 10:25
  3. Rank of adj(A)
    By Yankel in forum Linear and Abstract Algebra
    Replies: 1
    Last Post: December 4th, 2013, 11:09
  4. Rank and Nullity
    By Swati in forum Linear and Abstract Algebra
    Replies: 4
    Last Post: November 3rd, 2012, 01:17
  5. Rank
    By matqkks in forum Linear and Abstract Algebra
    Replies: 1
    Last Post: August 14th, 2012, 22:08

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Math Help Boards