Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2004, 05:18 PM
northernstar northernstar is offline
 
Join Date: May 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Force comment when giving reputation

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.
Reply With Quote
  #2  
Old 07-28-2004, 02:41 PM
ScottA ScottA is offline
 
Join Date: May 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

PHP Code:
if ($_POST['do'] == 'addreputation'
Change that to:

PHP Code:
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.
Reply With Quote
  #3  
Old 07-28-2004, 08:02 PM
Musicpill Musicpill is offline
 
Join Date: Jun 2004
Location: Eng-er-land
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
PHP Code:
[your_comments_on_this_post
In same line, after add
PHP Code:
<font size=1 color=red>*</font
Find

PHP Code:
<input type="text" class="bginput" size="40" maxlength="250" name="reason" />
                </
td>
            </
tr
Undeneith place
PHP Code:
<tr>
<
td>
<
font size=1 color=red>*Required</font>
</
td>
</
tr


Screenshot of that working:





:nervous:
Reply With Quote
  #4  
Old 09-28-2004, 01:40 PM
bi11i's Avatar
bi11i bi11i is offline
 
Join Date: Aug 2004
Location: Portland, OR
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey, this is great - thanks for the answer to a question i've been searching on for quite awhile.
Reply With Quote
  #5  
Old 06-24-2005, 07:53 PM
Jamie-UK's Avatar
Jamie-UK Jamie-UK is offline
 
Join Date: Mar 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 10-17-2005, 05:09 PM
zylstra zylstra is offline
 
Join Date: Aug 2004
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would guess in reputationbit change:
Code:
<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
Code:
<div><label for="rb_reputation_pos"><input type="radio" name="reputation" 
value="pos" id="rb_reputation_pos" />
$vbphrase[i_approve]</label></div>
Reply With Quote
  #7  
Old 03-11-2006, 05:19 PM
alfaowner alfaowner is offline
 
Join Date: Jul 2003
Location: London
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this didnt do the trick for v3.5.4 incase anyone wondered? It still submitted a vote even though neither box was selected.
Reply With Quote
  #8  
Old 05-19-2006, 03:03 AM
BPnet's Avatar
BPnet BPnet is offline
 
Join Date: Mar 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work!

Very helpful - thanks!
Reply With Quote
  #9  
Old 11-05-2007, 11:04 PM
ballpnet ballpnet is offline
 
Join Date: Oct 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 11-06-2007, 06:21 PM
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Posts: 656
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you seen this?

https://vborg.vbsupport.ru/showthread.php?t=123161
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:19 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
  • Page Generation 0.04682 seconds
  • Memory Usage 2,259KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete