The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Where is $post['reputation'] defined?
Since I didn't get much luck here (at least, not yet ), 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? |
#2
|
|||
|
|||
Did you check reputation.php?
|
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
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.
|
#5
|
|||
|
|||
Better not search for $post['reputation'], but only for 'reputation'.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|