Jump to content
MakeWebGames

Recommended Posts

Posted

Hello, I need help with the staff application mod.

 

Parse error: syntax error, unexpected '>' in /home/******/public_html/smenu.php on line 14

 

 

{
print "
<tr><td> [url='staff.php?action=basicset']Basic Settings[/url]</td></tr>
<tr><td> [url='staff.php?action=announce']Add Announcement[/url]</td></tr>"
<tr><td> [url='staff.php?action=lstaffaps&lock=1']Lock Staff Apps[/url]

<tr><td> [url='staff.php?action=lstaffaps&lock=2']Unlock Staff Apps[/url]

<tr><td> [url='staff.php?action=staffaps']Staff Applications[/url]
;
}
Posted

Re: Staff application

2 problems i see you ened the print on the line

<tr><td> [url='staff.php?action=announce']Add Announcement[/url]</td></tr>"

and if its V2 the links are wrong heres the proper ones

 

{
print "
> [url='staff.php?action=basicset']Basic Settings[/url]

> [url='staff.php?action=announce']Add Announcement[/url]

> [url='staff.php?action=lstaffaps&lock=1']Lock Staff Apps[/url]

> [url='staff.php?action=lstaffaps&lock=2']Unlock Staff Apps[/url]

> [url='staff.php?action=staffaps']Staff Applications[/url]
";
}
Posted

Re: Staff application

The only problem was a missing ". But try this;

 

{
echo '
<tr><td> <a href=staff.php?action=basicset>Basic Settings</a></td></tr>
<tr><td> <a href=staff.php?action=announce>Add Announcement</a></td></tr>
<tr><td> <a href=staff.php?action=lstaffaps&lock=1>Lock Staff Apps</a>

<tr><td> <a href=staff.php?action=lstaffaps&lock=2>Unlock Staff Apps</a>

<tr><td> <a href=staff.php?action=staffaps>Staff Applications</a>
';
}
Posted

Re: Staff application

 

The only problem was a missing ". But try this;

 

{
echo '
<tr><td> <a href=staff.php?action=basicset>Basic Settings</a></td></tr>
<tr><td> <a href=staff.php?action=announce>Add Announcement</a></td></tr>
<tr><td> <a href=staff.php?action=lstaffaps&lock=1>Lock Staff Apps</a>

<tr><td> <a href=staff.php?action=lstaffaps&lock=2>Unlock Staff Apps</a>

<tr><td> <a href=staff.php?action=staffaps>Staff Applications</a>
';
}

 

 

Thanks, this worked great :)

Posted

Re: Staff application

The Origingal

 

{
print "
<tr><td> [url='staff.php?action=basicset']Basic Settings[/url]</td></tr>
<tr><td> [url='staff.php?action=announce']Add Announcement[/url]</td></tr>"
<tr><td> [url='staff.php?action=lstaffaps&lock=1']Lock Staff Apps[/url]

<tr><td> [url='staff.php?action=lstaffaps&lock=2']Unlock Staff Apps[/url]

<tr><td> [url='staff.php?action=staffaps']Staff Applications[/url]
;
}

 

Yours

 

{
echo '
<tr><td> <a href=staff.php?action=basicset>Basic Settings</a></td></tr>
<tr><td> <a href=staff.php?action=announce>Add Announcement</a></td></tr>
<tr><td> <a href=staff.php?action=lstaffaps&lock=1>Lock Staff Apps</a>

<tr><td> <a href=staff.php?action=lstaffaps&lock=2>Unlock Staff Apps</a>

<tr><td> <a href=staff.php?action=staffaps>Staff Applications</a>
';
}

 

if you look carefully at the original he didnt miss the " he added it on the 2nd line

<tr><td> [url='staff.php?action=announce']Add Announcement[/url]</td></tr>"

so all you needed to do was move the " to before the ;

Posted

Re: Staff application

 

The Origingal

 

{
print "
<tr><td> [url='staff.php?action=basicset']Basic Settings[/url]</td></tr>
<tr><td> [url='staff.php?action=announce']Add Announcement[/url]</td></tr>"
<tr><td> [url='staff.php?action=lstaffaps&lock=1']Lock Staff Apps[/url]

<tr><td> [url='staff.php?action=lstaffaps&lock=2']Unlock Staff Apps[/url]

<tr><td> [url='staff.php?action=staffaps']Staff Applications[/url]
;
}

 

Yours

 

{
echo '
<tr><td> <a href=staff.php?action=basicset>Basic Settings</a></td></tr>
<tr><td> <a href=staff.php?action=announce>Add Announcement</a></td></tr>
<tr><td> <a href=staff.php?action=lstaffaps&lock=1>Lock Staff Apps</a>

<tr><td> <a href=staff.php?action=lstaffaps&lock=2>Unlock Staff Apps</a>

<tr><td> <a href=staff.php?action=staffaps>Staff Applications</a>
';
}

 

if you look carefully at the original he didnt miss the " he added it on the 2nd line

<tr><td> [url='staff.php?action=announce']Add Announcement[/url]</td></tr>"

so all you needed to do was move the " to before the ;

Yes, but now he is using echo instead of print, this is more effective :) It works doesn't it? So there is no problem...

Posted

Re: Staff application

 

yer it wroks but i was proving a point

It wasn't a point as no-one was questioning your way of doing thing's, it was just simply that. Your way of doing it. :-)

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...