Isuldor
25 May 2001, 23:43
I'm trying to write a condition in showthread.php that uses $user[usergroupid] to see what user group the user is in, and if the user is an admin it creates a $post[power] which I've put into the posbit template. Here's what I have so far:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
it's right above
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(postbit_admin is another template I created) I'm not seeing any results so I'm thinking that I can't use $user because it isn't read from the database in this script, which leaves me with the question: is there another way I can check the persons usergroup in showthread.php?
or am I just plain doing it wrong :rolleyes:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
it's right above
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(postbit_admin is another template I created) I'm not seeing any results so I'm thinking that I can't use $user because it isn't read from the database in this script, which leaves me with the question: is there another way I can check the persons usergroup in showthread.php?
or am I just plain doing it wrong :rolleyes: