SimplePortal
Customization => Themes and Graphics => Topic started by: Wolphard on August 07, 2010, 08:08:46 AM
-
Hi folks. I've been busy installing SMF and Simple Portal for 2 of my sites. Editing the BlackBox theme was easy enough, but with the Bermena theme I'm in over my head. Keep getting a "Template Parse Error" on line 474
<li class="' , global $modSettings; $current_action = $modSettings['sp_portal_mode'] == 3 && empty($context['standalone']) && empty($context['disable_sp']) ? 'forum' : 'home'; ? 'current' : '' , '"><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
Would anyone mind taking a look? Thanks in advance. :)
(I attached the file I've been working in. If you need the original, please gimme a shout.)
-
I'd like to modestly bump this thread back to the top of the list, since I would really appreciate some help with it. :)
-
sorry for the wait, please try this one
-
Thanks, but that gave me the following error.
Parse error: syntax error, unexpected '?' in .../Themes/bermena_/index.template.php on line 478
469: }
470:
471: // Start of the tab section.
472: echo '
473: <ul>';
474:
475: // Show the default [home] button.
476: global $modSettings, $context;
477: echo ($current_action=='home' || $context['browser']['is_ie4']) ? '' : '' , '
478: <li class="' , $current_action = $modSettings['sp_portal_mode'] == 3 && empty($context['standalone']) && empty($context['disable_sp']) ? 'forum' : 'home'; ? 'current' : '' , '"><a href="', $scripturl, '">' , $txt[103] , '</a></li>';479:
480: // Show the [forum] button.
481: global $modSettings, $context;
482: echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '' : '' , '
-
Try this out, perhaps.
-
Another parse syntax error I'm afraid. :|
465: $last = 'last';
466: }
467:
468: // Start of the tab section.
469: echo '
470: <ul>';
471:
472: // Show the default [home] button.
473: echo ($current_action=='home' || $context['browser']['is_ie4']) ? '' : '' , '
474: <li class="' , $current_action = $modSettings['sp_portal_mode'] == 3 && empty($context['standalone']) && empty($context['disable_sp']) ? 'forum' : 'home'; ? 'current' : '' , '"><a href="', $scripturl, '">' , $txt[103] , '</a></li>';475:
476: // Show the [forum] button.
477: echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '' : '' , '
478: <li class="' , $current_action == 'help' ? 'current' : '' , '"><a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">' , $txt['sp-forum'] , '</a></li>';
-
The file tested fine, there is no parse error in the syntax.
Are you sure the entire file is being uploaded?
-
Yeah. I'm testing it on my forum, as well as a local server. Both give the same error. When I use the Bermena theme it loads, but when I replace it with the new file it says:
Template Parse Error!
There was a problem loading the \Themes\bermena_/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------
syntax error, unexpected '?'
I completely removed and reinstalled the theme as well. Same problem.
-
Try making the change to the file one line at a time, to narrow it down to the line with the problem.