• Page 1 of 1
  • 1
uCoz Community » uCoz Modules » Statistics » Help (<?if($code$)?>)
Help
IM
Posts: 4
Reputation: 0

Message # 1 | 8:04 PM
how can i make content that can only be viewed by administrator

example

<?if($USERNAME$=Admin)?>View Content><?endif?>
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 2 | 11:11 PM
IM, you can use the username code however I would personally advise the use of the $GROUP_ID$ code. An example is below.

Code
<?if($GROUP_ID$ == "4")?><?endif?>

Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
Sunny
Posts: 9296
Reputation: 456

Message # 3 | 10:34 AM
IM, please continue the discussion about conditional operators in the following thread: http://forum.ucoz.com/forum/37-471-1
I'm not active on the forum anymore. Please contact other forum staff.
uCoz Community » uCoz Modules » Statistics » Help (<?if($code$)?>)
  • Page 1 of 1
  • 1
Search: