Jump to content

Recommended Posts

having a bit of trouble when it comes to move split or lock a topic on my phpbb board i keep getting this error

[CODE]Parse error: syntax error, unexpected $end in /home/www/evolutionrpm.co.uk/Forum/modcp.php on line 1368[/CODE]




a txt file of modcp.php can be found [URL=http://"http://www.evolutionrpm.co.uk/forum/modcp.txt"]HERE[/URL]


any help is greatly appreciated as im a total noob to php
Link to comment
https://forums.phpfreaks.com/topic/36098-parse-error-syntax-error-unexpected-end/
Share on other sites

The closing tags should always be [color=green]?>[/color]

If the php_ini settings allow, you can use short tags to open php, so you can use [color=green]<?[/color] instead of [color=green]<?php[/color] but it's never advisable as it's installation specific and makes the code less portable.

Regards
Huggie
Cant you go over the code yourself and find your missing braces? This is not a "do it for me" forum. You may go to the freelancing forum and ask someone there to do it for you...

[code]else
{
if ( $delete )
{
$mode = 'delete';
}
elseif ( $move )
{
$mode = 'move';
}
elseif ( $lock )
{
$mode = 'lock';
}
elseif ( $unlock )
{
$mode = 'unlock';
}

// MOD MODCP EXTENSION BEGIN
    elseif ( $sticky )
    {
        $mode = 'sticky';
    }
    elseif ( $announce )
    {
        $mode = 'announce';
    }
    elseif ( $normalise )
    {
        $mode = 'normalise';
    }
    // MOD MODCP EXTENSION END

else
{
$mode = '';
}
}[/code]

Orio.
or you can try <a href="http://www.mpsoftware.dk/downloads.php">PHP Designer 2007 (Free Version)</a> its a very nice editor which when you open something like a curly brace it automatically writes the closing brace for you, saves you forgetting
This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.