4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: arabse 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
<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">
</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"> </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"> </td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</td>
<td background="omcars_101.jpg">
</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>
-
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.
-
Thanks Alot
V@NO
-
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!
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
-
Please stick with your original post, do not bump up every post that remotely reminds you your issue.
-
Does that disqualify me from any assistance? :cry:
-
Anyone else getting this error may also reference http://www.4homepages.de/forum/index.php?topic=13729.msg73901#msg73901
-
What a fantastic resource this site is. I had this same issue and fixed the problem. Thank you! :mrgreen: