FORUMHOME Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • OrionGraphix
    Member
    • Aug 2002
    • 46

    FORUMHOME Problem

    I was editing something in my FORUMHOME today and now when I try to save it, I get an error:

    HTML Code:
    The following error occurred when attempting to evaluate this template:
    
    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/.jello/zsegal22/floridacarclub.com/includes/adminfunctions_template.php(3593) : eval()'d code on line 200
    
    This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
    If I actually hit "Continue" instead of "Go back" I get an error on my site like so:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/.jello/zsegal22/floridacarclub.com/index.php(488) : eval()'d code on line 200


    The FORUMHOME I want to use looks like this:

    HTML Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="Cache-Control" content="no-cache" />
        <!-- end no cache headers -->
        $headinclude
        <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
    </head>
    <body>
    $header
    $navbar
    <!-- peterska2 side column -->
    <table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
    <tr>
    <td valign="top" width="160px">
    <table class="tborder" border="0" cellpadding="$stylevar[cellpadding]" 
    
    cellspacing="$stylevar[cellspacing]" width="100%" align="center">
    $forumhome_sidecolumn_left
    </table>
    </td>
    <td width="10px"></td>
    <td valign="top">
    
    <!-- / peterska2 side column -->
    <!-- / begin PREMIUM SPONSORS TEXT-->
    
    <!-- / end PREMIUM SPONSORS TEXT-->
    
    
    <!-- main -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" 
    
    border="0" width="100%" align="center">
        <if condition="$show['guest']">
        <!-- guest welcome message -->
        <tr>
            <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else 
    
    />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
        </tr>
        <tr>
            <td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else 
    
    />5</if>">
                <phrase 1="faq.php$session[sessionurl_q]" 
    
    2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
            </td>
        </tr>
        <!-- / guest welcome message -->
        </if>
    <tr>
        <td colspan="2" class="tcat">Regional Forums</td>
    </tr>
    <tr>
        <td class="alt1" valign="top" width="1">
            <object type="application/x-shockwave-flash" data="images/map.swf" width="431" 
    
    height="149">
                <param name="movie" value="images/map.swf" />
                <param name="quality" value="high" />
            </object>
        </td>
        <td class="alt2" valign="top">
            <strong>
                Regional Forums<br />
                <br />
                » <a 
    
    href="http://www.floridacarclub.com/forumdisplay.php?f=58">Panhandle</a><br />
                » <a href="http://www.floridacarclub.com/forumdisplay.php?f=59">Northeast 
    
    FL</a><br />
                » <a href="http://www.floridacarclub.com/forumdisplay.php?f=62">Eastcentral 
    
    FL</a><br />
                » <a href="http://www.floridacarclub.com/forumdisplay.php?f=64">Southeast 
    
    FL + The Keys</a><br />
                » <a href="http://www.floridacarclub.com/forumdisplay.php?f=61">Central 
    
    FL</a><br />
                » <a href="http://www.floridacarclub.com/forumdisplay.php?f=60">West 
    
    Central FL</a><br />
                » <a href="http://www.floridacarclub.com/forumdisplay.php?f=63">Southwest 
    
    FL</a>
            </strong>
        </td>
    </tr>
    </table>
    <br />
    
    $forumbits
    
    <!--Remove start here-->
    
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" 
    
    border="0" width="100%" align="center">
            <tr>
                <td class="tcat"><a style="float:$stylevar[right]" href="#top" 
    
    onclick="return toggle_collapse('forumhome_vendors')"><img id="collapseimg_forumhome_vendors" 
    
    src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumhome_vendors}.gif" alt="" border="0" 
    
    /></a>FloridaCarClub.com &hearts;'s its' Sponsored Vendors</td>
            </tr>
            <tbody id="collapseobj_forumhome_vendors" 
    
    style="$vbcollapse[collapseobj_forumhome_vendors]">
            <tr>
                <td class="alt1">
                    <div class="smallfont">
                      <p><a href="http://www.tkqlhce.com/click-3246386-10595221" 
    
    target="_top" onmouseover="window.status='http://www.vehix.com/';return true;" 
    
    onmouseout="window.status=' ';return true;">
    </a></p>
                      <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="98"><a 
    
    href="http://www.kqzyfj.com/click-3246386-10376887" target="_top" 
    
    onmouseover="window.status='http://www.tirerack.com';return true;" onmouseout="window.status=' 
    
    ';return true;"><img src="http://www.tqlkg.com/image-3246386-10376887" width="88" height="31" 
    
    alt="Tirerack.com- Revolutionizing Tire Buying" border="0"/></a></td>
                          <td width="98"><a href="http://www.danase.com"><img 
    
    src="http://floridacarclub.com/vendors/88x31/danase_88x31.jpg" border="0" /></a></td>
                          <td width="98"><a href="http://www.danase.com"><img 
    
    src="http://floridacarclub.com/vendors/88x31/planetsmoothie_88x31.jpg" border="0" /></a></td>
                          <td width="98"><a 
    
    href="http://www.tkqlhce.com/click-3246386-10595221" target="_top" 
    
    onmouseover="window.status='http://www.vehix.com/';return true;" onmouseout="window.status=' 
    
    ';return true;"><img src="http://www.ftjcfx.com/image-3246386-10595221" width="88" height="31" 
    
    alt="Vehix.com" border="0"/></a></td>
                          <td width="98"><p><a 
    
    href="http://www.jdoqocy.com/click-3246386-10624958" target="_top" 
    
    onmouseover="window.status='http://www.cartalking.com';return true;" onmouseout="window.status=' 
    
    ';return true;"><img src="http://www.lduhtrp.net/image-3246386-10624958" width="88" height="31" 
    
    alt="" border="0"/></a></p></td>
                          <td width="98"><a 
    
    href="http://affiliate.buy.com/gateway.aspx?adid=17662&aid=10389733&pid=3246386&sURL=http%3A//www.b
    
    uy.com/" target="_top" onmouseover="window.status='http://www.buy.com';return true;" 
    
    onmouseout="window.status=' ';return true;"><img src="http://www.afcyhf.com/image-3246386-10389733" 
    
    width="88" height="31" alt="88x31 White Logo Banner" border="0"/></a></td>
                          <td width="98"><a 
    
    href="http://www.anrdoezrs.net/click-3246386-10379068" target="_top" 
    
    onmouseover="window.status='http://www.godaddy.com';return true;" onmouseout="window.status=' 
    
    ';return true;"><img src="http://www.ftjcfx.com/image-3246386-10379068" width="88" height="31" 
    
    alt="www.godaddy.com" border="0"/></a></td>
                        </tr>
                      </table>
                      <p>Click <a href="mailto:[email protected]">here</a> to contact 
    
    us with regards to being an official Florida Car Club Vendor.    
                        <br><br>
                      </p>
    <!-- /Insert your vendor information here. -->
                    </div>
                </td>
            </tr>
            </tbody>
            </table>
    <!--Remove end here-->
    
    
    <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" 
    
    width="100%" align="center">
        <tr>
            <td class="tfoot" align="center" colspan="<if 
    
    condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
                <a href="forumdisplay.php?$session[sessionurl]do=markread" 
    
    rel="nofollow">$vbphrase[mark_forums_read]</a>
                <if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
                <a href="showgroups.php$session[sessionurl_q]" 
    
    rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
            </strong></div></td>
        </tr>
    </table>
    $forumhome_markread_script
    <!-- /main -->
    
    <br />
    <br />
    
    <!-- what's going on box -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" 
    
    border="0" style="border-bottom: 0" width="100%" align="center">
        <tr>
            <td class="cat-top">$vbphrase[whats_going_on]</td>
        </tr>
    </table>
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" 
    
    border="0" width="100%" align="center">
    <if condition="$show['loggedinusers']">
    <!-- logged-in users -->
    <tbody>
        <tr>
            <td class="thead" colspan="2">
                <a style="float:$stylevar[right]" href="#top" onclick="return 
    
    toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" 
    
    src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" 
    
    alt="" border="0" /></a>
                <a href="online.php$session[sessionurl_q]" 
    
    rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 
    
    2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
            </td>
        </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_activeusers" 
    
    style="$vbcollapse[collapseobj_forumhome_activeusers]">
        <tr>
            <td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img 
    
    src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" 
    
    /></a></td>
            <td class="alt1" width="100%">
                <div class="smallfont">
                    <div style="white-space: nowrap"><phrase 1="$recordusers" 
    
    2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                    <div>$activeusers</div>
                </div>
            </td>
        </tr>
    </tbody>
    <!-- end logged-in users -->
    </if>
    <tbody>
        <tr>
            <td class="thead" colspan="2">
                <a style="float:$stylevar[right]" href="#top" onclick="return 
    
    toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" 
    
    src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" 
    
    border="0" /></a>
                <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
            </td>
        </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
        <tr>
            <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 
    
    1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
            <td class="alt1" width="100%">
            <div class="smallfont">
                <div>
                    $vbphrase[threads]: $totalthreads,
                    $vbphrase[posts]: $totalposts,
                    $vbphrase[members]: $numbermembers<if 
    
    condition="$show['activemembers']">,
                        <span title="<phrase 
    
    1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_membe
    
    rs]: $activemembers</span>
                    </if>
                </div>
                <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 
    
    2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
            </div>
            </td>
        </tr>
    </tbody>
    <if condition="$show['birthdays']">
    <!-- today's birthdays -->
    <tbody>
        <tr>
            <td class="thead" colspan="2">
                <a style="float:$stylevar[right]" href="#top" onclick="return 
    
    toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" 
    
    src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" 
    
    alt="" border="0" /></a>
                $vbphrase[todays_birthdays]
            </td>
        </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
        <tr>
            <td class="alt2"><a 
    
    href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img 
    
    src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
            <td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
        </tr>
    </tbody>
    <!-- end today's birthdays -->
    </if>
    <if condition="$show['upcomingevents']">
    <tbody>
        <tr>
            <td class="thead" colspan="2">
                <a style="float:$stylevar[right]" href="#top" onclick="return 
    
    toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" 
    
    src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" 
    
    border="0" /></a>
                <if condition="$show['todaysevents']">$vbphrase[todays_events]<else 
    
    /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
            </td>
        </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
        <tr>
            <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img 
    
    src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
            <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
        </tr>
    </tbody>
    </if>
    </table>
    <br />
    <!-- end what's going on box -->
    
    <!-- icons and login code -->
            <table class="tborder" cellpadding="2" cellspacing="1" width="100%" align="center">
            <tr>
                <td class="alt2" align="center"><img 
    
    src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" 
    
    /></td>
                <td class="alt2" align="center">&nbsp; 
    
    $vbphrase[forum_contains_new_posts]</td>
                <td class="alt2" align="center"><img 
    
    src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" 
    
    /></td>
                <td class="alt2" align="center">&nbsp; 
    
    $vbphrase[forum_contains_no_new_posts]</td>
                <td class="alt2" align="center"><img 
    
    src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" 
    
    /></td>
                <td class="alt2" align="center">&nbsp; 
    
    $vbphrase[forum_is_closed_for_posting]</td>
            </tr>
        </table>
    <!-- / icons and login code -->
    <!-- peterska2 side column -->
    </td>
    </tr>
    </table>
    <!-- / peterska2 side column -->
    $footer
    </body>
    </html>
    Reverting to the Default FORUMHOME works...but I have a lot of money and work into this modified FORUMHOME and I know it has to be a simple error because it was working 5 minutes ago.

    Any ideas?

    Thanks ......

  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    Did you try putting the template into a text editor and looking at line 200?

    HTML Code:
    <td class="tfoot" align="center" colspan="<if 
    
    condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
    You've got a line break in the middle of it.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment

    • OrionGraphix
      Member
      • Aug 2002
      • 46

      #3
      Originally posted by Lynne
      Did you try putting the template into a text editor and looking at line 200?

      HTML Code:
      <td class="tfoot" align="center" colspan="<if 
      
      condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
      You've got a line break in the middle of it.
      Fixed it with your help, thanks for the tip - much appreciated.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...