![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||
This modification is in the archives.
This is a quick modification I made for my own forum to rank all of my users by the number of posts they've made and make that ranking available on the postbit and profile pages. No extra queries are added, except for the cron job that runs to update the statistics at an interval you specify, which will add 4 queries when called.
This hack was only tested on 3.6.5, but it may work on 3.5.x as well. If anyone confirms that, let me know. Installation Instructions - 1 XML upload - 1 File upload - 2 optional template modifications 1. Upload the file rank_users_by_post.php to your forum/includes/cron directory. 2. Use the Product Manager to import the product file product-rah_user_rank_by_posts.xml 3. By default, user ranks will be updated once per hour. If you want to change the frequency of the updates, go into the Schedule Task Manager and find the job "Update User Post Ranks". You may change this script to run as often or as little as you like. You can run it manually to get an idea of how long it will take to run, which give you a good idea of how frequently you can safely run it. (On my forum, it runs almost instantaneously with over 2000 members.) 4. If you want to add the poster's rank to each post, you can add it anywhere by referencing the $post[postrank] variable. On my forums, I added it just under the users post count by finding:
And below that, add:
5. You can also reference the rank on the profile page. On my forums, I added it just above the user's last activity by editing the MEMBERINFO template and finding:
And above that, add:
And that's all there is to this one. It is a very simple hack, but I figured I'd share. Standard (Global) Phrases Used: rah_urbp_rank = "Poster Rank" Known Bugs: None. Revision History: v1.0.0 - Initial Release Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
Comments |
#2
|
|||
|
|||
One albeit obvious note, ranks will not show up until after the first time the cron job is run. If you want them to show up right away, you need to run the cron job manually.
No members have liked this post.
|
#3
|
||||
|
||||
hmm I'll try it out and see how it does.
thanks for the hack ![]() No members have liked this post.
|
#4
|
|||
|
|||
installed
![]()
__________________
416BC The Small Business Website Experts No members have liked this post.
|
#5
|
||||
|
||||
So it says what rank they are in the postbit, I like ^^
nice work.
__________________
Gamerz Needs - For All Your Gaming Needs! No members have liked this post.
|
#6
|
||||
|
||||
Now that's pretty cool!
![]() /me clicks install
__________________
No members have liked this post.
|
#7
|
||||
|
||||
Thanks Farcaster .. nice and simple but useful. Just like the wife
![]() Clicked install No members have liked this post.
|
#8
|
|||
|
|||
why nobody thought of this before. Thanks Robert !
No members have liked this post.
|
#9
|
|||
|
|||
i thought you could do this in vBulletin as standard?
No members have liked this post.
|
#10
|
|||
|
|||
Not that I found. You can do a list of members by the number of posts they've made, but stock vB doesn't have a way to show where they fall in relation to everyone else in post count in the profile and postbit. My thought was, who doesn't want to be #1? Or in the top 10? Perhaps it could help spur some healthy competition
![]() No members have liked this post.
|
#11
|
|||
|
|||
I see what you mean, numbered ranks. Nice idea. ^_^
No members have liked this post.
|
#12
|
|||
|
|||
great instaled.....
No members have liked this post.
|
#13
|
||||
|
||||
Love your work Farcaster....
Cheers.. ![]() No members have liked this post.
|
#15
|
||||
|
||||
This is a cool hack, thanks!
Farcaster, I have a question! On the bottom of this pic I see a mod that I would love to have. haha! Its the Distance to Member: Did you make this or do you know were I can get it? No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 16:54.