Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Let user choose how many reputation points to give (up to their limit). Details »»
Let user choose how many reputation points to give (up to their limit).
Version: 1.1.0, by drew010 drew010 is offline
Developer Last Online: Jan 2012 Show Printable Version Email this Page

Category: End-User Options - Version: 3.6.8 Rating:
Released: 05-03-2007 Last Update: 10-04-2007 Installs: 193
Uses Plugins Template Edits
 
No support by the author.

This modification gives the user the option to choose how many reputation points to give or take when posting reputation on a post. They cannot give or take more than the number of points they have available.

When giving rep, aside from choosing if they approve or disapprove of the post and entering a comment, there is a dropdown box going from 0 to the number of rep points they have. This allows them to award or take a lower number of points than the default which uses their point value.

There is a check in place to make sure the user didn't alter the form to give or take more than the maximum value they can use. An appropriate error message is displayed.

An important thing to note about this mod is that due to a problem with Internet Explorer not being able to show the select box on top of the page when you have the ajax popups enabled, turning this mod on will override your setting for using ajax for giving reputation. It doesn't turn ajax off for anything else. The user will be taken to the default page that is used when popups are disabled if they are using Internet Explorer.

Installation: To install, unzip the product XML file, and import it to your board using the product manager in the AdminCP found under "Plugins & Products" => "Manage Products" => "Add/Import Product"

There are no templates to edit, they should be done automatically. If there is any problem with the dropdown menu showing up please let me know.

Show support if you use it: Mark This As Installed if you use it on your board. Thanks

Change Log:

Version 1.1.0
  • Dropdown is no longer displayed for users with 0 rep power
  • The default value is no longer 0 and is now the user's reputation power
  • Fix negative reputation problem which could generate an error if the user takes more than half their rep power
  • Ajax popup is now enabled for non Internet Explorer users (IE bug prevents dropdown from showing in Ajax popup)
Version 1.0.0
  • Initial Release

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 05-21-2007, 01:29 PM
Mrdby Mrdby is offline
 
Join Date: Mar 2007
Location: Hades
Posts: 1,298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when i add points..it doesn't show..why?
Reply With Quote
  #33  
Old 05-26-2007, 05:37 PM
subnet_rx subnet_rx is offline
 
Join Date: Mar 2005
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When someone negative reps with this addon, it negative reps the full amount instead of half. Anyone know how to prevent this?
Reply With Quote
  #34  
Old 05-29-2007, 02:23 AM
Malibu Malibu is offline
 
Join Date: Nov 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great....

but one side effect that i have noticed is that users may only give low amounts of rep if they want to keep another members rep from shooting up.

is there a way you can build in some options that allows an admin to alter the options for each user.

For example...

if someone has rep power 8...

then they can choose to give 0, 1, 2, 3, 4, 5, 6, 7, 8 rep points.

If an admin can limit it to the top three or four then that user can only give 5, 6, 7 or 8 rep points.

This may help to limit the amount of rep "whoring" goes on, so to speak.
Reply With Quote
  #35  
Old 06-09-2007, 02:32 PM
InfidelMatt InfidelMatt is offline
 
Join Date: Oct 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, but I have a bunch of people accidentally giving 0 rep. is there any way to set the minimum to 1 instead of 0?

Matt
Reply With Quote
  #36  
Old 06-11-2007, 01:06 AM
steve71 steve71 is offline
 
Join Date: Dec 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. How can I make the drop down max at 10 points?

I have the Enhanced reputation checks mod enabled to cap voting at 10 points, but it doesn't take effect with this mod in use.

2. Is this compatible with 3.6.7

Thanks for the hack!
Reply With Quote
  #37  
Old 07-14-2007, 10:32 AM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by InfidelMatt View Post
Great hack, but I have a bunch of people accidentally giving 0 rep. is there any way to set the minimum to 1 instead of 0?
This is exactly the problem I was having. The problem is that people don't always read what is in the drop-down box, therefore it's important that the default choice is the max rep, rather than 0!

I've fixed the issue, and suggest that this change is made in the next version:

In the plugin "Generate HTML dropdown"

Find:
Code:
for($i = 0; $i <= $score; ++$i) {
Replace with:

Code:
for($i = $score; $i >= 0; $i=$i-1) {
This will reverse current order, making max rep the first choice, and 0 the last.
Reply With Quote
  #38  
Old 07-17-2007, 11:50 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I give negative reputation and choose the maximum I get this message:
Quote:
The reputation amount you are trying to give is more than you are allowed to give or take.
So members need to go back and correct this by trying again. This is not optimal. IS there a solution for this?
Reply With Quote
  #39  
Old 07-24-2007, 09:45 PM
ShatterStudios ShatterStudios is offline
 
Join Date: Nov 2006
Location: Kansas
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I could make a suggestion, it would be to use a text box instead of the dropdown and just tell the person what his or her rep power is, like -
Give or take <text box> points (your rep power is __).
As it is, this hack isn't feasible at all for higher reputation powers, and if I understand the AJAX problem, doing it this way would take care of the need to go to the default page.
Reply With Quote
  #40  
Old 08-23-2007, 11:00 PM
okgaz okgaz is offline
 
Join Date: Jun 2007
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
When I give negative reputation and choose the maximum I get this message:

So members need to go back and correct this by trying again. This is not optimal. IS there a solution for this?
I have a similar problem. For some reason I can only give 1 negative rep or I get that error. I can give up to my max (3) positive rep though. Anybody know why?
Reply With Quote
  #41  
Old 08-24-2007, 06:49 PM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bad. Uninstalled it, it takes away the reputation popup.
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 05:24 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04883 seconds
  • Memory Usage 2,314KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete