UBB.Dev
Posted By: Hank Post Count Alteration - 07/15/2002 10:41 PM
Is the a mod that I can install that allows admins to change the post count of a certain member via cp?

Tar
Posted By: Hank Re: Post Count Alteration - 07/18/2002 5:54 PM
bump
Posted By: PF Re: Post Count Alteration - 07/19/2002 10:39 AM
Haven't seen one, shouldn't be too hard.
I only have 6.05 but the idea should be the same.

# Open cp_edit_profile.pl
# Find:
$user_profile[2]




# Add Below:




Post Count:










#close
# open cp_users.cgi
# find
print FILE ("$user_profile[7]n");
# replace with
print FILE ("$in{postcount}n");
#close and upload

Voila smile
Works for me, maybe someone can check 6.3's comapatability of this?
EDIT: typo size didn't have closing "
Posted By: Paulus Magnus Re: Post Count Alteration - 07/21/2002 7:14 PM
If you rebuild member post histories does this recalculate the post counts and then overwrite any manual alteration of the post count?
Posted By: PF Re: Post Count Alteration - 07/21/2002 10:12 PM
Doubtful, since Pruned and Deleted posts will then decrement the post count over a large time scale.
Posted By: Hank Re: Post Count Alteration - 07/26/2002 2:23 AM
Hi, thanx for replying, soz bout the delay.
This area of code is not available in 6.3 frown

#close
# open cp_users.cgi
# find
print FILE ("$user_profile[7]n");
# replace with
print FILE ("$in{postcount}n");
#close and upload
Posted By: CTM Re: Post Count Alteration - 07/26/2002 10:25 AM
Yep, you'll need to find

Quote
code:
Code
	$user_profile[6]  = qq!$in{location}!;

And add after

code:
[qb]
Code
	$user_profile[7]  = qq!$in{posts}!;
[/qb]
smile
Posted By: Hank Re: Post Count Alteration - 08/25/2002 1:28 AM
Right people! I got back from my vacation! yay!
Anyway, I did that and it worked. ish...
Only when you update the profile now after altering the post count, it wipes the users post counts! gone! eek
Any ideas?

tar
© UBB.Developers