vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Reputation Setting Per Usergroup (https://vborg.vbsupport.ru/showthread.php?t=266604)

xrvel 07-10-2011 10:00 PM

Reputation Setting Per Usergroup
 
1 Attachment(s)
This mini mod enables you to be able to set these different settings for each usergroup :
  • Daily Reputation Clicks Limit.
  • Reputation User Spread.
  • reputation power.
  • max rep power.

https://vborg.vbsupport.ru/attachmen...hmentid=141131

For example you can set that "Moderators" has "Reputation User Spread" as "2",
but "Registered User" has "Reputation User Spread" as "10".

Other example is "Moderator" can have reputation power 5, while "Registered User" will have default reputation power.

You can just adjust the setting on admincp > usergroup > edit.

Check the attachment below for the screenshot.

This mod has been tested up to 4.2.0

Current version : 1.0.5

Version 1.0.5 - October 2012
  • Rep power change now applied on usercp.

Version 1.0.4 - September 2012
  • Bug fix : leaving negative rep is assumed as positive. Fixed.
  • New feature : max rep power cap per usergroup.


Version 1.0.3 - August 2012
  • Most code has been rebuilt.
  • rep power display bug on postbit & other places is fixed.
  • setting is changeable from usergroup > edit.

Version 1.0.2 - August 2012
  • Daily spread bug & other bugs fixed.

Version 1.0.1 - 11 July 2011
  • Reputation power can be set for each usergroup.

Version 1.0.0 - 11 July 2011
  • First release.

Please click Mark as Installed if you install my mod :)

sticky 07-11-2011 07:51 AM

Brilliant!

xrvel 07-11-2011 01:51 PM

Version 1.0.1 has been released.
Reputation power is now can be modified per usergroup :D

prandah 07-11-2011 02:05 PM

briliant :D
click mark installed & nominaate MOTM

xrvel 07-11-2011 02:18 PM

Quote:

Originally Posted by sticky (Post 2219216)
Brilliant!

Quote:

Originally Posted by prandah (Post 2219317)
briliant :D
click mark installed & nominaate MOTM

Thanks mate... I hope this plugin really helps. :D

indoc0der 07-13-2011 11:10 PM

nice one mate
recommended :p


mantap gan

sticky 07-15-2011 07:03 AM

Quote:

Originally Posted by xrvel (Post 2219324)
Thanks mate... I hope this plugin really helps. :D

Helps big time, thank you! Wish I had this a long time ago.

zhai 11-21-2011 05:15 AM

the daily reputation limit, and the spread limit dont seem to work.
Only the rep power works.

why is that?

sticky 05-25-2012 05:55 AM

Quote:

Originally Posted by zhai (Post 2270217)
the daily reputation limit, and the spread limit dont seem to work.
Only the rep power works.

why is that?

Doesn't work for me either.

xrvel 08-06-2012 03:58 AM

Quote:

Originally Posted by zhai (Post 2270217)
the daily reputation limit, and the spread limit dont seem to work.
Only the rep power works.

why is that?

Quote:

Originally Posted by sticky (Post 2332610)
Doesn't work for me either.

Thanks it has been fixed. :)
Please download version 1.0.2, and just reupload the XML file.

sticky 08-06-2012 11:06 PM

Quote:

Originally Posted by xrvel (Post 2354889)
Thanks it has been fixed. :)
Please download version 1.0.2, and just reupload the XML file.

Thank you!!

sutto 08-09-2012 08:16 AM

Great mod, thanks!

I can't seem to get the rep_power adjustment working though.

I'm using the following but see no different in rep power for users in that usergroup...

20,-,-,10,1

xrvel 08-10-2012 02:59 AM

Quote:

Originally Posted by sutto (Post 2355751)
Great mod, thanks!

I can't seem to get the rep_power adjustment working though.

I'm using the following but see no different in rep power for users in that usergroup...

20,-,-,10,1

Have you tried to search the added rep on admincp >> "View Reputation Comments" and the reputation power is not added by 10?

sutto 08-10-2012 06:58 AM

Quote:

Originally Posted by xrvel (Post 2355919)
Have you tried to search the added rep on admincp >> "View Reputation Comments" and the reputation power is not added by 10?

No, nothing appears for the users within usergroup 20.

xrvel 08-10-2012 03:50 PM

Quote:

Originally Posted by sutto (Post 2355940)
No, nothing appears for the users within usergroup 20.

Have you tried to login in as usergroup 20, and give reputation to any user, and check whether the rep power is added by 10 or not?

Because the rep power is added only on adding reputation process.
So if somehow you choose to display rep power on postbit for example, the number on postbit won't be changed. :)

sutto 08-12-2012 12:52 AM

Oh right, so this mod will add x rep_power to each rep given/taken, but it won't update their 'actual' rep power as displayed in admincp > user section?

xrvel 08-12-2012 01:20 AM

Quote:

Originally Posted by sutto (Post 2356323)
Oh right, so this mod will add x rep_power to each rep given/taken, but it won't update their 'actual' rep power as displayed in admincp > user section?

Yes that's correct. If you go to admincp > user section, the rep power change won't be displayed there. Because the change is applied only when rep is given :)

sutto 08-12-2012 04:48 AM

Quote:

Originally Posted by xrvel (Post 2356328)
Yes that's correct. If you go to admincp > user section, the rep power change won't be displayed there. Because the change is applied only when rep is given :)

Okay cool, thanks for letting me know.

xrvel 08-15-2012 05:51 PM

Marked as re-usable code now :)

sutto 08-18-2012 06:16 AM

Hi there,

I'm using 17,-,-,5,1 and it appears to be adding the +5 rep to users that are not a member of usergroup 17.

Any ideas?

Edit: Further info on this. It appears Admins & Super Moderators can see other users as having 5 rep power when they should have 0. However general users see them as having 0.

This seems very odd! lol.

xrvel 08-18-2012 06:31 AM

Quote:

Originally Posted by sutto (Post 2357806)
Hi there,

I'm using 17,-,-,5,1 and it appears to be adding the +5 rep to users that are not a member of usergroup 17.

Any ideas?

Edit: Further info on this. It appears Admins & Super Moderators can see other users as having 5 rep power when they should have 0. However general users see them as having 0.

This seems very odd! lol.

It depends where did you see that weird thing.

For example you set rep power of admin to 10.
When you login as admin account, and you go to admincp > user > edit any user (moderator / registered user), the edited user's rep power will display 10.
I know that's weird :D

But don't worry on adding rep process all are correct. :)

sutto 08-18-2012 06:37 AM

It's displaying in the postbit.

Once I removed the 17,-,-,5,1 all people who 'should' be on zero were on zero. This is the same for both admins,super mods & general users.

When adding the 17,-,-,5,1 however, the postbit display 0 for general users, but 5 for Admins/Super Mods.

xrvel 08-18-2012 07:06 AM

Quote:

Originally Posted by sutto (Post 2357811)
It's displaying in the postbit.

Once I removed the 17,-,-,5,1 all people who 'should' be on zero were on zero. This is the same for both admins,super mods & general users.

When adding the 17,-,-,5,1 however, the postbit display 0 for general users, but 5 for Admins/Super Mods.

Yeah on postbit it is not displayed correctly. Atm this only works correctly when adding rep process. I'll fix it on next version with some new GUI for easier usage :) (which is very soon :D)

sutto 08-18-2012 07:35 AM

Quote:

Originally Posted by xrvel (Post 2357818)
Yeah on postbit it is not displayed correctly. Atm this only works correctly when adding rep process. I'll fix it on next version with some new GUI for easier usage :) (which is very soon :D)

Okay, so even if the postbit does say 5, those users who should have zero actually do have zero?

xrvel 08-18-2012 08:16 AM

Quote:

Originally Posted by sutto (Post 2357822)
Okay, so even if the postbit does say 5, those users who should have zero actually do have zero?

