TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 110
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 74
  • Total: 74

help with a code

Started by CaptnSolo, August 15, 2007, 06:08:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CaptnSolo

i was wondering how do one thing

you know how the admin button only show up for the Administratorsi was wondering how would i make other button only seen by Administrator and Global Moderators.

link to  index.php?action=upload

IchBin

if ($context['user']['is_admin'] && $user_info['groups'] == 2)
echo ' your button ';


The number 2 would have to be changed to whatever group id number you want. Global Moderator is usually 2 though.

CaptnSolo


This website is proudly hosted on Crocweb Cloud Website Hosting.