Jump to content
MakeWebGames

Recommended Posts

Posted

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>";
Posted

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>";
}
Posted

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>";

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...