Strats Posted May 26, 2009 Posted May 26, 2009 I have been working on my user profile and done quiet well I think anyway lol But I can't seem to hide something from non staff. I have this code : <TD>Violent Actions : </TD> <TD>[b] [url='vactions.php?userid={$r[']View Actions[/url] [/b]</TD> <TD>Contact Actions : </TD> <TD>[b][url='cactions.php?userid={$r[']View Actions[/url]</TD> </TR> <TR VALIGN='TOP'> <TD>Staff Actions : </TD> <TD>[b] [url='sactions.php?userid={$r[']View Actions[/url] [/b]</TD> </TR> </TABLE>"; It brings up pages separate pages for attack, mail ect And also a separate staff page. I thought that this: if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) would hide the staff page from non staff but it's not working for me or probably not being put in the right place. Can someone put it in right for me please, it's getting on my nerves lol I only want this bit hidden : <TD>Staff Actions : </TD> <TD>[b] [url='sactions.php?userid={$r[']View Actions[/url] [/b]</TD> </TR> </TABLE>"; Quote
AbsentCrisis Posted May 26, 2009 Posted May 26, 2009 Re: Can some help me with one little thing? Something like that: if($ir['user_level'] > 1 { <TD>Staff Actions : </TD> <TD>[b] [url='sactions.php?userid={$r[']View Actions[/url] [/b]</TD> </TR> </TABLE>"; } Quote
Tonka Posted May 27, 2009 Posted May 27, 2009 Re: Can some help me with one little thing? Here you go, AbsentCrisis forgot to close the previous print and open up a new one. <TD>Violent Actions : </TD> <TD>[b] [url='vactions.php?userid={$r[']View Actions[/url] [/b]</TD> <TD>Contact Actions : </TD> <TD>[b][url='cactions.php?userid={$r[']View Actions[/url]</TD> </TR> <TR VALIGN='TOP'>" if($ir['user_level'] > 1 { print "<TD>Staff Actions : </TD> <TD>[b] [url='sactions.php?userid={$r[']View Actions[/url] [/b]</TD> </TR> </TABLE>"; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.