Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
User Rank by Posts Details »
User Rank by Posts
Mod Version: 1.0.0, by Farcaster (Coder) Farcaster is offline
Developer Last Online: Jun 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.7 Rating: (3 votes - 4.33 average) Installs: 61
Released: 13 Jul 2007 Last Update: Never Downloads: 264
Not Supported DB Changes Template Edits Additional Files  

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And below that, add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And above that, add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Click image for larger version

Name:	postbit.PNG
Views:	2064
Size:	44.3 KB
ID:	66909   Click image for larger version

Name:	profile.PNG
Views:	1347
Size:	30.5 KB
ID:	66910  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 13 Jul 2007, 06:17
Farcaster Farcaster is offline
 
Join Date: Dec 2005
Real name: Robert Howard
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.
Reply With Quote
  #3  
Old 13 Jul 2007, 07:37
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Aug 2005
hmm I'll try it out and see how it does.

thanks for the hack
Reply With Quote
  #4  
Old 13 Jul 2007, 07:48
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
installed
Reply With Quote
  #5  
Old 13 Jul 2007, 08:57
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
So it says what rank they are in the postbit, I like ^^

nice work.
Reply With Quote
  #6  
Old 13 Jul 2007, 10:14
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Real name: Steve
Now that's pretty cool!

/me clicks install
__________________
Reply With Quote
  #7  
Old 13 Jul 2007, 14:13
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Thanks Farcaster .. nice and simple but useful. Just like the wife

Clicked install
Reply With Quote
  #8  
Old 13 Jul 2007, 21:11
Quantnet Quantnet is offline
 
Join Date: Nov 2006
why nobody thought of this before. Thanks Robert !
Reply With Quote
  #9  
Old 13 Jul 2007, 22:30
Spank Spank is offline
 
Join Date: Jan 2007
Real name: Mark
i thought you could do this in vBulletin as standard?
Reply With Quote
  #10  
Old 13 Jul 2007, 23:32
Farcaster Farcaster is offline
 
Join Date: Dec 2005
Real name: Robert Howard
Originally Posted by Spank View Post
i thought you could do this in vBulletin as standard?
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
Reply With Quote
  #11  
Old 14 Jul 2007, 01:06
Spank Spank is offline
 
Join Date: Jan 2007
Real name: Mark
I see what you mean, numbered ranks. Nice idea. ^_^
Reply With Quote
  #12  
Old 14 Jul 2007, 02:48
alessai alessai is offline
 
Join Date: Mar 2006
great instaled.....
Reply With Quote
  #13  
Old 14 Jul 2007, 02:56
2impulsiv's Avatar
2impulsiv 2impulsiv is offline
 
Join Date: Jan 2007
Real name: Nathan
Love your work Farcaster....


Cheers..

Reply With Quote
  #14  
Old 14 Jul 2007, 18:07
aakhan136 aakhan136 is offline
 
Join Date: Nov 2006
Thanks
Reply With Quote
  #15  
Old 14 Jul 2007, 19:45
johnrizz's Avatar
johnrizz johnrizz is offline
 
Join Date: Apr 2006
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?

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:56.

Layout Options | Width: Wide Color: