Hi guys, i am having some user related problem in my software, please help me guys, please…
Guys in my system the users are sorted like this:
USER : 0 (type 0)
ADMINISTRATOR : 1 (type 1)
MANAGER : 2 (type 2)
STAFF : 3 (type 3)
Guys the below code shows DELETE POST and UPDATE Details options in the post, according to this code USER wont get DELETE POST option, only ADMIN, MANAGER, STAFF gets the DELETE POST option. i want DELETE POST only for ADMIN, not for USER, STAFF or for MANAGERS,
[php] echo ‘
Ticket #’.str_pad($ticket, 6, ‘0’, STR_PAD_LEFT).(count($rows) <= 1 ? ‘’: ‘(’.(count($rows)-1).’ ‘.(count($rows)==2 ? ‘Reply’: ‘Replies’).’)’).’
’.($user_details[‘type’]== 0 ? ‘’ : ‘’).’
';[/php]
Guys i tried changing this [php]’.($user_details[‘type’]== 0 ? ‘’ : ‘[/php] to this [php]’.($user_details[‘type’]>1 ? '[/php]
after changing this USER and ADMIN is getting DELETE POST option, and STAFF and MANAGER is not getting the option as i wanted, guys please help me with this, i want only DELETE POST option for ADMIN, please guys… help… HELP
Thank you