Yes that's correct :)

xrvel 08-18-2012 03:55 PM

Current version : 1.0.3

Version 1.0.3 - August 2012
- Most code has been rebuilt.
- rep power display bug on postbit & other places is fixed.
- setting is changeable from usergroup > edit.

How to upgrade :
- just reupload the XML file
- old setting will be lost, so be prepared to adjust the new setting :)

zhai 08-26-2012 04:12 AM

if I decided to make everything as default again, I just have to empty all the settings on each usergroup? Will the the reputation power be back to default or zero?

xrvel 08-26-2012 03:57 PM

Quote:

Originally Posted by zhai (Post 2360047)
if I decided to make everything as default again, I just have to empty all the settings on each usergroup? Will the the reputation power be back to default or zero?

To reset everything back to default (not to zero) on all usergroups, you can :
- leave all fields empty, or
- disable / uninstall the product.

sticky 08-30-2012 07:35 PM

I installed the latest version but it still doesn't work. When I put in a number on the usergroup for rep spread, it just stays empty it doesn't save.

How come?

JustAskJulie 09-04-2012 06:04 PM

I really just want to cap out the maximum reputation power for a user. By default you can do this for admins, but I have users who have been around about as long as I have and while I've capped my own power I can't cap theirs. Any suggestions on how to do this? This hack doesn't seem to be my answer as it just sets all users in that usergroup to a specific power level.

xrvel 09-05-2012 01:03 AM

Quote:

Originally Posted by sticky (Post 2361302)
I installed the latest version but it still doesn't work. When I put in a number on the usergroup for rep spread, it just stays empty it doesn't save.

How come?

Thanks i have replied your PM.

Quote:

Originally Posted by JustAskJulie (Post 2362654)
I really just want to cap out the maximum reputation power for a user. By default you can do this for admins, but I have users who have been around about as long as I have and while I've capped my own power I can't cap theirs. Any suggestions on how to do this? This hack doesn't seem to be my answer as it just sets all users in that usergroup to a specific power level.

Yeah this product won't do it. But i will write a small plugin for you for free of course. Do you want to set max rep power per user, or per usergroup?

JustAskJulie 09-07-2012 08:56 PM

Quote:

Originally Posted by xrvel (Post 2362748)

Yeah this product won't do it. But i will write a small plugin for you for free of course. Do you want to set max rep power per user, or per usergroup?

Thank you, that would be very awesome of you. Per usergroup would be excellent.

JustAskJulie 09-08-2012 04:30 PM

After running the original hack for a couple of days, it seems like there may be an issue. When users in the groups that I'd set a power level for tried to leave a negative rep, it reverted to a positive every time, so they weren't able to leave any negative reps.

xrvel 09-10-2012 11:59 AM

Quote:

Originally Posted by JustAskJulie (Post 2363499)
Thank you, that would be very awesome of you. Per usergroup would be excellent.

Quote:

Originally Posted by JustAskJulie (Post 2363728)
After running the original hack for a couple of days, it seems like there may be an issue. When users in the groups that I'd set a power level for tried to leave a negative rep, it reverted to a positive every time, so they weren't able to leave any negative reps.

Stay tuned for the update. :)

xrvel 09-10-2012 12:30 PM

Version 1.0.4 - September 2012
  • Bug fix : leaving negative rep is assumed as positive. Fixed.
  • New feature : max rep power cap per usergroup.

JustAskJulie 09-15-2012 09:32 AM

Thank you. Giving the update a try.

sticky 10-10-2012 05:19 AM

Updated to 1.0.5 and VB versoin 4.2.0 but can't get settings to stick.

I leave everything else default and just want to change the rep spread but whatever value I put in won't stick. When I go back to the usergroup after clicking save the value is empty :(

Ultrapowa 06-27-2015 01:31 PM

Working fine as of today, thanks!


All times are GMT. The time now is 04:59 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.01425 seconds
  • Memory Usage 1,824KB
  • 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
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (38)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete