1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Syntax Error Help

Discussion in 'HTML, Graphics & Programming' started by chris_r, 1 Oct 2009.

  1. chris_r

    Mobster

    Joined: 1 Dec 2003

    Posts: 2,812

    Location: Liverpool

    Message: Syntax error
    Line: 420
    Char: 20
    Code: 0
    URI: http://wehavetomorrow.co.uk/user_home.php

    Can you spot it, cos' i can't? :)

    On and around line 420;

    PHP:
    {* BEGIN BIRTHDAYS*}
    {*-------------------*}    
    <
    img class="right_block_hr" src="./images/hr.gif">
            <
    div class="right_block_content"><b>{lang_print id=1176}</b></div>
            <
    div class="right_block_content">
    <
    div style="width:20px; float:left; margin-right:5px;">
    <
    img src='./images/icons/gift.gif' border='0' class='icon'/>
    </
    div>
    <
    div style="width:295px; float:left;">
      {* 
    SHOW UPCOMING BIRTHDAYS *}
        {
    section name=birthday_loop loop=$birthdays max=20}
          <
    div><a href='{$url->url_create('profile', $birthdays[birthday_loop].birthday_user_username)}'>{$birthdays[birthday_loop].birthday_user_displayname}</a> - {$datetime->cdate("M. d"$datetime->timezone($birthdays[birthday_loop].birthday_date$global_timezone))}</div>
        {
    sectionelse}
          {
    lang_print id=1180}
        {/
    section}
    </
    div>
            </
    div>
    {*-------------------*}    
    {* 
    END BIRTHDAYS*}

    {* 
    BEGIN BIRTHDAYS test*}
    {*-------------------*}    
    <
    img class="right_block_hr" src="./images/hr.gif">
            <
    div class="right_block_content"><b>Forums</b></div>
            <
    div class="right_block_content">
    <
    div style="width:20px; float:left; margin-right:5px;">
    <
    img src='./images/forum/icon_navbar_main.gif' border='0' class='icon'/>
    </
    div>
    <
    div style="width:295px; float:left;">
    <
    br>
    <
    a href="index.php?">Click to Visit!</a>
    </
    div>
            </
    div>
    {*-------------------*}    
     
  2. djkav

    Mobster

    Joined: 28 Aug 2006

    Posts: 2,975

    You need to supply the PHP source code so we can see what line 420 is.

    You are only giving us the interpreted results that the web page sees.
     
  3. chris_r

    Mobster

    Joined: 1 Dec 2003

    Posts: 2,812

    Location: Liverpool

    The only source on that page is from user_home,

    - edit -
     
    Last edited: 2 Oct 2009
  4. chris_r

    Mobster

    Joined: 1 Dec 2003

    Posts: 2,812

    Location: Liverpool

    Actually, just an update.

    It's ot going to be caused by user_home because i noticed the same error appear on all pages.

    Then the file name changes but the line of error stays the same, so it is something more global.

    Any ideas? It could be anything really couldn't it.
     
  5. Dj_Jestar

    Caporegime

    Joined: 18 Oct 2002

    Posts: 28,997

    Location: Back in East London

    Last edited: 2 Oct 2009
  6. chris_r

    Mobster

    Joined: 1 Dec 2003

    Posts: 2,812

    Location: Liverpool

    Looking at the 'global' code, i am being told by dreamweaver that these lines have a syntax error:

    These are the global, core lines. I am quite surprised these shown up as a error, do you see anything wrong? I actually think this might just be dreamweaver being weird as it wont understand the code..maybe?

    Apart from that, the error could be in any one of the many javascript files...or, as a newb...am i lost here and you know what file its in? :p

    Line A:

    PHP:
      <script type="text/javascript">
    <!--
      var 
    SocialEngine = new SocialEngineAPI.Base();
      
      
    // Core
      
    SocialEngine.Core = new SocialEngineAPI.Core();
      
    SocialEngine.Core.ImportSettings({$se_javascript->generateSettings($setting)});
      
    SocialEngine.Core.ImportPlugins({$se_javascript->generatePlugins($global_plugins)});
      
    SocialEngine.RegisterModule(SocialEngine.Core);
      
      
    // URL
      
    SocialEngine.URL = new SocialEngineAPI.URL();
      
    SocialEngine.URL.ImportURLBase({$se_javascript->generateURLBase($url)});
      
    SocialEngine.URL.ImportURLInfo({$se_javascript->generateURLInfo($url)});
      
    SocialEngine.RegisterModule(SocialEngine.URL);
      
      
    // Language
      
    SocialEngine.Language = new SocialEngineAPI.Language();
      
    SocialEngine.RegisterModule(SocialEngine.Language);
      
      
    // User - Viewer
      
    SocialEngine.Viewer = new SocialEngineAPI.User();
      
    SocialEngine.Viewer.ImportUserInfo({$se_javascript->generateUserInfo($user)});
      
    SocialEngine.RegisterModule(SocialEngine.Viewer);
      
      
    // User - Owner
      
    SocialEngine.Owner = new SocialEngineAPI.User();
      
    SocialEngine.Owner.ImportUserInfo({$se_javascript->generateUserInfo($owner)});
      
    SocialEngine.RegisterModule(SocialEngine.Owner);
      
      
    // Back
      
    SELanguage SocialEngine.Language;
    //-->
    </script>