vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   only admins & mod's can spread Reputation (https://vborg.vbsupport.ru/showthread.php?t=147306)

elmati 05-15-2007 12:43 PM

only admins & mod's can spread Reputation
 
Theres a way to limit the sprend of reputation to admins and mod only?

im searchin' on admincp -> groups, but only say user can give negative reputation (yes-no)...


Well, thx in advance guys :)

ill explain a little...


how can i display the reputation link just for admins & mods?

i mean, just admins & mods can give reputation to others users... the users cant see the link, so cant give reputation...

theres is a way?

im using this conditional to hide reputation of admins, mods and smods

PHP Code:

<if condition="$show['reputation'] AND !is_member_of($post, 5, 6, 7)">
reputation
</if> 


but, i need show the reputation link only for admins other users cant give reputation...


i hope yall understand me

thx in advance

snakes1100 05-15-2007 02:42 PM

If you only want the link visible to a cetain usergroup and you have disabled the other groups from being able to give rep points, you can use this to only show the link to who you want.

Code:

<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))">
</if>


elmati 05-15-2007 02:51 PM

hey thanks
i think its work! :)


thanks m8!

snakes1100 05-15-2007 03:02 PM

Your Welcome.

I use that on a few boards to hide certain links from mods & regular users.

elmati 05-15-2007 03:03 PM

now, i cant find how to reset reputation to 0 :(

anyone knows?

snakes1100 05-15-2007 03:19 PM

I don't believe there is a way to reset it to 0 in the admincp, i dont use rep, most likely you need to change it thru the db, use phpmyadmin and reset the the rep fields.

elmati 05-15-2007 05:06 PM

yes, but when i recalculate reputation from update counters the reputation points came again :)

what fields i need to reset?

i run this query:
PHP Code:

UPDATE user SET reputation=

done!


must be closed! :)

M-Tuning 05-17-2007 04:02 PM

Thanks, needed to reset the reputation points.


All times are GMT. The time now is 08:12 AM.

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.01105 seconds
  • Memory Usage 1,722KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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