SMF 1.1.4
I ve installed a mod on my forum (Thumbnail topic mod) and that was the error.
Message error:
Parse error: syntax error, unexpected $end in /home/golfstar/public_html/nw/foro/Sources/MessageIndex.php on line 636
The last line is 636
LainaaloadJumpTo();
// Is Quick Moderation active?
if (!empty($options['display_quick_mod']))
{
$context['can_lock'] = allowedTo('lock_any');
$context['can_sticky'] = allowedTo('make_sticky') && !empty($modSettings['enableStickyTopics']);
$context['can_move'] = allowedTo('move_any');
$context['can_remove'] = allowedTo('remove_any');
$context['can_merge'] = allowedTo('merge_any');
// Set permissions for all the topics.
foreach ($context['topics'] as $t => $topic)
{
$started = $topic['first_post']['member']['id'] == $ID_MEMBER;
$context['topics'][$t]['quick_mod'] = array(
'lock' => allowedTo('lock_any') || ($started && allowedTo('lock_own')),
'sticky' => allowedTo('make_sticky') && !empty($modSettings['enableStickyTopics']),
'move' => allowedTo('move_any') || ($started && allowedTo('move_own')),
'modify' => allowedTo('modify_any') || ($started && allowedTo('modify_own')),
'remove' => allowedTo('remove_any')|| ($started && allowedTo('remove_own')),
[/size]
Could you help me to end the scripting? Thanks really much
you have this line of code:
if (!empty($options['display_quick_mod']))
{
and this line of code:
foreach ($context['topics'] as $t => $topic)
{
...and no where is there listed a closing "}" for either.
When you see that specific error, it is because of this.