![]() |
|
Thread Tools |
#16
|
|||
|
|||
Bump....
Still no solution to this one??? No members have liked this post.
|
#17
|
|||
|
|||
Does anyone know how to do this?
No members have liked this post.
|
#18
|
|||
|
|||
im looking for this also
No members have liked this post.
|
#19
|
|||
|
|||
Same here guys
![]() Is there any way to make an official request? No members have liked this post.
|
#20
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
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:
This would be the field added
Then find this code in the same section
and change it to
That will take care of inserting the rank into the DB. Now to edit existing ranks, find this in the edit block on the same page:
Before print_submit_row(); (wherever you want it), add the line:
Next, in the doupdate block of the same page, again find this code:
and add in there
Then find
and edit is so:
Now, you have to change the build_ranks() function in includes/functions_ranks.php. Look for
We are going to change the ORDER BY bit of the query to be
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 No members have liked this post.
|
#21
|
||||||||||||||||
|
||||||||||||||||
Originally Posted by DragonBlade
The 3rd from the last line you had "display" instead of the intended "rankorder". Otherwise, this worked perfectly.
![]()
No members have liked this post.
|
#22
|
||||
|
||||
Originally Posted by orion808
Kickasskewl, you've tried it? I still haven't got around to it. XD![]()
Go me, yay, I did something useful! ^_^ No members have liked this post.
|
#23
|
|||
|
|||
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) No members have liked this post.
|
#24
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
In the /admincp/rank.php
Find:
Change it to:
This allows the variable for rankorder to be called. Find:
Change it to:
Going from 5 to 6 increases the number of headers. Adding 'Rank Order' gives the column a name. Find:
Change it to:
This adds the rankorder number to show up on the User Rank Manager page. Find:
Change it to:
This changes the display order on the User Rank Manager page. All these steps should display the rankorder on the User Rank Manager page. No members have liked this post.
Last edited by n8td; 16 Feb 2009 at 02:59. Reason: Typo |
#25
|
|||
|
|||
Nice, I'll install that tomorrow. Thank you.
No members have liked this post.
|
#26
|
||||||||
|
||||||||
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:
Should be:
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. No members have liked this post.
Last edited by orion808; 16 Feb 2009 at 04:12. |
#27
|
|||
|
|||
Okay thanks. I edited the original post.
No members have liked this post.
|
#28
|
|||
|
|||
Just to clarify for me, which # post was modified plz? I'd like to try this out.
No members have liked this post.
|
#29
|
|||
|
|||
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.
No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 06:09.