Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question [CODE] Error message

    To whom this may concern.

    I'm not sure if I am posting in the correct section, however I need some help with correcting a problem with some code. Our usual guru is away on holidays and I only have some limited knowledge, however it is having an affect on our website/forum display.

    We are getting the following message:

    Parse error: syntax error, unexpected '}' in /home/weather/public_html/forum/cache/tpl_prosilver_overall_footer.html.php on line 27

    Now I followed through our directory and I'm assuming found line 27, however I cannot for the life of me find the error. Here is the code:

    <li <!--="" if="" s_watching_topic="" --="">class=&quot;icon-unsubscribe&quot;<?php } else { ?>class=&quot;icon-subscribe&quot;<?php } ?>&gt;<a href="<?php echo (isset($this->_rootref['U_WATCH_TOPIC'])) ? $this->_rootref['U_WATCH_TOPIC'] : ''; ?>" title="<?php echo ((isset($this->_rootref['L_WATCH_TOPIC'])) ? $this->_rootref['L_WATCH_TOPIC'] : ((isset($user->lang['WATCH_TOPIC'])) ? $user->lang['WATCH_TOPIC'] : '{ WATCH_TOPIC }')); ?>"><?php echo ((isset($this->_rootref['L_WATCH_TOPIC'])) ? $this->_rootref['L_WATCH_TOPIC'] : ((isset($user->lang['WATCH_TOPIC'])) ? $user->lang['WATCH_TOPIC'] : '{ WATCH_TOPIC }')); ?></a></li><?php } if ($this->_rootref['U_BOOKMARK_TOPIC']) { ?>

    Is anyone able to help?

    Thanks.

  • #2
    New Coder
    Join Date
    Aug 2012
    Location
    New Zealand
    Posts
    52
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Can you give us the code to line 27 please?

  • #3
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes sorry I did wonder if you needed more.

    Here you go:


    <?php if (!defined('IN_PHPBB')) exit; ?><br />
    <center><br />
    <img alt="" style="visibility: hidden; width: 0px; height: 0px" border="0" width="0" height="0" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNjgyMTI4MjQ1NzgmcHQ9MTI2ODIxMjg*MDYyNSZwPTMyMzAwMiZkPW1hcGxvY28mZz*xJm89ZTA4OTUxODIwZjVh/NGExMmI2MDU*ODJkYWM4ZjVlYTA=.gif" /><br />
    <p align="center" class="style1"></p>
    <h4><a title="" href="../../../../../mainpage.html">Link to the AWF weather forecasting services</a></h4>
    <p align="center" class="style1"></p>
    <h4><a href="../../../../../AWFthunderstormforecast.html" target="_blank" class="style2">THE AWF THUNDERSTORM FORECAST</a></h4>
    <center>
    <iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com.au/maps/ms?hl=en&amp;vpsrc=6&amp;ctz=-660&amp;ie=UTF8&amp;msa=0&amp;msid=209306058639215611982.0004af00517f9c33c4c1e&amp;t=m&amp;ll=-36.967449,144.865723&amp;spn=8.423411,14.0625&amp;z=6&amp;output=embed"></iframe></center>
    <div align="center">
    <p>&nbsp;</p>
    <div>
    <p>&nbsp;</p>
    <p align="center" class="style1"></p>
    <h4 class="style2">THE AWF RAINFALL STATS 2012</h4>
    <center>
    <iframe width="900" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.berwickweather.info/awfrainfalllily.htm"> </iframe></center><br />
    <a href="http://twitter.com/AusWeatherForum" target="_blank"><img src="http://www.twitterbuttons.com/upload/images/6bbfe7889cfollow-us-on-twitter.gif" title="Follow us on Twitter!" alt=" " width="75" height="75" /></a><br />
    <div id="page-footer">
    <div class="navbar">
    <div class="inner"><span class="corners-top"><span></span></span>
    <ul class="linklist">
    <li class="icon-home"><a href="<?php echo (isset($this->_rootref['U_INDEX'])) ? $this->_rootref['U_INDEX'] : ''; ?>" accesskey="h"><?php echo ((isset($this->_rootref['L_INDEX'])) ? $this->_rootref['L_INDEX'] : ((isset($user->lang['INDEX'])) ? $user->lang['INDEX'] : '{ INDEX }')); ?></a></li><?php if (! $this->_rootref['S_IS_BOT']) { if ($this->_rootref['S_WATCH_FORUM_LINK']) { ?>

    <li <!--="" if="" s_watching_forum="" --="">class=&quot;icon-unsubscribe&quot;<?php } else { ?>class=&quot;icon-subscribe&quot;<?php } ?>&gt;<a href="<?php echo (isset($this->_rootref['S_WATCH_FORUM_LINK'])) ? $this->_rootref['S_WATCH_FORUM_LINK'] : ''; ?>" title="<?php echo (isset($this->_rootref['S_WATCH_FORUM_TITLE'])) ? $this->_rootref['S_WATCH_FORUM_TITLE'] : ''; ?>"><?php echo (isset($this->_rootref['S_WATCH_FORUM_TITLE'])) ? $this->_rootref['S_WATCH_FORUM_TITLE'] : ''; ?></a></li><?php } if ($this->_rootref['U_WATCH_TOPIC']) { ?>

    <li <!--="" if="" s_watching_topic="" --="">class=&quot;icon-unsubscribe&quot;<?php } else { ?>class=&quot;icon-subscribe&quot;<?php } ?>&gt;<a href="<?php echo (isset($this->_rootref['U_WATCH_TOPIC'])) ? $this->_rootref['U_WATCH_TOPIC'] : ''; ?>" title="<?php echo ((isset($this->_rootref['L_WATCH_TOPIC'])) ? $this->_rootref['L_WATCH_TOPIC'] : ((isset($user->lang['WATCH_TOPIC'])) ? $user->lang['WATCH_TOPIC'] : '{ WATCH_TOPIC }')); ?>"><?php echo ((isset($this->_rootref['L_WATCH_TOPIC'])) ? $this->_rootref['L_WATCH_TOPIC'] : ((isset($user->lang['WATCH_TOPIC'])) ? $user->lang['WATCH_TOPIC'] : '{ WATCH_TOPIC }')); ?></a></li><?php } if ($this->_rootref['U_BOOKMARK_TOPIC']) { ?>

  • #4
    New Coder
    Join Date
    Aug 2012
    Location
    New Zealand
    Posts
    52
    Thanks
    2
    Thanked 4 Times in 4 Posts
    line 27?

    Code:
    <li class="icon-home"><a href="<?php echo (isset($this->_rootref['U_INDEX'])) ? $this->_rootref['U_INDEX'] : ''; ?>" accesskey="h"><?php echo ((isset($this->_rootref['L_INDEX'])) ? $this->_rootref['L_INDEX'] : ((isset($user->lang['INDEX'])) ? $user->lang['INDEX'] : '{ INDEX }')); ?></a></li><?php if (! $this->_rootref['S_IS_BOT']) { if ($this->_rootref['S_WATCH_FORUM_LINK']) { ?>

  • #5
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well according to the program I use that's line 23. I thought line 27 was further down? Sorry I'm not very good at all this.

  • #6
    New Coder
    Join Date
    Aug 2012
    Location
    New Zealand
    Posts
    52
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Can you post line 27 for me please just line 27. Also when posting code stick the [CODE][ /CODE] Tags with out the space

  • #7
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is line 27 from what I can tell:

    Code:
    <li <!--="" if="" s_watching_topic="" --="">class=&quot;icon-unsubscribe&quot;<?php } else { ?>class=&quot;icon-subscribe&quot;<?php } ?>&gt;<a href="<?php echo (isset($this->_rootref['U_WATCH_TOPIC'])) ? $this->_rootref['U_WATCH_TOPIC'] : ''; ?>" title="<?php echo ((isset($this->_rootref['L_WATCH_TOPIC'])) ? $this->_rootref['L_WATCH_TOPIC'] : ((isset($user->lang['WATCH_TOPIC'])) ? $user->lang['WATCH_TOPIC'] : '{ WATCH_TOPIC }')); ?>"><?php echo ((isset($this->_rootref['L_WATCH_TOPIC'])) ? $this->_rootref['L_WATCH_TOPIC'] : ((isset($user->lang['WATCH_TOPIC'])) ? $user->lang['WATCH_TOPIC'] : '{ WATCH_TOPIC }')); ?></a></li><?php } if ($this->_rootref['U_BOOKMARK_TOPIC']) {  ?>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •