![]() |
Slight different question: when I move/prune thread, HOW could automatically recount posts for all the users within that thread ?
Thanks |
Hi Neo does your hack you posted in this last page work with version 2.2.5 ?
I really would like to use this hack. |
[QUOTE]Originally posted by newvbuser
Hi Neo does your hack you posted in this last page work with version 2.2.5 ? I really would like to use this hack. |
Huh? Avenger are you asking the same question also?
|
yup
|
Neo would be a genious if he could figure out how to also make it so when you update counters it wouldn't delete the users posts
but I don't think he could do THAT |
Can I assume this only works as long as you never update your user post counter?
|
in v.2.2.5- i can't seem to find the
########start delete thread##### part........ i also want this cool hack! :( |
hmm there is... its there man.. i m so sure its there.. :)
|
Hey can anyone make this hack work with 2.2.6 running the Store hack? I'm about to install the store hack, but i'm stuck on the part where it says this;
------ ------------------ find(around line 1897): ------------------ $DB_site->query("UPDATE user SET posts=posts$subtract WHERE userid='$postuserid'"); ------------------ change it to: ------------------ $storeadmin = $DB_site->query_first("SELECT * FROM storeadmin"); $storemin=$storeadmin[newthread]; $DB_site->query("UPDATE user SET posts=posts$subtract,storep=storep-'$storemin' WHERE userid='$postuserid'"); ------------------ find(around line 1930): ------------------ $DB_site->query("UPDATE user SET posts=posts-1 WHERE userid='$postinfo[userid]'"); ------------------ Change it to: ------------------ $storeadmin = $DB_site->query_first("SELECT * FROM storeadmin"); $storem=$storeadmin[newreply]; $DB_site->query("UPDATE user SET posts=posts-1,storep=storep-'$storem' WHERE userid='$postinfo[userid]'"); ------ That's in functions.php The problem here is that i've commented out what ToraTora! has said to do. I don't know any PHP and not this advanced either. So if anyone could re-write those two steps from the Store Hack taking mind that i've commented out what ToraTora! said to do and I still don't want post counts to be reduced during a prune.... If anyone can do that, which i'm sure is Very simple for someone who knows PHP, I will be very grateful :) |
All times are GMT. The time now is 07:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|