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)

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:


All times are GMT. The time now is 01:54 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.01108 seconds
  • Memory Usage 1,754KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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