vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Where is $post['reputation'] defined? (https://vborg.vbsupport.ru/showthread.php?t=234758)

vaskies 02-01-2010 10:46 PM

Where is $post['reputation'] defined?
 
Since I didn't get much luck here (at least, not yet :p), I decided to try and code this myself by using SELECT distinct.

To do this, I needed to fully understand how reputation is defined and created. The road block I've come across is, I cannot seem to find where $post['reputation'] is defined. I searched every vbulletin file, and see it defined nowhere. I checked the post table and there is no reputation column so I'm pretty lost at this point.

I've looked thoroughly through functions_reputations.php and reputation.php. What am I missing?

Marco van Herwaarden 02-02-2010 10:44 AM

Did you check reputation.php?

vaskies 02-02-2010 08:23 PM

I did, and $post['reputation'] is nowhere to be found. I'm new to PHP so it's very possible I'm missing something here.

I'm currently going through reputation.php line-by-line, but if someone more experienced could help me out with this relatively simple problem of how $post['reputation'] is defined, I'd be very grateful.

Lynne 02-02-2010 11:28 PM

It's a field in the user table. You will have to look for the function that updates that field. The field value could be updated based on several factors (post count, reputation given to them, date since joined), so if you are wondering how the value increases, you will have to look into those different areas to see what is done.

Marco van Herwaarden 02-03-2010 08:20 AM

Better not search for $post['reputation'], but only for 'reputation'.


All times are GMT. The time now is 07:11 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.00924 seconds
  • Memory Usage 1,714KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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