![]() |
where do I change the order of rank images?
It currently displays them as Last added, First shown, but I want it to happen in the reverse order. Does anyone know what function/script calls the display rank function and/or how to make this happen?
Thanks, |
I would like to know as well. It doesn't seem like too complicated of an issue, clearly the current order must be stored somewhere. Does anyone know in which template that would be?
|
I had this posted for a week on vbulletin.com before someone told me that no one there would answer it. I'm trying my luck here.
|
BUMP, I need to know this also. It cannot be too difficult
|
It appears that the only place this shows up in the templates is..
PHP Code:
I'm guessing that this means that "rank" is a variable in the db, which makes sense as you have to update ranks sometimes. What I need to know is where the function that writes the ranks is. All I want to do is REVERSE the order that it writes them... |
Quote:
I'm sure someon can fix this |
I'm looking for same...
|
wow anyone?
|
Looking for this also! :)
|
Did anyone put in a request for this on VB.org?
|
I could use this information as well. :O
|
Bump for an old-skool question I'm wondering about as well...
|
I assume it can't be done, because someone was complaining in vBulletin.com's 'talk about 3.7.0 beta 6' thread that they still haven't provided a way to order ranks.
|
It CAN be done, it just requires modifying code.
|
Yeah, ordering ranks would be great, I'm surprised it isn't like that.
|
Bump....
Still no solution to this one??? |
Does anyone know how to do this?
|
im looking for this also
|
Same here guys :D
Is there any way to make an official request? |
I'm actually working on this. XD
In theory, all we need to do is add a field to the "rank" table called "rankorder". In the insert block on the /admincp/ranks.php, we need to add a field to this: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Now to edit existing ranks, find this in the edit block on the same page: PHP Code:
PHP Code:
Next, in the doupdate block of the same page, again find this code: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Now, you have to change the build_ranks() function in includes/functions_ranks.php. Look for PHP Code:
PHP Code:
P.S.: I have NOT done this to my own forum yet, so I can only ASSUME this would work. I am also a vB Programming newbie, so there might be a much better, easier, faster way. Figures, I actually came here because I was looking for help on how to update the rank display for a single user after changing said user's membergroupids. XD |
Quote:
|
Quote:
Go me, yay, I did something useful! ^_^ |
Yeah, works fine. Would be helpful if the "rank" was also visible (not editable) via the User Rank Manager so you would have an overview and know which ranks you needed to edit.
I have 20 ranks that go into 4 different slots. This works perfectly. So: <<Orion>> Forum Status (Rank 1) Guild Status (Rank 2) Platoon Status (Rank 3) Squad Status (Rank 4) |
In the /admincp/rank.php
Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
All these steps should display the rankorder on the User Rank Manager page. |
Nice, I'll install that tomorrow. Thank you.
|
Well, almost forgot to do this. Thanks for the reminder PM, n8td. One small error, but got it working.
On your last section of code to replace: Code:
SELECT rankid, ranklevel, minposts, rankimg, ranks. usergroupid,title, type, display, stack, rank Code:
SELECT rankid, ranklevel, minposts, rankimg, ranks. usergroupid,title, type, display, stack, rankorder Notice that it's rankorder, not rank. Works like a charm though. Thank you for this. Cleans up my ranks for sure. Actually found one that had the wrong order on it that I forgot to edit after a recent change. |
Okay thanks. I edited the original post.
|
Quote:
|
That person has only made a single post in this thread that has code in it, I can pretty much guarantee that is the post that is being referred to.
|
Ah, duh, thanks!
|
how about requesting this one for simple addon. that will be very easy.
its very much to edit --------------- Added [DATE]1242313632[/DATE] at [TIME]1242313632[/TIME] --------------- when I insert last part, it gets db error |
I tried this but get a database error when I open User Rank Manager.
Am I suppose to create this new field in the db table manually or is making the code change all I need to do? |
^Bump
|
Quote:
Quote:
|
Quote:
|
error is gone (had to add rankorder to the database, not sure if i added it 100% correctly in choose the fields)
--------------- Added [DATE]1245346286[/DATE] at [TIME]1245346286[/TIME] --------------- did all this, and deleted all ranks and started over again, made the founder first (it got automatically id:0) then i made admin which also automatically got id:0... rebuild the user titles and they are displayed in reversed order of creation (admin first, then founder) could use some assistance. --------------- Added [DATE]1245346556[/DATE] at [TIME]1245346556[/TIME] --------------- after running another rebuild, founder is id:5 and admin is id:6, so they are still shown reversed :( |
Not sure I understand the above post...but:
You should be able to just edit the rank order after this is installed. It doesn't matter what order you created the ranks in, just the order of the rankid. Something that is 5 appears before 6. Something that is 3 appears on the same line or immediately after another 3 depending on if both are ranks of the player. I have my admin/moderator/supermoderator/banned as rankid=1 and have my "guild" status (I play World of Warcraft) as rankid=2. So there are 4 ranks that have rankid=1....etc. http://www.azurebloodfire.com/member...tt/rank_id.jpg |
thanks orion808.... i clearly have something wrong, this is how my ranks look:
http://bb.roeiboot.com/ss/Rank_Capture.JPG question is what did i screw up :( plus i can NOT edit the rank order.. |
Quote:
|
Quote:
|
All times are GMT. The time now is 05:23 PM. |
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:
|