vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Reputation Questions? (https://vborg.vbsupport.ru/showthread.php?t=128411)

C Braithwaite 10-06-2006 08:11 AM

Reputation Questions?
 
Firstly, how is reputation worked out? in my database the reputation field says 571, however when displayed using userinfo['reputation'] i get 1033 - why?

second question
i am using fetch_reputation_image($vbulletin->userinfo, $userperms); in a custom page to return the user's reputation image. (is this the best way of doing so in a custom page?) how would i go about displaying the reputation image for another user on my custom page?



Ta, Chris.

C Braithwaite 10-07-2006 10:11 AM

come on - there must be someone who know this?

Chicago_VLNU_4s 10-23-2006 04:48 AM

hmmm are you trying to have it drop down to give user's rep? or what? kinda sounds like what i'm lookin for but need to know what exactly you're trying to do

C Braithwaite 10-27-2006 10:08 AM

Quote:

Originally Posted by Chicago_VLNU_4s
hmmm are you trying to have it drop down to give user's rep? or what? kinda sounds like what i'm lookin for but need to know what exactly you're trying to do

managed to solve this - all i had to do was create an array with the user's reputation details in there and passed it to the function.

all i wanted to do was display some stats about my forum on a custom page - like user with highest reputation etc

Chicago_VLNU_4s 10-28-2006 11:50 PM

ohhhh.. well how'd you do this? sounds interesting

C Braithwaite 11-05-2006 07:17 AM

Quote:

Originally Posted by Chicago_VLNU_4s
ohhhh.. well how'd you do this? sounds interesting

Something like this..

PHP Code:

$customrep = array();
$customrep[reputation] = $myCustomRepValue;
fetch_reputation_image($customrep$userperms);
$myCustomRepPic $temp[reputationdisplay]; 



All times are GMT. The time now is 01:51 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.01642 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete