Parse error: syntax error

Everything to do with Joomla! 2.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
summerbaby1
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Jun 17, 2015 10:45 am

Parse error: syntax error

Post by summerbaby1 » Wed Jun 17, 2015 10:55 am

Hi ,
I am new to the forum , so sorry for asking for help 1st post but im really a novice and I have tried everything I found. Any help would be most welcome...
Joomla 2.5 2.5.28
siteground-j16-32
Parse error: syntax error, unexpected end of file in /home/thegrosv/public_html/templates/siteground-j16-32/templates.php on line 12

<?if( $sg == 'banner' ):?>
<?php if (JRequest::getVar('view') == 'frontpage'):?>
<!-- SIDE BEGIN --><!-- SIDE END -->
<?php endif?>
<?else:?>
<?php echo $app->getCfg('sitename'); ?>, Powered by <a href="http://joomla.org/" class="sgfooter" target="_blank">Joomla!</a>
$menus = $app->getMenu();
$sgfrontpage = /*SGFRONTPAGE BEGIN*/1/*SGFRONTPAGE END*/;
if ($menu->getActive() == $menu->getDefault() || $sgfrontpage):?>
<!-- FOOTER BEGIN --><a href="http://www.siteground.com/smf-hosting.htm" target="_blank">SMF hosting by SiteGround</a><!-- FOOTER END -->
?php <?endif;?>
<?endif;?>
I think im ok posting this piece of script ,
thank you in advance

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4026
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Parse error: syntax error

Post by itoctopus » Wed Jun 17, 2015 3:24 pm

It's probably better to zip this and attach this to your post since there are some tags that were definitely removed. In any case, you are missing an endif at the end.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter


Locked

Return to “Templates for Joomla! 2.5”