4images Forum & Community
4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: scheffel on March 05, 2006, 09:01:16 AM
-
hallo zusammen. ich habe die version 1.7.2. und als template special_grey gewählt. aber jedesmal wenn ich auf ein bild klicke um es anzusehen kommt folgende fehlermeldung:
"Parse error: syntax error, unexpected '}' in /mnt/be1/08/708/00000019/htdocs/sterndisco1/bilder/includes/template.php(101) : eval()'d code on line 127"
in zeile 127 in der template php steht folgendes:
);
for ($i = 0; isset($regs[$i]); $i++) {
// Fix single quotes
$parsed = preg_replace_callback(
"/=\s*'(.*)".preg_quote($this->start)."([A-Z0-9_]+)".preg_quote($this->end)."(.*)';/Usi",
array(&$this, '_fix_php_quotes'),
$regs[$i][0]
);
bin für jeden ratschlag dankbar.
-
ich glaube special_grey hat eine php-datei (im entpackten zip-Ordner vor special-grey) die muss ins Root der galerie
neben index.php der Galerie
-
Ne, special_grey ist ein template von mantradream das hat keine php-Datei.
Ich habe mit demselben Template das gleiche Problem gehabt (s. ein Post tiefer ;)).
Mit dem grey-templates von vierstra (die die php Datei mit drin haben) gibts keine Probleme.
Hab noch nicht rausgefunden, wo der Fehler im Template liegt ...
-
kann man das Ganze mal sehen??
-
bitteschön ... musst nur auf den thumbnail klicken ... :mrgreen:
http://www.cinematic.de/german/index.php
-
muss irgendwas mit details.html sein. Wenn ich details.html aus einem anderen template einfüge klappt es.
Vielleicht gibts ja irgendeinen Profi mit einem scharfen Auge, der das Problem mit einem Blick erkennt? :mrgreen:
(the parse error must be caused by details.html since it is working with details.html of another template ...
any prof here who has a sharp eye and is able to detect the error at a single glance? :mrgreen:)
{header}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="37" class="sambakiri"><img src="{template_url}/images/spacer.gif" alt="" width="37" height="19" /></td>
<td width="100%"><table width="100%" height="140" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
<td height="113" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td > <div align="right">{category_dropdown_form}
<hr noshade>
</div></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td > {if prev_image_name}{lang_prev_image}<br /> <b><a href="{prev_image_url}">{prev_image_name}</a></b>
{endif prev_image_name} </td>
<td align="right"> {if next_image_name}{lang_next_image}<br />
<b><a href="{next_image_url}">{next_image_name}</a></b>
{endif next_image_name}</td>
</tr>
</table></td>
</tr>
<tr class="row2">
<td > <table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><hr noshade></td>
</tr>
<tr>
<td width="40%"><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />{clickstream}
{if image_is_new} <sup class="new">{lang_new}</sup>{endif
image_is_new} </td>
<td width="60%"><div align="right"><strong>{if user_loggedout}|
<a href="{url_register}"class="box2">{lang_register}</a>
| <a href="{url_lost_password}"class="box2">{lang_lost_password}</a>{endif
user_loggedout}{if user_loggedin}| <a href="{url_lightbox}" class="box2">{lang_lightbox}</a>
| <a href="{url_control_panel}"class="box2"> {lang_control_panel}</a>
| <a href="{url_logout}"class="box2">{lang_logout}</a>{endif
user_loggedin}</strong></div></td>
</tr>
<tr>
<td colspan="2"><hr noshade></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="5">
<tr>
<td><div align="center">{if msg}<b>{msg}<br />
<br />
</b>{endif msg}
<div align="center"> {image} {if admin_links}<br />
{admin_links}<br />
{endif admin_links} <br />
{lightbox_button} {postcard_button} {download_button} {download_zip_button}{if
rate_form}
<div align="center">{rate_form}{endif rate_form}</div>
</div>
</div></td>
</tr>
</table>
<table class="boxline" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td > <table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" colspan="3" class="head1"><div align="left">
<table width="100%" border="0" cellpadding="4" cellspacing="2">
<tr>
<td width="74%"><strong> Title :
{image_name}</strong></td>
<td><strong>{lang_post_comment}</strong></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td colspan="2" valign="top" class="row2"><div align="left">
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td valign="top" class="row1"><b>{lang_description}</b></td>
<td valign="top" class="row1">{image_description}</td>
</tr>
<tr>
<td valign="top" class="row2"><b>{lang_keywords}</b></td>
<td valign="top" class="row2">{image_keywords}</td>
</tr>
<tr>
<td valign="top" class="row1"><b>{lang_date}</b></td>
<td valign="top" class="row1">{image_date}</td>
</tr>
<tr>
<td valign="top" class="row2"><b>{lang_hits}</b></td>
<td valign="top" class="row2">{image_hits}</td>
</tr>
<tr>
<td valign="top" class="row1"><b>{lang_downloads}</b></td>
<td valign="top" class="row1">{image_downloads}</td>
</tr>
<tr>
<td valign="top" class="row2"><b>{lang_rating}</b></td>
<td valign="top" class="row2">{image_rating}
({image_votes} {lang_votes})</td>
</tr>
<tr>
<td valign="top" class="row1"><b>{lang_file_size}</b></td>
<td valign="top" class="row1">{image_file_size}</td>
</tr>
<tr>
<td valign="top" class="row2"><b>{lang_added_by}</b></td>
<td valign="top" class="row2">{user_name_link}</td>
</tr>
<tr>
<td colspan="2" valign="top" ><table width="90%" border="0" align="center">
<tr>
<td width="48%"><div align="left">{if
prev_image_name}{lang_prev_image}<br />
<br />
<a href="{prev_image_url}"><img src="{prev_thumb_file}" width="50" height="50" border="1"></a>
{endif prev_image_name} </div></td>
<td width="52%"><div align="right"> {if
next_image_name}{lang_next_image}<br />
<br />
<a href="{next_image_url}"><img src="{next_thumb_file}" width="50" height="50" border="1"></a>
{endif next_image_name}</div></td>
</tr>
</table></td>
</tr>
</table>
</div></td>
<td width="27%" valign="top" class="row2"><div align="center">
{comment_form} {endif allow_comments} </div></td>
</tr>
</table></td>
</tr>
</table>
{if iptc_info} <br /> <table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="bordercolor"> <table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td class="head1" valign="top" colspan="2">IPTC
Info</td>
</tr>
{iptc_info} </table></td>
</tr>
</table>
{endif iptc_info} {if allow_comments} <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="head1" valign="top"> <table class="boxline"width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td valign="top" class="head1">{lang_author}</td>
<td valign="top" class="head1">{lang_comment}</td>
</tr>
{comments} </table></td>
</tr>
</table>
<br /> <p align="center"> </p></td>
</tr>
<tr>
<td valign="top" > </td>
</tr>
</table>
</td>
</tr>
</table></td>
<td width="37" align="right" class="sambakanan"><img src="{template_url}/images/spacer.gif" alt="" width="37" height="19" /></td>
</tr>
</table></td>
</tr>
</table>
{footer}
-
da fehlt doch ne ganze Datei, ein ganzer Ordner und wenn vorhanden dann an falscher Stelle!
-
Es gibt einen kleinen Fehler im Template details.html:
{comment_form} {endif allow_comments}
Hier fehlt das if-Starttag. Es muss so aussehen:
{if allow_comments} {comment_form} {endif allow_comments}
Entsprechend fehlt hier das Endtag:
{if allow_comments}<br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="head1" valign="top"> <table class="boxline"width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td valign="top" class="head1">{lang_author}</td>
<td valign="top" class="head1">{lang_comment}</td>
</tr>
{comments} </table></td>
</tr>
</table>
Einfach ans Ende des Abschnitts das hier setzen:
{endif allow_comments}
-
PERFEKT!!! Das wars!
Vielen, vielen Dank ... dann kann ich ja jetzt endlich updaten :D
-
Is it possible to put this in English please? I can't get it to work with 1.7.2
-
Theres a small error in the template details.html:
{comment_form} {endif allow_comments}
The if-starttag is missing. It should look like:
{if allow_comments} {comment_form} {endif allow_comments}
There is also an endtag missing:
{if allow_comments}<br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="head1" valign="top"> <table class="boxline"width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td valign="top" class="head1">{lang_author}</td>
<td valign="top" class="head1">{lang_comment}</td>
</tr>
{comments} </table></td>
</tr>
</table>
Just place the following code at the end of the part from above:
{endif allow_comments}
-
Ich habe das gleiche Problem, nur der kleine Feine Unterschied besteht darin, das bei mir es ein wenig anders dargestellt worden ist.
Hier mal der komplette Script in details.html
[qcode]{header}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="37" class="sambakiri"><img src="{template_url}/images/spacer.gif" alt="" width="37" height="19" /></td>
<td width="100%"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#333333">
<tr>
<td height="100%" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td > <div align="right">{category_dropdown_form}
<hr noshade>
</div></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td > {if prev_image_name}{lang_prev_image}<br /> <b><a href="{prev_image_url}">{prev_image_name}</a></b>
{endif prev_image_name} </td>
<td align="right"> {if next_image_name}{lang_next_image}<br />
<b><a href="{next_image_url}">{next_image_name}</a></b>
{endif next_image_name}</td>
</tr>
</table></td>
</tr>
<tr>
<td > <table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><hr noshade></td>
</tr>
<tr>
<td width="54%"><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />{clickstream}
{if image_is_new} <sup class="new">{lang_new}</sup>{endif
image_is_new} </td>
<td width="46%"><div align="right"><strong>{if user_loggedout}|
<a href="{url_register}"class="box">{lang_register}</a>
| <a href="{url_lost_password}"class="box">{lang_lost_password}</a>{endif
user_loggedout}{if user_loggedin}| <a href="{url_lightbox}" class="box2">{lang_lightbox}</a>
| <a href="{url_control_panel}"class="box">Your
{lang_control_panel}</a> | <a href="{url_logout}"class="box">{lang_logout}</a>{endif
user_loggedin}</strong></div></td>
</tr>
<tr>
<td colspan="2"><hr noshade></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="5">
<tr>
<td><div align="center">{if msg}<b>{msg}<br />
<br />
</b>{endif msg}
<div align="center"> {image} {if admin_links}<br />
{admin_links}<br />
{endif admin_links} <br />
{lightbox_button} {postcard_button} {download_button} {download_zip_button}{if
rate_form}
<div align="center">{rate_form}{endif rate_form}</div>
</div>
</div></td>
</tr>
</table>
<table class="boxline" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td > <table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" colspan="3" class="head1"><div align="left">
<table width="100%" border="0" cellpadding="4" cellspacing="2">
<tr>
<td width="74%"><strong> Title :
{image_name}</strong></td>
<td><strong>{lang_post_comment}</strong></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td colspan="2" valign="top" class="row2"><div align="left">
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td valign="top" class="row1"><b>{lang_description}</b></td>
<td valign="top" class="row1">{image_description}</td>
</tr>
<tr>
<td valign="top" class="row2"><b>{lang_keywords}</b></td>
<td valign="top" class="row2">{image_keywords}</td>
</tr>
<tr>
<td valign="top" class="row1"><b>{lang_date}</b></td>
<td valign="top" class="row1">{image_date}</td>
</tr>
<tr>
<td valign="top" class="row2"><b>{lang_hits}</b></td>
<td valign="top" class="row2">{image_hits}</td>
</tr>
<tr>
<td valign="top" class="row1"><b>{lang_downloads}</b></td>
<td valign="top" class="row1">{image_downloads}</td>
</tr>
<tr>
<td valign="top" class="row2"><b>{lang_rating}</b></td>
<td valign="top" class="row2">{image_rating}
({image_votes} {lang_votes})</td>
</tr>
<tr>
<td valign="top" class="row1"><b>{lang_file_size}</b></td>
<td valign="top" class="row1">{image_file_size}</td>
</tr>
<tr>
<td valign="top" class="row2"><b>{lang_added_by}</b></td>
<td valign="top" class="row2">{user_name_link}</td>
</tr>
</table>
</div></td>
<td width="27%" valign="top" class="row2"><div align="center">
{comment_form} {endif allow_comments} </div></td>
</tr>
</table></td>
</tr>
</table>
{if iptc_info} <br /> <table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="bordercolor"> <table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td class="head1" valign="top" colspan="2">IPTC
Info</td>
</tr>
{iptc_info} </table></td>
</tr>
</table>
{endif iptc_info} {if allow_comments} <br />
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="head1" valign="top"> <table class="boxline"width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td valign="top" class="head1">{lang_author}</td>
<td valign="top" class="head1">{lang_comment}</td>
</tr>
{comments} </table></td>
</tr>
</table>
<br /> <p align="center"> </p></td>
</tr>
<tr>
<td valign="top" > </td>
</tr>
</table>
</td>
</tr>
</table></td>
<td width="37" align="right" class="sambakanan"><img src="{template_url}/images/spacer.gif" alt="" width="37" height="19" /></td>
</tr>
</table></td>
</tr>
</table>
{footer}[/qcode]
Es gibt einen kleinen Fehler im Template details.html:
{comment_form} {endif allow_comments}
Hier fehlt das if-Starttag. Es muss so aussehen:
{if allow_comments} {comment_form} {endif allow_comments}
Entsprechend fehlt hier das Endtag:
{if allow_comments}<br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="head1" valign="top"> <table class="boxline"width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td valign="top" class="head1">{lang_author}</td>
<td valign="top" class="head1">{lang_comment}</td>
</tr>
{comments} </table></td>
</tr>
</table>
Einfach ans Ende des Abschnitts das hier setzen:
{endif allow_comments}
Das von dir geschriebe habe ich versucht einzusetzen, zeigte aber dennoch weiterhin Fehler an.
Hier mal der Link http://www.dj-events24.de/kings-pub/galerie/index.php und einfach auf Tumbails klicken, dann weißt vielleicht, was ich damit meine.
Gruß Nyssa und danke vorab für eure Hilfe
-
Hallo,
kann aber nichts von dem fehlenden Code in deiner details.html sehen.
Wo haste diesen eingesetzt :?: :?: :?:
Es fehlt immer noch:
{if allow_comments}
{endif allow_comments}
Gruß
Kurt
-
Hallo,
kann aber nichts von dem fehlenden Code in deiner details.html sehen.
Wo haste diesen eingesetzt :?: :?: :?:
Es fehlt immer noch:
{if allow_comments}
{endif allow_comments}
Gruß
Kurt
Ich habe den Org. Codes von details.html hier reingesetzt gehabt, und die Codes von dir habe ich versucht gehabt, zwischen
[qcode] {endif iptc_info} {if allow_comments} <br />
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="head1" valign="top"> <table class="boxline"width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td valign="top" class="head1">{lang_author}</td>
<td valign="top" class="head1">{lang_comment}</td>
</tr>
{comments} </table></td>
</tr>
</table>
[/qcode] reinzusetzen, und zwar einmal genau hinter {comments}, das was aber trotzdem noch fehler anzeigte und dann habe ich versuch hinter </table> es einzusetzen, da zeigte es auch Fehler an, deshalb bat ich euch um Hilfe.
Gruß Nyssa
PS: Hab den Fehler gefunden. Vor lauter Codes übersieht man doch einiges ;) Somit hats sich erledigt und sag drotzdem Danke euch!!!