The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Post Count - Adding Random Numbers
Ok, strange modification that is kinda specific to the 'needs' of my forum.
Originally when I was running vB2, I had a friendly user who made us a modification where when you posted, instead of adding a single number to your postcount, it added a random number between a pre-defined range (set in the AdminCP individually for each forum.) This was used for role-play purposes (Simulated a DBZ 'Powerlevel', each time you post it increases considerably, instread of adding one - just a for a bit of 'realism'.) and worked really great for the better half of two years. We have since moved server and updated to vB 3.5.0 while we were at it... Unfortunately, the user who made the modifications is now unavailable and unable to make similar changes for vB3; since no one else has any idea how it was done, we're at a loss. So, as my second request, I was wondering if anyone could help me? Side Note: It would also be cool if we could create a seperate variable to keep track off (added to in the same way, but stored in the db seperately from the postcount) so we can keeptrack of and display both, but it's not really nessecary (we don't use postcount for anything), just something nice to have. Edit: Oops, forgot the pre-emptory thanks... so... Thanks in advance Edit2: Oh, I also have access to the complete db.sql (nearly 200mb >_<) and all the forum files from the old forum vB2 (though it IS still up at the moment, we are waiting for him to take it down) so if you need those for reference perhaps, I can hand them over. - Kovash PHP Code:
PHP Code:
|
#2
|
|||
|
|||
--------------------------------------------------------------------------
I'm still not having any luck attempting to solve this myself; I've scoured the postings.php but can't find any sign of the postcount update function. Is there a chance that the elemnts that require changing are imbedded in the dB somewhere, and if so - how can I find it? Any help would be GREATLY appriciated. Thanks again, in advance. - Kovash |
#3
|
||||
|
||||
You may want to look at the ucash hack, the 3.0 version at least could let you specify a specific amount of points a user can get per post per forum and it may be simpler trying to edit that to use a random number between 1 and 9.
|
#4
|
||||
|
||||
There are a few instances of post incrementing I have found:
One in /includes/class_dm_threadpost.php PHP Code:
PHP Code:
Chris |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|