Log in

View Full Version : only admins & mod's can spread Reputation


elmati
05-15-2007, 12:43 PM
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

<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.


<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:
UPDATE user SET reputation=0

done!


must be closed! :)

M-Tuning
05-17-2007, 04:02 PM
Thanks, needed to reset the reputation points.