vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   End-User Options - Let user choose how many reputation points to give (up to their limit). (https://vborg.vbsupport.ru/showthread.php?t=146438)

drew010 05-03-2007 10:00 PM

Let user choose how many reputation points to give (up to their limit).
 
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

bacanze 05-04-2007 09:27 AM

Seems like a good idea to me :) good job.

Terminatoronly 05-04-2007 09:36 AM

Great Idea Installed :)

bing11 05-04-2007 11:11 AM

thank you so much

Masiello 05-04-2007 03:12 PM

Good, Installed!

inciarco 05-04-2007 05:57 PM

Good Add-On!! Very Useful!! :up:

I have two questions!!

-- :confused: Where can I access the Control Panel to View and Edit the Comments?? :confused:

-- :confused: How Do I Turn Off the Add-On, to be able to Use the Normal Comments System?? :confused:

https://vborg.vbsupport.ru/external/2007/05/21.jpg

Thank You Very Much!! :up:

:)

drew010 05-04-2007 06:19 PM

Quote:

Originally Posted by inciarco (Post 1241468)
Good Add-On!! Very Useful!! :up:

I have two questions!!

-- :confused: Where can I access the Control Panel to View and Edit the Comments?? :confused:

-- :confused: How Do I Turn Off the Add-On, to be able to Use the Normal Comments System?? :confused:

https://vborg.vbsupport.ru/attachmen...7&d=1178267791

Thank You Very Much!! :up:

:)

That's just a screenshot of the User Reputation Manager showing it gave 5 points, instead of the 10 it would have. It is found under "User Reputations" => "View Reputation Comments"
All this mod does is add the select box into the existing rep system so the person can choose how many points to give.
To disable that just disable the mod from the product manager and the rep system will function as normal.
The reasoning behind making this was on my board rep affects the ability to use certain programs and gain access to other areas and some users have huge amounts of rep and giving like 20 points for a simple thing to me seemed to defeat the purpose so I encourage them to give an appropriate amount of points based on what they are repping for.

inciarco 05-04-2007 06:36 PM

Quote:

Originally Posted by drew010 (Post 1241480)
That's just a screenshot of the User Reputation Manager showing it gave 5 points, instead of the 10 it would have. It is found under "User Reputations" => "View Reputation Comments"
All this mod does is add the select box into the existing rep system so the person can choose how many points to give.
To disable that just disable the mod from the product manager and the rep system will function as normal.
The reasoning behind making this was on my board rep affects the ability to use certain programs and gain access to other areas and some users have huge amounts of rep and giving like 20 points for a simple thing to me seemed to defeat the purpose so I encourage them to give an appropriate amount of points based on what they are repping for.

Thank You Very Much drew010!! :up:

I like a lot the Displayed Form to Introduce the Reputation and the Message, and to be able to choose How Much Reputation Points to Give!! :up:

Works Great in vb3.6.5!! :up:

My Best Regards!! :up:

:)

inciarco 05-04-2007 06:40 PM

:confused: One More Question: How do I choose the Text Box instead of the Combo Box (Dropping Down Option) for the Users to Manually Introduce the Reputation Points?? :confused:

Like in this Image!!

https://vborg.vbsupport.ru/attachmen...8&d=1178267791

Thank You Very Much!! :up:

:)

drew010 05-04-2007 06:44 PM

Right now the mod only supports a dropdown. I was able to switch to a textbox using a Firefox addon that has the option of converting all form <select> boxes into text boxes. It is called Web Developer which can be found here

The reason I go with the drop down is because users may not know their exact rep power or what limitations they would have if there was just a text box to type in.

inciarco 05-04-2007 06:47 PM

Quote:

Originally Posted by drew010 (Post 1241499)
Right now the mod only supports a dropdown. I was able to switch to a textbox using a Firefox addon that has the option of converting all form <select> boxes into text boxes. It is called Web Developer which can be found here

The reason I go with the drop down is because users may not know their exact rep power or what limitations they would have if there was just a text box to type in.

Ok!! Thank You Very Much drew010!! :up:

I like a lot the Drop Down Combo Box Option!! :up:

My Best Regards To You!! :up:

:)

projectego 05-04-2007 07:05 PM

Great idea, drew. Thanks a lot! ;)

FreshFroot 05-04-2007 07:07 PM

Nice stuff mate, BTW do you know when you might release it out of Beta and to final? Or are you looking to see if their are any bugs, before you finalize it?

drew010 05-04-2007 10:39 PM

Quote:

Originally Posted by FreshFroot (Post 1241518)
Nice stuff mate, BTW do you know when you might release it out of Beta and to final? Or are you looking to see if their are any bugs, before you finalize it?

yeah just waiting to see if anyone has any issues with it before i call it a release. maybe see if there are any suggestions for it as well so i can add a feature or two before doing that.

FreshFroot 05-05-2007 06:17 AM

hmm I don't see any bugs so far. However, for adding features.. mabye something like limiting a number.. or just a fixed number per a forum... Like say you have a offtopic or games area.. you might only want like the min rep used or something.. I'm just throwing ideas..

bela-meaad 05-05-2007 08:29 PM

Thanks

allah bless you

Spank 05-05-2007 09:26 PM

I notice from your screen shot to select 0. Does this give a 'neutral' rep? If so is it possible to have that they can either give/take their maximum or give a neutral?

Muellmann 05-05-2007 09:52 PM

Works error free, ty. ;)

General BAM 05-06-2007 01:29 AM

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

FreshFroot 05-06-2007 07:51 AM

I like your idea from a scale of 1-10.. it would be tough to rate when you have 0-100 rep :p

akulion 05-06-2007 09:39 AM

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

mktrilogy 05-06-2007 10:23 AM

thanks a lot.

inciarco 05-06-2007 02:28 PM

:confused: 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?? :confused:

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:

:)

TeddyKGB 05-08-2007 03:04 AM

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

drew010 05-08-2007 03:16 AM

Quote:

Originally Posted by inciarco (Post 1242475)
:confused: 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?? :confused:

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.

elmati 05-08-2007 04:08 AM

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

disable the option just for ie...

CheeSie 05-08-2007 02:27 PM

Blah i was looking for this xD

Thanks for everything drew :)

Ted Clore 05-10-2007 03:57 PM

Installed, looks good and works good. Thank you.

inciarco 05-12-2007 01:05 PM

Magnific Add-On!! :up:

Works Ok With vBulletin 3.6.6!! :up:

:)

LaCN 05-15-2007 11:47 PM

Quote:

Originally Posted by General BAM (Post 1242217)
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 (Post 1242345)
I like your idea from a scale of 1-10.. it would be tough to rate when you have 0-100 rep :p


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 :D
This is the perfect hack on my request here :) Thank you :up:

Mrdby 05-21-2007 01:29 PM

when i add points..it doesn't show..why?

subnet_rx 05-26-2007 05:37 PM

When someone negative reps with this addon, it negative reps the full amount instead of half. Anyone know how to prevent this?

Malibu 05-29-2007 02:23 AM

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.

InfidelMatt 06-09-2007 02:32 PM

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

steve71 06-11-2007 01:06 AM

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!

mfyvie 07-14-2007 10:32 AM

Quote:

Originally Posted by InfidelMatt (Post 1264823)
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.

Alfa1 07-17-2007 11:50 PM

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?

ShatterStudios 07-24-2007 09:45 PM

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.

okgaz 08-23-2007 11:00 PM

Quote:

Originally Posted by Alfa1 (Post 1294143)
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?

dutchbb 08-24-2007 06:49 PM

Bad. Uninstalled it, it takes away the reputation popup.


All times are GMT. The time now is 05:50 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
  • Page Generation 0.01629 seconds
  • Memory Usage 1,850KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete