vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Display Reputation Power in postbit (https://vborg.vbsupport.ru/showthread.php?t=61408)

TJFweb 05-17-2004 03:23 AM

I wish someone could work out why this is happening. Any news of reputation enhancements in the next vBulletin?

apokphp 05-17-2004 07:12 PM

Why is this thread in "Full Release" status? Shouldn't this be "beta"? 100% of the posters here have the exact same error with the hack.

I do hope it gets solved, it is what I'm looking to use for my own board.

dutchbb 06-12-2004 02:19 PM

shows 0 for some members that have more then 0 power?

LewZer 06-19-2004 10:11 AM

Is the problem with users who has more than 1000 posts?

Try this fix:
PHP Code:

$show['score'] = 1
    
// reputation SECTION 
    // initialize reputation power 
    
$score 1

    
// for every certain number of posts, gain a point 
    
if ($vboptions['pcpower']) 
    { 
        
$postfactor intval(str_replace($bbuserinfo['lang_thousandsep'], ''$user['posts']) / $vboptions['pcpower']); 
    } 
    else 
    { 
        
$postfactor 0
    } 


    
// for every certain number of reputation points, gain a point 
    
if ($vboptions['kppower']) 
    { 
        
$reputationfactor intval($post['reputation'] / $vboptions['kppower']); 
    } 
    else 
    { 
        
$reputationfactor 0
    } 

    
// for every certain number of days registered, gain a point 
    
$timepassed intval((TIMENOW $repjoindate) / 86400);     
    if (
$vboptions['rdpower']) 
    { 
        
$timefactor intval($timepassed $vboptions['rdpower']); 
    } 
    else 
    { 
        
$timefactor 0
    } 

    
// compute the user's total reputation power 
    
$score $score $postfactor $timefactor $reputationfactor

    
# the following only matters for admin 
    
$perms fetch_permissions(0$post['userid'], $post); 
    if (
$perms['adminpermissions'] & CANCONTROLPANEL AND $vboptions['adminpower']) 
    { 
        
$score $vboptions['adminpower']; 
    } 
    else if ((
str_replace($bbuserinfo['lang_thousandsep'], ''$user['posts']) < $vboptions['minreputationpost']) OR ($post['reputation'] < $vboptions['minreputationcount'])) 
    { 
        
$score 0
    } 
    
##### 


The Realist 06-20-2004 01:01 PM

Dont show up at all on my forums.

hambil 06-27-2004 05:08 AM

You where onto something, but you didn't take it far enough. Here is the fix:

Find:
PHP Code:

$post['posts'] = vb_number_format($post['posts']); 

Add above:
PHP Code:

global $rawposts;
$rawposts $post['posts']; 

Modify reputation power section as follows:
PHP Code:

    $show['score'] = 1
    
// reputation SECTION 
        // initialize reputation power 
        
$score 1

        
// for every certain number of posts, gain a point 
        
if ($vboptions['pcpower']) 
      { 
            
$postfactor intval($rawposts $vboptions['pcpower']); 
        } 
        else 
        { 
            
$postfactor 0
      } 

    
// for every certain number of reputation points, gain a point 
    
if ($vboptions['kppower']) 
    { 
        
$reputationfactor intval($post['reputation'] / $vboptions['kppower']); 
    } 
    else 
    { 
        
$reputationfactor 0
    } 

    
// for every certain number of days registered, gain a point 
    
$timepassed intval((TIMENOW $repjoindate) / 86400);      
    if (
$vboptions['rdpower']) 
    { 
        
$timefactor intval($timepassed $vboptions['rdpower']); 
    } 
    else 
    { 
        
$timefactor 0
    } 

    
// compute the user's total reputation power 
    
$score $score $postfactor $timefactor $reputationfactor

    
# the following only matters for admin 
    
$perms fetch_permissions(0$post['userid'], $post); 
    if (
$perms['adminpermissions'] & CANCONTROLPANEL AND $vboptions['adminpower']) 
    { 
        
$score $vboptions['adminpower']; 
    } 
    else if ((
$rawposts $vboptions['minreputationpost']) OR ($post['reputation'] < $vboptions['minreputationcount'])) 
    { 
        
$score 0
    } 

That works for me. Good luck.

Taco John 07-17-2004 08:57 AM

Quote:

Originally Posted by The Realist
Dont show up at all on my forums.



Same for me... I followed the instructions twice, to the T...

I'm getting nuttin'.

nonet 07-17-2004 01:49 PM

Very cool! It works great, however, I wound up with an extra space above the reputation power. Where do I edit the code to remove it?

Sir_Yaro 07-17-2004 03:13 PM

nice!
*install*

Quote:

Originally Posted by hambil
You where onto something, but you didn't take it far enough. Here is the fix:
[...]

its work! :D :D

theArchitect 09-16-2004 12:19 AM

Great hack *clicks install*.

I have combined this with "show numerical reputation points" (the green dots are neat, but my users wanted a numerical value too). Only problem is if my users choose to turn their rep visibility off, the little green dots go to black but the rep power & number still shows up.

Any thoughts on how I get these to vanish too?


All times are GMT. The time now is 10:24 AM.

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.01287 seconds
  • Memory Usage 1,777KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete