Function to give permissions

Started by ne.miguelito, March 02, 2009, 03:02:59 PM

Previous topic - Next topic

ne.miguelito

      if ($context['user']['is_admin'])
         echo '<a title="'.$txt['sbox_KillShout'].'" class="Kill" onclick="return killYesNo();" href="sboxDB.php?action=kill&kill='.$row['id'].'"><span style="color: red;"><b>[X]</b></span></a>&nbsp;';



I have this function that allows to the admin delete messages from the shoutbox. I want to give this permission to Global Moderators and Moderators. Can someone help me, the best is that If I can put a array with IP...

Any ideas how to do this?

Best regards.

Tyrsson

It would be best to ask this in the support topic for this mod. The mod author could tell faster than anyone since they know their code. Just click on the comment and support for this mod from the mod download page.
PM at your own risk, some I answer, if they are interesting, some I ignore.

ne.miguelito

I have installed the mod with the Version 1.04 and I want to put more people moderating the shout.

The topic doesn't have help from the author but I will write a reply on the topic.

Regards.

onepiece

If that is the only check, which I doubt it is...

Code (Find) Select
if ($context['user']['is_admin'])

Code (Replace) Select
global $user_info;
if (count(array_intersect(array(1,2), $user_info['groups'])) > 0)


For further support, you will have to use the support topic of the mod as Tyrsson noted.

Advertisement: