Author Topic: problem with the template after upgrading  (Read 8602 times)

0 Members and 1 Guest are viewing this topic.

Offline arabse

  • Pre-Newbie
  • Posts: 4
    • View Profile
problem with the template after upgrading
« on: May 28, 2006, 03:50:39 AM »
i installed 4img 1.6 and i make my own template

after i've upgrade to 1.7.2

i got


Parse error: parse error, unexpected '}' in /home/odesign/public_html/omcars/mc/includes/template.php(101) : eval()'d code on line 161


when i try the default template it works fine ,

i try to modfiy my template as in new home.html template , i couldn't make it right

=====================

this is my template forum home template
Code: [Select]

  <center>
<table id="Table_01" width="800" height="601" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="3">
<img width="1" height="300" alt=""></td>
<td colspan="6">
<img src="omcars_02.jpg" width="798" height="134" alt=""></td>
</tr>
<tr>
<td>
<img src="omcars_03.jpg" width="30" height="32" alt=""></td>
<td>
<img src="omcars_04.jpg" width="21" height="32" alt=""></td>
<td background="omcars_05.jpg">
<img width="1" height="32" alt=""></td>
<td>
<img src="omcars_06.jpg" width="53" height="32" alt=""></td>
<td colspan="2">
<img src="omcars_07.jpg" width="208" height="32" alt=""></td>
</tr>
<tr>
<td background="omcars_088.jpg">
<img src="omcars_08.jpg" width="1" height="434" alt="">
     
        </td>
<td colspan="4" bgcolor="#FFFFFF">
            <table border="0" width="100%" height="293" cellspacing="0" cellpadding="0">
              <tr><div>
                <td width="113%" height="281" rowspan="2" valign="top">
                  <table border="0" width="100%" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="100%">
                  <p align="center">
                  <span class="title">{site_name}</span>
  <br />
  <hr size="1" />
                  <p align="center">
                  {if categories}
                  <table width="450" border="0" cellspacing="0" cellpadding="1">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="3">
                          <tr>
                            <td class="head1" valign="top">
                              <p align="center">{lang_categories}</p>
                            </td>
                          </tr>
                          <tr>
                            <td class="row2" valign="top">
                              <p align="center">{categories}</p>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                  <p align="center">
                  <br />
                  {endif categories}{lang_site_stats}<br />
                  <br />
                  {if msg}<b>{msg}</b><br /><br />{endif msg}
                  <table width="450" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr>
                            <td class="head1" valign="top">{lang_new_images}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td class="head1">{new_images}</td>
                    </tr>
                  </table>
                  <br />
{whos_online}
  <br />
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td>{category_dropdown_form}</td>
                      <td align="right">{setperpage_dropdown_form}</td>
                    </tr>
                  </table>
</td>
                    </tr>
                  </table>
                </td>
                <td width="87%" height="37" valign="top"><img border="0" src="menu.jpg" align="right" width="218" height="222"></td>
              </tr>
              <tr>
                <td width="87%" bgcolor="#FFFFFF" height="244" valign="top">
                  <div align="center">
                    <center>
                    <table border="0" cellpadding="0">
                      <tr>
                        <td width="100%" valign="top" align="right">
                          <div style="width: 210; height: 120"><table id="Table_01" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="images/i_01.jpg" width="200" height="19" alt=""></td>
  </center>
<td>
<img src="images/i_02.jpg" width="12" height="19" alt=""></td>
</tr>
  <center>
                    <center>
<tr>
<td>
            <p align="center">{user_box}</p>
        </td>
<td background="images/i_04.jpg">
            &nbsp;</td>
</tr>
<tr>
<td>
<img src="images/i_05.jpg" width="200" height="19" alt=""></td>
<td>
<img src="images/i_06.jpg" width="12" height="19" alt=""></td>
</tr>
<tr>
<td>
            <p align="center">{random_image}</p>
            <p align="center">&nbsp;</p>
        </td>
<td background="images/i_04.jpg">
        </td>
</tr>
</table>

                          </center></center>
                          </div>
</td>
                      </tr>
                      <tr>
                        <td width="100%" valign="top">              <div align="center">
                <center>
              <table border="0" cellspacing="0" cellpadding="1">
                <tr valign="top">
                  <td align="center"><a href="{url_search}" class="smalltext"><b><font size="4">{lang_advanced_search}</font></b></a></td>
                </tr>
              </table>
                </center>
              </div></td>
                      </tr>
                      <tr>
                        <td width="100%" valign="top">{endif random_image}
                  <p align="center">
                 
                  </p>
                          <p align="center">&nbsp;</td>
                      </tr>
                    </table>
                    </center>
                  </div>
                </td>
              </tr>
            </table>
        </td>
<td background="omcars_101.jpg">
            &nbsp;</td>
</tr>
<tr>
<td>
<img src="spacer.gif" width="2" height="1" alt=""></td>
<td>
<img src="spacer.gif" width="30" height="1" alt=""></td>
<td>
<img src="spacer.gif" width="21" height="1" alt=""></td>
<td>
<img src="spacer.gif" width="486" height="1" alt=""></td>
<td>
<img src="spacer.gif" width="53" height="1" alt=""></td>
<td>
<img src="spacer.gif" width="174" height="1" alt=""></td>
<td>
<img src="spacer.gif" width="34" height="1" alt=""></td>
</tr>
</table>

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: problem with the template after upgrading
« Reply #1 on: May 28, 2006, 11:28:35 AM »
You'll have to check every template for conditional tags: {if ..} and {endif ..}
The count of {if ..} must be equal to count of {endif ..}
if you miss at least one of them, you'll get that error.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline arabse

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: problem with the template after upgrading
« Reply #2 on: May 29, 2006, 12:01:53 AM »
Thanks Alot
V@NO

Offline flybywire44

  • Newbie
  • *
  • Posts: 10
  • Integrity: All We Are or Are Not
    • View Profile
Re: problem with the template after upgrading
« Reply #3 on: July 13, 2006, 02:36:30 AM »
Just upgraded to 1.7.2... I've reuploaded all of my php files in ASCII mode and I'm still getting this error...  :| Help!

Quote
Parse error: syntax error, unexpected $end in /home/fredbro/public_html/photo/includes/template.php(101) : eval()'d code on line 164

www.fredbrown.com/photo is my image gallery

Please also see this Topic!
http://www.4homepages.de/forum/index.php?topic=13143.0

Thank you very much,
-Fred
Alenia Aeronautica ATR-72-212
[/url]
Office: Cockpit
View: Ever Changing

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: problem with the template after upgrading
« Reply #4 on: July 13, 2006, 06:21:40 AM »
Please stick with your original post, do not bump up every post that remotely reminds you your issue.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline flybywire44

  • Newbie
  • *
  • Posts: 10
  • Integrity: All We Are or Are Not
    • View Profile
Re: problem with the template after upgrading
« Reply #5 on: July 13, 2006, 09:00:52 AM »
Does that disqualify me from any assistance? :cry:
Alenia Aeronautica ATR-72-212
[/url]
Office: Cockpit
View: Ever Changing

Offline flybywire44

  • Newbie
  • *
  • Posts: 10
  • Integrity: All We Are or Are Not
    • View Profile
Re: problem with the template after upgrading
« Reply #6 on: July 19, 2006, 12:24:57 AM »
Anyone else getting this error may also reference http://www.4homepages.de/forum/index.php?topic=13729.msg73901#msg73901
Alenia Aeronautica ATR-72-212
[/url]
Office: Cockpit
View: Ever Changing

Offline NicholasP

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: problem with the template after upgrading
« Reply #7 on: August 01, 2006, 10:15:51 PM »
What a fantastic resource this site is. I had this same issue and fixed the problem. Thank you!  :mrgreen: