SimplePortal

Customization => Themes and Graphics => Topic started by: Wolphard on August 07, 2010, 08:08:46 AM

Title: Need help modding the Bermena theme
Post 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

Code: [Select]
<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.)
Title: Re: Need help modding the Bermena theme
Post by: Wolphard on August 11, 2010, 02:10:47 PM
I'd like to modestly bump this thread back to the top of the list, since I would really appreciate some help with it.  :)
Title: Re: Need help modding the Bermena theme
Post by: 130860 on August 11, 2010, 06:34:07 PM
sorry for the wait, please try this one
Title: Re: Need help modding the Bermena theme
Post by: Wolphard on August 12, 2010, 06:34:50 AM
Thanks, but that gave me the following error.

Code: [Select]
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']) ? '' : '' , '
Title: Re: Need help modding the Bermena theme
Post by: ccbtimewiz on August 13, 2010, 12:05:29 AM
Try this out, perhaps.
Title: Re: Need help modding the Bermena theme
Post by: Wolphard on August 13, 2010, 08:52:34 AM
Another parse syntax error I'm afraid. :|

Code: [Select]
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>';
Title: Re: Need help modding the Bermena theme
Post by: ccbtimewiz on August 13, 2010, 12:49:46 PM
The file tested fine, there is no parse error in the syntax.

Are you sure the entire file is being uploaded?
Title: Re: Need help modding the Bermena theme
Post by: Wolphard on August 13, 2010, 01:53:40 PM
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:

Code: [Select]
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.
Title: Re: Need help modding the Bermena theme
Post by: AngelinaBelle on August 19, 2010, 10:26:18 AM
Try making the change to the file one line at a time, to narrow it down to the line with the problem.
 
SimplePortal 2.3.8 © 2008-2024, SimplePortal