![]() |
In helpfulanswers_settings (admincp) turn this off:
Show Users Who Voted On Their Post If enabled, users will see who voted on their post in the notifications area. Yes No |
I appreciate you taking the time to reply but I knew that much. What I said was it would be useful for me to be able to make positive ratings named and negative feedback anonymous but it's no big deal I can live without it.
On a different note... Some of my users are asking how the time period for the max post ratings a user can make per day is calculated. Is it on a rolling 24 hour period, please? I couldn't see how this is done in the code. |
Quote:
|
Quote:
Line 323 of helpfulanswers.php should you wish to adjust Code:
$datecut = TIMENOW - 86400; Code:
$helpfulanswer = $db->query_first_slave(" |
Thanks Ted! I really appreciate your time on this.
On a different note, I was using 2.0.5 but I just upgraded to 2.0.6. It seems it wasn't updating the counter on the "user" table. I'm going to try building this using SQL queries (because I'm planning on using users' helpful post count to control whether they get admitted to a restricted forum, which is an add on modification somebody is going to develop for me.) I'll post the SQL queries I used if I get it working. I hope this post makes sense. |
Quote:
Open up helpfulanswers.php and go to line 344 Code:
$db->query_write(" You can modify that query to add to the user table or just copy it and make it alter another table. field = field+1 to increment a counter. |
Excellent, many thanks Ted I used that code.
Regarding the post you made before about how the no. of posts rated in a 24 hour period works..... I might be pushing my luck here, but this will be my last request I promise: it would be useful for me to exclude users in certain usergroups from the limit on the number of posts they can rate in 24 hours (so that moderators can rate an unlimited number of posts as helpful). Is there an addition I could make to the code around line 323 to achieve that, please? |
Quote:
And yes, you can do this. If you just exclude groups from the function it's very simple... Find Code:
$datecut = TIMENOW - 86400; Code:
$datecut = TIMENOW - 86400; |
Oh dear, I can't seem to get that code to work.
On edit: a programmer helped me out with the above tweak to allow moderators to rate an unlimited number of posts; he said he'll post the code here at the weekend. |
I don't know if this has been asked before but I am a little concerned.
If the Reputation feature is enabled with this Mod and someone is on a Reputation Spread before repping the same person, can they get around to having to wait for the Rep Spread by just randomly pressing the thumbs up on a bunch of posts and then being able to rep the same person via the inbuilt vBulletin rep system because they spread Reps via this Mod? Reason I ask is I am worried this will cause a lot of rep whoring if enabled... |
All times are GMT. The time now is 11:02 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|