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

Reply
 
Thread Tools
Extended Reputation Details »»
Extended Reputation
Version: 0.02, by CheeSie CheeSie is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 4.0.x Rating:
Released: 09-22-2010 Last Update: Never Installs: 38
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Extended Reputation

This is a modification I had to develop to control the rep at my own forum. After it was tweaked to my personal preferences I gave it another tweak and added some features other might find useful and I'm now releasing it to you guys!

Features
This integrates with vBulletin. All settings that can be changed will be listed under Admin Panel -> Options -> User Reputation Options.
Usergroup permissions will of course be listed within the usergroups
Everything should be fully phrased! (I'm Danish, so there might be some grammar errors.. sorry )

The add reputation form alteration:
Why do users have to give their full amount of reputation? I think it's better for them to give the amount they prefer, therefore this mod enables them to give a custom amount of reputation.

The settings added are:
  • Disable Negative Reputation
    Global on/off switch for enabling/disabling negative reputation.. it's easier to use this than setting the permission for each usergroup.
  • Force Post Report On Negative Reputation
    Make the user report the post they're giving negative reputation. The comment given for the reputation will be used as the report reason as well, this also enables the moderators to make sure the reputation is valid. Often users negative rep posts that are against the forum rules, this makes sure it's being reported!
  • Extended Report Information
    Extend the report filed through giving reputation to also include the amount of reputation given.
  • Use Primary Usergroup Permissions
    This is useful if you want the usergroup permissions to be based on the primary usergroup instead of whichever permissions the users membergroup has (if they have any membergroups)
  • Allow 0 Point Reputations
    Globally enable/disable the users from giving 0 point reputations (my users thought these were annoying and served no real purpose).
  • Positive Reputation Per Post
    Define how many times a post can receive positive reputation, can be set to unlimited.
  • Negative Reputation Per Post
    Define how many times a post can receive negative reputation, can be set to unlimited.
  • Minimum Length Of Reputation Comment
    Define a minimum length of the reputation comment given.
  • Users Banned From Using Reputation
    A list of userids that are banned from giving reputation.

Usergroup permissions:
  • Positive reputation cap
    A cap on how much positive reputation that can be given by this usergroup.
  • Negative reputation cap
    A cap on how much negative reputation that can be given by this usergroup.
  • Maximum amount of times reputation can be given per day
    Define how many times this usergroup can give reputation per day (does not override the one set in the vBulletin options)

Installation
  1. Upload the files from the 'upload' folder.
  2. Import the product
  3. Rebuild bitfields (it should do it automatically, but if it doesn't...)
  4. Do the template edit (listed below)
  5. Edit the settings to your likings!

Template Edit
Replace everything from reputationbit with (vBulletin 4.2 and later):
HTML Code:
<div class="blockbody formcontrols">
    <h3 class="blocksubhead">{vb:rawphrase add_to_reputation}: {vb:raw userinfo.username}</h3>
    <div class="blockrow">
        <label for="reputation">{vb:rawphrase xtdrep_giveto}</label>
        <label for="rb_reputation_pos_{vb:raw postid}" style="float:none;"><input type="radio" name="reputation" value="pos" id="rb_reputation_pos_{vb:raw postid}" checked="checked" tabindex="1" /> {vb:rawphrase xtdrep_posrep} {vb:rawphrase xtdrep_maxpoints, {vb:raw show.maxposrep}}</label>
        <vb:if condition="$show['negativerep']">
            <label for="rb_reputation_neg_{vb:raw postid}" style="float:none;"><input type="radio" name="reputation" value="neg" id="rb_reputation_neg_{vb:raw postid}" tabindex="1" /> {vb:rawphrase xtdrep_negrep} {vb:rawphrase xtdrep_maxpoints, {vb:raw show.maxnegrep}}</label>
            <vb:if condition="$show['reportonneg']">
                <p class="description" style="margin-left: 0px;">{vb:rawphrase xtdrep_negrepcomment}</p>
            </vb:if>
        </vb:if>
    </div>
    
    <div class="blockrow">
        <label for="rep2give">{vb:rawphrase xtdrep_points}</label>
        <input type="text" class="textbox" maxlength="5" name="rep2give" tabindex="2" id="rep2give_{vb:raw postid}" style="width:50px;" value="{vb:raw show.xtd_initrep}" />
    </div>

    <div class="blockrow">
        <label for="reason">{vb:rawphrase your_comments_on_this_post}:</label>
        <input type="text" class="primary textbox" maxlength="250" name="reason" tabindex="1" id="reason_{vb:raw postid}"/>
    </div>
</div>

<div class="blockfoot actionbuttons">
    <div class="group">
        <input type="hidden" name="do" value="addreputation" />
        <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
        <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
        <input type="hidden" name="p" value="{vb:raw postid}" />
        <input type="hidden" name="url" value="{vb:raw url}" />
        <input type="submit" name="reputationsubmit" class="button" tabindex="1" value="{vb:rawphrase add_to_reputation}" accesskey="s" />
    </div>
</div>
Replace everything from reputationbit with (before vBulletin 4.2):
HTML Code:
<div class="blockbody formcontrols">
    <h3 class="blocksubhead">{vb:rawphrase add_to_reputation}: {vb:raw userinfo.username}</h3>
    <div class="blockrow">
        <label for="reputation">{vb:rawphrase xtdrep_giveto}</label>
        <label for="rb_reputation_pos_{vb:raw postid}" style="float:none;"><input type="radio" name="reputation" value="pos" id="rb_reputation_pos_{vb:raw postid}" checked="checked" tabindex="1" /> {vb:rawphrase xtdrep_posrep} {vb:rawphrase xtdrep_maxpoints, {vb:raw bbuserinfo.maxposrep}}</label>
        <vb:if condition="$show['negativerep']">
            <label for="rb_reputation_neg_{vb:raw postid}" style="float:none;"><input type="radio" name="reputation" value="neg" id="rb_reputation_neg_{vb:raw postid}" tabindex="1" /> {vb:rawphrase xtdrep_negrep} {vb:rawphrase xtdrep_maxpoints, {vb:raw bbuserinfo.maxnegrep}}</label>
            <vb:if condition="$bbuserinfo['reportonneg']">
                <p class="description" style="margin-left: 0px;">{vb:rawphrase xtdrep_negrepcomment}</p>
            </vb:if>
        </vb:if>
    </div>
    
    <div class="blockrow">
        <label for="rep2give">{vb:rawphrase xtdrep_points}</label>
        <input type="text" class="textbox" maxlength="5" name="rep2give" tabindex="2" id="rep2give_{vb:raw postid}" style="width:50px;" value="{vb:raw bbuserinfo.xtd_initrep}" />
    </div>

    <div class="blockrow">
        <label for="reason">{vb:rawphrase your_comments_on_this_post}:</label>
        <input type="text" class="primary textbox" maxlength="250" name="reason" tabindex="1" id="reason_{vb:raw postid}"/>
    </div>
</div>

<div class="blockfoot actionbuttons">
    <div class="group">
        <input type="hidden" name="do" value="addreputation" />
        <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
        <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
        <input type="hidden" name="p" value="{vb:raw postid}" />
        <input type="hidden" name="url" value="{vb:raw url}" />
        <input type="submit" name="reputationsubmit" class="button" tabindex="1" value="{vb:rawphrase add_to_reputation}" accesskey="s" />
    </div>
</div>
Updates
  • v0.02 (23/09-2010): Added more settings. Releasing on vBulletin.org
  • v0.01 (22/09-2010): Released on my own forum.

Notes
This is the first "product modification" I release, so if there's some errors please let me know.
The idea of the user based input was from another mod by Drew. I think it was for vb3..
I've added a screenshot of what the reputation screen will look like and the vbulletin options...

Support
I'll do my best to provide support.. But I'd for sure be more willing to help you if you marked this mod as installed

Download Now

File Type: zip Extended Reputation v0.02.zip (85.3 KB, 317 views)

Screenshots

File Type: png screenshot_addrep.png (10.1 KB, 0 views)
File Type: png screenshot_options.png (77.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Allan, Guthatron

Comments
  #12  
Old 12-08-2010, 08:39 PM
Leica.Robbiani Leica.Robbiani is offline
 
Join Date: Sep 2007
Location: South Germany
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

Code:
Invalid SQL:
SELECT COUNT(*) AS count, dateline FROM vb382_reputation WHERE whoadded = '3' AND dateline > (1291845130 - 86400) ORDER BY dateline ASC LIMIT 1;

MySQL-Error  : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Does anybody knwo what's going on there?

Best regards

L.R.
Reply With Quote
  #13  
Old 12-08-2010, 09:07 PM
rajubd rajubd is offline
 
Join Date: Jun 2009
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

maximum rep power set to 5?
Reply With Quote
  #14  
Old 06-21-2011, 06:42 PM
CheeSie's Avatar
CheeSie CheeSie is offline
 
Join Date: Sep 2006
Location: Denmark
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Leica.Robbiani View Post
Hi there,

Code:
Invalid SQL:
SELECT COUNT(*) AS count, dateline FROM vb382_reputation WHERE whoadded = '3' AND dateline > (1291845130 - 86400) ORDER BY dateline ASC LIMIT 1;

MySQL-Error  : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Does anybody knwo what's going on there?

Best regards

L.R.
I'm not sure this mod runs on vb382
Reply With Quote
  #15  
Old 07-04-2011, 11:24 PM
dmm2020 dmm2020 is offline
 
Join Date: Apr 2010
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem: On mouseover, it only shows "Reputation". It DOES NOT show the comments configured in User Reputation Manager in the AdminCP. What is cause? It did not do this until I installed this mod.
Reply With Quote
  #16  
Old 07-12-2011, 10:55 AM
The Rocketeer's Avatar
The Rocketeer The Rocketeer is offline
 
Join Date: Jun 2010
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way we can disable the "Points" thing on it? only display the box without the whole points? maybe also define them in acp?
Reply With Quote
  #17  
Old 07-15-2011, 07:24 AM
Successfulsteps's Avatar
Successfulsteps Successfulsteps is offline
 
Join Date: Sep 2010
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice, installed on vbulletin 4.1.4 and is working perfectly! :up:
Reply With Quote
  #18  
Old 08-03-2011, 04:08 PM
River J River J is offline
 
Join Date: Jun 2011
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

never mind fixed my issue
Reply With Quote
  #19  
Old 08-03-2011, 08:23 PM
mjfan227's Avatar
mjfan227 mjfan227 is offline
 
Join Date: Jul 2011
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I uploaded it and installed it, changed the template, however it doesn't show up in the admincp options nor on my site. Why isn't it working?
Reply With Quote
  #20  
Old 08-17-2011, 11:10 AM
zhai zhai is offline
 
Join Date: Jun 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


Question: if I have +15 rep power and I had only given +5 points to another user, but the daily limit for reputation click is only 1, can I still give reputation to others?
Reply With Quote
  #21  
Old 08-18-2011, 01:44 AM
hoadiem hoadiem is offline
 
Join Date: Aug 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i show rep power under post and thread on the side, i don't see any where to enable it. pleasee help
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 06:18 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.13467 seconds
  • Memory Usage 2,368KB
  • 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
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete