Page 1 of 11
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
Posts: 3231
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?>

On an indefinite leave of absence.
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 11
Search: