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
  #22  
Old 05-06-2007, 09:39 AM
akulion's Avatar
akulion akulion is offline
 
Join Date: Nov 2005
Location: Canada
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good mod - but not for me lol
on my board i have "gangs" who group up on people just to bring their reps down and with this they will have a feild day lol
Reply With Quote
  #23  
Old 05-06-2007, 10:23 AM
mktrilogy mktrilogy is offline
 
Join Date: May 2006
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks a lot.
Reply With Quote
  #24  
Old 05-06-2007, 02:28 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

drew010, Could You Please Share with Us the Templates that your Add-On Modifies, as well as the Modifications (Replace, Place Below/Above) that It makes, Please??

Is important for us to know those Modifications to be able to Take Them In Cosideration in vBulletin Updates, and of course to Help You Detect any Bugs and also Improvements!! :up:

I Send You My Best Regards!! I Hope You Can Share This With Us!! :up:

Reply With Quote
  #25  
Old 05-08-2007, 03:04 AM
TeddyKGB's Avatar
TeddyKGB TeddyKGB is offline
 
Join Date: Mar 2006
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is MONEY! I asked if someone could code something like this a while back and got virtually no interest in it.

Can't thank you enough
Reply With Quote
  #26  
Old 05-08-2007, 03:16 AM
drew010's Avatar
drew010 drew010 is offline
 
Join Date: Nov 2005
Location: Santa Rosa, CA
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by inciarco View Post
drew010, Could You Please Share with Us the Templates that your Add-On Modifies, as well as the Modifications (Replace, Place Below/Above) that It makes, Please??

Is important for us to know those Modifications to be able to Take Them In Cosideration in vBulletin Updates, and of course to Help You Detect any Bugs and also Improvements!! :up:

I Send You My Best Regards!! I Hope You Can Share This With Us!! :up:

the only code related to modifying templates are these two things:
on showing the reputation form i look for the vb phrase your_comments_on_this_post and i insert a tr in the row just before it (with the dropdown stuff) leaving the rest as it was when i read the cached template, so any other mods should be included.

and i replace vbrep_register(postid) with parseInt(postid) so that the ajax rep wont show do to the ie problems and the parseInt is just used because it has no side effects of replacing that call.

all the other stuff is hook based php to handle the rest.

and thanks kgb, i actually requested it a while back before i started messing with vbulletin code so im glad someone else wanted the same.
Reply With Quote
  #27  
Old 05-08-2007, 04:08 AM
elmati elmati is offline
 
Join Date: Mar 2007
Location: Argentina
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what about detect browser agent?
cuz i like to use the ajax pop up

disable the option just for ie...
Reply With Quote
  #28  
Old 05-08-2007, 02:27 PM
CheeSie's Avatar
CheeSie CheeSie is offline
 
Join Date: Sep 2006
Location: Denmark
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Blah i was looking for this xD

Thanks for everything drew
Reply With Quote
  #29  
Old 05-10-2007, 03:57 PM
Ted Clore Ted Clore is offline
 
Join Date: Apr 2007
Location: Michigan
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, looks good and works good. Thank you.
Reply With Quote
  #30  
Old 05-12-2007, 01:05 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Magnific Add-On!! :up:

Works Ok With vBulletin 3.6.6!! :up:

Reply With Quote
  #31  
Old 05-15-2007, 11:47 PM
LaCN LaCN is offline
 
Join Date: Feb 2005
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by General BAM View Post
how about changing it from the # of points you are giving to a scale of points (1-10)

right now if you have 80 points of rep altering power it would show you the numbers 1-80
this would change it to just the number 1-10... where 1 would alter the persons rep by 10% of your total rep and 10 would alter it by 100%...

this way the drop down menu has less selections on it... plus most people dont know their rep altering levels... so this would be simpler for them...

i hope i explained that well enough
Quote:
Originally Posted by FreshFroot View Post
I like your idea from a scale of 1-10.. it would be tough to rate when you have 0-100 rep

2 ways to upgrade this:
  1. install the modified product in my attachment, and overwrite current one.
  2. go to Plugin Manager
    Edit the plugin Generate HTML Dropdown
    Find:
    PHP Code:
    $repdd '';
    for(
    $i 0$i <= $score; ++$i) {
      
    $repdd .= "<option value="$i">$i</option>";

    Replace with:
    PHP Code:
    $repdd '';
    $ii = -1;
    for(
    $i 0$i <= 10$i++) {
      if (
    floor($score * ($i 10)) != $ii) {
        
    $ii floor($score * ($i 10));
        
    $a $i 10;
        
    $repdd .= "<option value="$ii">".number_format($ii)." - $a%</option>";
      }




What it does is:
It shows the 0 value, and max 10 other values, with percentages and rounded numbers (floor).
if member has > 10 reppower, it creates a list with 10 (+1) values
if member has < 10 reppower, it creates a list with x (+1) values, and it won't post doubles.
Code:
5 reppower	101 reppower		2000 reppower
0 - 0%		0 - 0%			0 - 0%
1 - 20%		10 - 10%		200 - 10%
2 - 40%		20 - 20%		400 - 20%
3 - 60%		30 - 30%		600 - 30%
4 - 80%		40 - 40%		800 - 40%
5 - 100%	50 - 50%		1,000 - 50%
		60 - 60%		1,200 - 60%
		70 - 70%		1,400 - 70%
		80 - 80%		1,600 - 80%
		90 - 90%		1,800 - 90%
		101 - 100%		2,000 - 100%

Our older members even got to 2,000 reppower
This is the perfect hack on my request here Thank you :up:
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:32 AM.


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.06994 seconds
  • Memory Usage 2,331KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_php
  • (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