Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
ZH - % Of Forum Posts Details »»
ZH - % Of Forum Posts
Version: 1.0.6, by Ziki Ziki is offline
Developer Last Online: Nov 2015 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.x Rating:
Released: 12-02-2006 Last Update: 12-13-2006 Installs: 87
Uses Plugins
 
No support by the author.

This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Hack name
% Of Forum Posts Lite

~Hack description
Shows in profile how many % of the forum posts an user posted.

~Hack options
  • On/Off
  • Decimal places

~Hack info
File uploads: 0
Template edits: 0
Templates: 0
File edits: 0
Plugins: 1
SQL Queries: 0
Phrases: 5
Settings: 2

Install time: 3 sec
Install level: Easy

~Hack installation

Step 1: Import Product



~Hack screenshots
None


~Hack copyright
This may not be distributed,released or claimed as your work without author's permission.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 12-13-2006, 10:20 PM
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Location: Portland, OR, USA
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well here's the code I'm using (I was testing and ended up coding my own for testing purposes):

PHP Code:
cache_ordered_forums(1);
$viper_totalposts 0;

if (
is_array($vbulletin->forumcache))
{
    foreach (
$vbulletin->forumcache AS $forum)
    {
        
$viper_totalposts += $forum['replycount'];
    }
}

if (
$viper_totalposts != 0)
{
    
$viper_postcount str_replace(array(',''.'' '), ''$userinfo['posts']);

    
$viper_percent vb_number_format(($viper_postcount $viper_totalposts) * 1002);

    
$viper_postsperday construct_phrase($vbphrase[x_posts_per_day], $postsperday);

    
$viper_searchfor '(" . construct_phrase("$vbphrase[x_posts_per_day]", "$postsperday") . ")';
    
$viper_replacewith '(" . construct_phrase("$vbphrase[x_posts_per_day]", "$postsperday") . ", $viper_percent% of total forum posts)';

    
$vbulletin->templatecache['MEMBERINFO'] = str_replace($viper_searchfor$viper_replacewith$vbulletin->templatecache['MEMBERINFO']);

It seems to work correctly.

Some examples (of ~370000 total posts):

http://forums.finalgear.com/member.php?u=3
http://forums.finalgear.com/member.php?u=7101
http://forums.finalgear.com/member.php?u=1125
Reply With Quote
  #63  
Old 12-13-2006, 11:29 PM
haris_led haris_led is offline
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ziki, i noticed that if the user has more than 1000 posts, it shows 0.0%.
I changed my posts from admincp from 350->1000 and it shows 0.0.
Then changed to 999 and it is ok.
Reply With Quote
  #64  
Old 12-14-2006, 12:27 AM
Invalid ID's Avatar
Invalid ID Invalid ID is offline
 
Join Date: Apr 2006
Location: Karachi. Pakistan
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed but can't see it working in postbit.
Reply With Quote
  #65  
Old 12-14-2006, 12:54 AM
da420 da420 is offline
 
Join Date: Nov 2005
Posts: 1,232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Invalid ID View Post
Installed but can't see it working in postbit.
Doesn't show in your post bit.
Reply With Quote
  #66  
Old 12-14-2006, 04:47 AM
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Location: Portland, OR, USA
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by haris_led View Post
Ziki, i noticed that if the user has more than 1000 posts, it shows 0.0%.
I changed my posts from admincp from 350->1000 and it shows 0.0.
Then changed to 999 and it is ok.
The result of thousands dividers being added in.
Reply With Quote
  #67  
Old 12-14-2006, 06:59 AM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh.Thanks Viper now I know what I did wrong
Reply With Quote
  #68  
Old 12-14-2006, 06:59 AM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1.0.6 released

Now the hacks is working for sure!
Reply With Quote
  #69  
Old 12-14-2006, 09:43 AM
haris_led haris_led is offline
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh yes, now it is working!!!!
Very nice and thanks for the hack
Reply With Quote
  #70  
Old 12-15-2006, 10:29 AM
dilbert dilbert is offline
 
Join Date: Nov 2004
Location: Boston
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ziki View Post
1.0.6 released

Now the hacks is working for sure!
Thank you.
Reply With Quote
  #71  
Old 12-17-2006, 05:20 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Buenos mochas! (Or however it is said )
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 06:00 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
  • Page Generation 0.05627 seconds
  • Memory Usage 2,312KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete