Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
User's Percent of Total Posts Details »
User's Percent of Total Posts
Mod Version: 1.00, by apfeifer (Member) apfeifer is offline
Developer Last Online: Jan 2007 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (3 votes - 4.33 average) Installs: 70
Released: 03 Nov 2001 Last Update: Never Downloads: 2
Not Supported  

Hack: User's Percent of Total Posts
Version of vB: 2.2.0, although may work on earlier versions but not tested
Current Version: 1.0.0
Description: This gives you a user's percent of the total posts on your forum.


Once again, this is a small hack but show's something interesting. Enjoy!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
[Re-release v2.2.0] Combined threads started + percent of total posts, plus more JJR512 vBulletin 2.x Full Releases 20 14 Nov 2003 07:51
Percent of thread views on threads created by user Gamingforce vBulletin 2.x Full Releases 11 20 Dec 2002 02:48

Comments
  #2  
Old 03 Nov 2001, 02:30
apfeifer apfeifer is offline
 
Join Date: Nov 2001
Er, duh, helps if I attach the file...

03.11.01: Fixed issue with percent's on users with post count of over 1000, thanks FireFly!
Attached Files
File Type: txt users_percent_of_total_posts_1.0.0.txt (1.5 KB, 686 views)

Last edited by apfeifer; 03 Nov 2001 at 16:06.
Reply With Quote
  #3  
Old 03 Nov 2001, 03:15
LanciaStratos's Avatar
LanciaStratos LanciaStratos is offline
 
Join Date: Oct 2001
Very nice hack! But, when I tried it out, it said that one of my users had 5988.52% of total posts. :?:
Reply With Quote
  #4  
Old 03 Nov 2001, 04:09
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Real name: Justin J. Rebbert
Yeah, it looks like the results are 1000 times higher than what they should be.

For example, I have 9771 posts on a 116,395-post board. I have 8.39469% of the total posts. Yet it says I have 8423.28%. (It also looks like the rounding is off.)
__________________
-Justin J. "JJR512" Rebbert
www.JJR512.com: Chat about anything!
Reply With Quote
  #5  
Old 03 Nov 2001, 04:47
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
hmm well on popular boards the percent would be .02 % and so forth.... also it's a good idea to restrict the number of decimals.
Reply With Quote
  #6  
Old 03 Nov 2001, 12:40
apfeifer apfeifer is offline
 
Join Date: Nov 2001
Eek, sorry about that, I'll fix it as soon as I get home from tryouts.

Reply With Quote
  #7  
Old 03 Nov 2001, 13:20
apfeifer apfeifer is offline
 
Join Date: Nov 2001
Originally posted by JJR512
Yeah, it looks like the results are 1000 times higher than what they should be.

For example, I have 9771 posts on a 116,395-post board. I have 8.39469% of the total posts. Yet it says I have 8423.28%. (It also looks like the rounding is off.)
Hmm, I just plugged the numbers for your posts / your boards posts in and it worked fine:


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

That echo's: 8.39

So I'm not totally sure. Paste the exact code that you have in member.php (just those couple lines, of course), and I'll look them over. I don't really see anything to fix because it's working for me.

Reply With Quote
  #8  
Old 03 Nov 2001, 13:23
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001

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

should be

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

because number_format() adds commas to the number (i.e 1000 => 1,000).
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #9  
Old 03 Nov 2001, 16:07
apfeifer apfeifer is offline
 
Join Date: Nov 2001
Thank's FireFly! I have uploaded the fixed version of it.

Reply With Quote
  #10  
Old 03 Nov 2001, 16:21
toLTcaboLT toLTcaboLT is offline
 
Join Date: Nov 2001
Hmzz I know it's little stupid .. but when I install where I can see that info ?

Can someone post screenshot .. I wanna too see that Hack .. Please? Tnx
Reply With Quote
  #12  
Old 03 Nov 2001, 16:34
toLTcaboLT toLTcaboLT is offline
 
Join Date: Nov 2001
Cool .. Tnx man
Reply With Quote
  #13  
Old 03 Nov 2001, 16:36
LanciaStratos's Avatar
LanciaStratos LanciaStratos is offline
 
Join Date: Oct 2001
Working great now. Thanks apfeifer and FireFly!
Reply With Quote
  #14  
Old 03 Nov 2001, 16:42
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Real name: Justin J. Rebbert
First, thanks to FireFly; that fixed my problem.

Next, I'd like to show how I took the basic idea of this hack and extended it to work with tubedogg's 'user has started xx threads' hack (which was my idea ). This hack adds a new line to a person's profile, below the person's post count (and now the post percentage count, with this hack), and shows how many threads a person has started. What I've done is taken the idea of this hack, interfaced it with tubedogg's hack, to display the percentage of total threads that a person has started.

1. Install this hack
2. Install tubedogg's hack from here, only instead of adding the contents of his memberadd.txt file where he tells you to in his step #2, insert the contents of that file just above the bit you added from this hack.
3. Below the bit you added to member.php from this hack, add this:

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

4. In the getinfo template, assuming you have already added the contents of getinfoadd.txt from tubedogg's hack, find $starts and change it to $starts ($percentageoftotalthreads% of total threads).

I would like to get permission from apfeifer and tubedogg to re-release their individual hacks along with my modifications as one unified hack (with full crediting, of course).
__________________
-Justin J. "JJR512" Rebbert
www.JJR512.com: Chat about anything!
Reply With Quote
  #15  
Old 03 Nov 2001, 16:44
apfeifer apfeifer is offline
 
Join Date: Nov 2001
Me likes!

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 17:34.

Layout Options | Width: Wide Color: