View Full Version : Force comment when giving reputation
northernstar
05-24-2004, 05:18 PM
Is there a way to force comments to be entered when someone gives/takes away your reputation? I find it annoying when someone takes away points and doesn't give reason.
ScottA
07-28-2004, 02:41 PM
Well, I know I'm replying to a 2 month old post, but this came up in my search and I figured this might be helpful.
I wanted to know the same thing, but didn't find any instructions on how to do this. So I figured it out for myself.
Open reputation.php and look for the following:
if ($_POST['do'] == 'addreputation')
Change that to:
if ($_POST['do'] == 'addreputation' && strlen(trim($_POST['reason'])) > 0)
Now if someone doesn't enter a comment the reputation will not be added. You may also want to edit the reputationbit template to note that.
Musicpill
07-28-2004, 08:02 PM
Just so you dont get stuck on the editing reptuation window, heres a little help:
In your style/Styles open the template reputationbit and do the following (Just my example.)
Find
[your_comments_on_this_post]
In same line, after add
<font size=1 color=red>*</font>
Find
<input type="text" class="bginput" size="40" maxlength="250" name="reason" />
</td>
</tr>
Undeneith place
<tr>
<td>
<font size=1 color=red>*Required</font>
</td>
</tr>
Screenshot of that working:
:nervous:http://musicpill.com/websites/rep.gif
bi11i
09-28-2004, 01:40 PM
hey, this is great - thanks for the answer to a question i've been searching on for quite awhile.
Jamie-UK
06-24-2005, 07:53 PM
This is great, thank you.
Just one query... How can I not have a radio button selected, so that the user has to select either approve or disapprove when giving reputation ?
At the moment, positive reputation is always selected and this has led people to accidentally approve, when they meant to disapprove.
Regards.
Jamie
zylstra
10-17-2005, 05:09 PM
I would guess in reputationbit change:<div><label for="rb_reputation_pos"><input type="radio" name="reputation"
value="pos" id="rb_reputation_pos" checked="checked" />
$vbphrase[i_approve]</label></div> to<div><label for="rb_reputation_pos"><input type="radio" name="reputation"
value="pos" id="rb_reputation_pos" />
$vbphrase[i_approve]</label></div>
alfaowner
03-11-2006, 05:19 PM
this didnt do the trick for v3.5.4 incase anyone wondered? It still submitted a vote even though neither box was selected.
BPnet
05-19-2006, 03:03 AM
Great work!
Very helpful - thanks!
ballpnet
11-05-2007, 11:04 PM
Apologies for the bump on an old thread. I've searched the forums for the most part and have yet to find a way to fully implement this feature for 3.6.8. The above hack works in the sense that no reputation gets added/deducted from a user. However, the reputation box just disappears without any notice if the user hits "Add to reputation."
Is there a way to tweak the javascript in the backend to validate the "Comments" field? Thank you very much for any assistance rendered.
Analogpoint
11-06-2007, 06:21 PM
Have you seen this?
https://vborg.vbsupport.ru/showthread.php?t=123161
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.