Seite 1 von 2

fehler im template ?

Verfasst: 08.02.2003 21:14
von Thoman
bekomme beim bluedim template folgende meldung bei den anderen jedoch geht´s

==> C:\apache\htdocs\includes\template.php(127) : eval()'d code on line 186

beim classic template hab ich ein gelbes ausrufezeichen in der statusleiste
kann es sein das es was mit einem javascript zu tun hat ?

in welcher datei vom classic muss ich da nachsehen ?

Verfasst: 08.02.2003 21:19
von Acid
bluedim... bei welcher Aktion tritt dieser Fehler auf, eventuell dann die jeweilige Datei nochmals in ascII hochladen (wenn Du Dir z.B. die Themen anschauen willst, wäre es die viewtopic_body.tpl).

classic... wird wohl ein JavaScript Fehler sein, wahrscheinlich is dieser in overall_header.tpl oder posting_body.tpl zu finden, je nachdem auf welcher Seite er angezeigt wird.

Verfasst: 08.02.2003 21:26
von Thoman
beim bluedim immer wenn ich ein beitrag lesen möchte schreiben geht aber lesen nicht.

beim classic kommt der fehler auf jeder seite im forum egal wo beim lesen oder sonst überall

gruss

Verfasst: 09.02.2003 04:06
von Thoman
so beim template classic liegts an der overall_header

könnte die sich jemand bitte mal annehmen ich werd net schlau daraus :oops:

Code: Alles auswählen

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="Author" content="webmaster@trushkin.net" />
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/Classic/Classic.css" type="text/css" />
<style type="text/css">
<!--
/* Specifiy background images for selected styles
   This can't be done within the external style sheet as NS4 sees image paths relative to
   the page which called the style sheet (i.e. this page in the root phpBB directory)
   whereas all other browsers see image paths relative to the style sheet. Stupid NS again!
*/
TH, TD.th	{ background-image: url(templates/Classic/images/cell1l.jpg) }
TH.thCornerR	{ background-image: url(templates/Classic/images/cell1r.jpg) }
TD.rowpic	{ background-image: url(templates/Classic/images/cell2r.jpg); background-repeat: repeat-y }
TD.cat,TD.catHead,TD.catSides,TD.catLeft,TD.catBottom { background-image: url(templates/Classic/images/cell2l.jpg) }
TD.catRight { background-image: url(templates/Classic/images/cell2r.jpg) }
TD.bodyline	{ background-image: url(templates/Classic/images/mainbg.jpg) }

/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/Classic/formIE.css");
-->
</style>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
	if ( {PRIVATE_MESSAGE_NEW_FLAG} )
	{
		window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
	}
//-->
</script>
<script type="text/javascript" src="templates/rollout.js"></script>
<!-- END switch_enable_pm_popup -->

<!-- BEGIN switch_enable_greeting_popup -->
<script language="Javascript" type="text/javascript">
<!--
   var greeting_flag = {GREETING_FLAG};

   if( greeting_flag )
   {
      window.open('{U_GREETING_POPUP}', '_phpbbgreeting', 'HEIGHT=225,resizable=yes,WIDTH=400');
   }
//-->
</script>
<!-- END switch_enable_greeting_popup -->

<!-- BEGIN switch_report_popup -->
<script language="Javascript" type="text/javascript">
<!--
	report = window.open('{switch_report_popup.U_REPORT_POPUP}', '_phpbbreport', 'HEIGHT={switch_report_popup.S_HEIGHT},resizable=yes,scrollbars=yes,WIDTH={switch_report_popup.S_WIDTH}');;
	report.focus();
//-->
</script>
<!-- END switch_report_popup -->


<script language="JavaScript" type="text/javascript">
<!--
window.status="{PRIVATE_MESSAGE_INFO}"
// -->
</script>

</head>
<body bgcolor="#F8F8F8" text="#000000" link="#043698" vlink="#003090" onload="PreloadImages();">
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center" class="forumline">
	<tr>
		<td class="bodyline">
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td align="center" width="100%" valign="middle"><br><span class="maintitle"><a href="portal.php">{SITENAME}</a></span><br />
				<span class="subtitle">{SITE_DESCRIPTION}&nbsp;</span>
<br><br>
&laquo;&raquo;
<a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a>
&laquo;&raquo;
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a>
&laquo;&raquo;
<a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a>
&laquo;&raquo;
<a href="{U_PRIVATEMSGS}" class="mainmenu">{PRIVATE_MESSAGE_INFO}</a>
&laquo;&raquo;
<!-- END switch_user_logged_in -->
<a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a>
&laquo;&raquo;
<a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a>
&laquo;&raquo;
<a href="statistics.php" class="mainmenu">Statistik</a>
&laquo;&raquo;
<a href="{U_CALENDAR_MOD}" class="mainmenu">{L_CALENDAR_MOD}</a>
&laquo;&raquo;
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a>
&laquo;&raquo;
<!-- END switch_user_logged_out -->
<br>

&laquo;&raquo;
<b><a href="portal.php" class="mainmenu">Portal</a></b>
&laquo;&raquo;
<b><a href="index.php" class="mainmenu">Index</a></b>
&laquo;&raquo;
<a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a>
&laquo;&raquo;
<a href="rules.php" class="mainmenu">Netiquette</a>
&laquo;&raquo;
<a href="{U_STAFF}" class="mainmenu">{L_STAFF}</a>
&laquo;&raquo;
<a href="smilies_list.php" class="mainmenu">Smilies</a>
&laquo;&raquo;
<a href="{U_ALBUM}" class="mainmenu">{L_ALBUM}</a>
&laquo;&raquo;
<!-- BEGIN switch_report_list -->
<a href="{switch_report_list.U_REPORT_LIST}" class="mainmenu">{switch_report_list.L_REPORT_LIST}</a>
&laquo;&raquo;
<!-- END switch_report_list -->
<!-- BEGIN switch_mod_admin -->
<a href="javascript:void(0);" onClick="window.open('{S_JOIN_CHAT}','{CHATBOX_NAME}','scrollbars=no,width=540,height=450')" class="mainmenu">Chat</a></span>
&laquo;&raquo;
<!-- END switch_mod_admin -->

<br><br>
</span>
</td></tr>
</td>

</table>
<!-- BEGIN switch_enable_board_msg -->
<br><br>
<center>
<table width="95%" border="0" cellpadding="1" cellspacing="1" class="forumline">
  <tr>
	<th colspan="3" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_BOARD_MSG}&nbsp;</th>
  </tr>
  <tr>
	<td class="row1"><center><img src="images/online_offline_lbflash1.gif"></center></td>
	<td class="row1"><span class="gen"><center>{BOARD_MSG}</center></a></span></td>
	<td class="row1"><center><img src="images/online_offline_lbflash1.gif"></center></td>
  </tr>
</table>
		<br />
</center>
<!-- END switch_enable_board_msg -->

		<br />
kann den fehler nicht endecken :roll:

Verfasst: 09.02.2003 13:37
von Acid
Du hast dort 5 JavaScripte drin..

1) PM Popup ..was sicherlich funktioniert.
2) Birthday Popup ..funktioniert dies?
3) Report Popup ..funktioniert dies?
4) Rollout Categories bzw. NewsHack, der die rollout.js benutzt ..hat das noch Gültigkeit ?
5) der Chatlink ..funktionsfähig ?

Ansonsten... doppelklicke ma auf das gelbe Warndreieck und poste die Meldung.

Verfasst: 09.02.2003 14:28
von Thoman
wenn ich auf der profile.php bin kommt folgende meldung:

zeile 54
zeichen 1
objekt erwartet
code 0
http://localhost/profile.php

bin ich auf der index.php kommt

zeile 53
zeichen 1
objekt erwartet
code 0
http://localhost/index.php

wenn ich beiträge lesen will kommt das

zeile 54
zeichen 1
objekt erwartet
code 0
http://localhost/viewforum.php

egal welche seite ich bin.

Code: Alles auswählen

<script type="text/javascript" src="templates/rollout.js"></script

Code: Alles auswählen

<!-- BEGIN switch_mod_admin -->
<a href="javascript:void(0);" onClick="window.open('{S_JOIN_CHAT}','{CHATBOX_NAME}','scrollbars=no,width=540,height=450')" class="mainmenu">Chat</a></span>
&laquo;&raquo;
<!-- END switch_mod_admin -->

Code: Alles auswählen

<!-- BEGIN switch_report_list -->
<a href="{switch_report_list.U_REPORT_LIST}" class="mainmenu">{switch_report_list.L_REPORT_LIST}</a>
&laquo;&raquo;
<!-- END switch_report_list -->

Code: Alles auswählen

<!-- BEGIN switch_enable_greeting_popup -->
<script language="Javascript" type="text/javascript">
<!--
   var greeting_flag = {GREETING_FLAG};

   if( greeting_flag )
   {
      window.open('{U_GREETING_POPUP}', '_phpbbgreeting', 'HEIGHT=225,resizable=yes,WIDTH=400');
   }
//-->
</script>
<!-- END switch_enable_greeting_popup -->

Code: Alles auswählen

<script language="JavaScript" type="text/javascript">
<!--
window.status="{PRIVATE_MESSAGE_INFO}"
// -->
</script>

Code: Alles auswählen

<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
	if ( {PRIVATE_MESSAGE_NEW_FLAG} )
	{
		window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
	}
//-->
</script>
<!-- END switch_enable_pm_popup -->

Code: Alles auswählen

<!-- BEGIN switch_report_popup -->
<script language="Javascript" type="text/javascript">
<!--
	report = window.open('{switch_report_popup.U_REPORT_POPUP}', '_phpbbreport', 'HEIGHT={switch_report_popup.S_HEIGHT},resizable=yes,scrollbars=yes,WIDTH={switch_report_popup.S_WIDTH}');;
	report.focus();
//-->
</script>
<!-- END switch_report_popup -->
habe wie du siehst alles rausgenommen was mit javascript zu tun hat
immer noch die fehlermeldung.
evtl irgendwo eine klammer vergessen ?
habe die original overall_header vom classic template gegen die jetzige mal ausgetauscht kommt kein fehler

hier mal die overall_header nach dem entfernen der javascripts:

Code: Alles auswählen

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="Author" content="webmaster@trushkin.net" />
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/Classic/Classic.css" type="text/css" />
<style type="text/css">
<!--
/* Specifiy background images for selected styles
   This can't be done within the external style sheet as NS4 sees image paths relative to
   the page which called the style sheet (i.e. this page in the root phpBB directory)
   whereas all other browsers see image paths relative to the style sheet. Stupid NS again!
*/
TH, TD.th	{ background-image: url(templates/Classic/images/cell1l.jpg) }
TH.thCornerR	{ background-image: url(templates/Classic/images/cell1r.jpg) }
TD.rowpic	{ background-image: url(templates/Classic/images/cell2r.jpg); background-repeat: repeat-y }
TD.cat,TD.catHead,TD.catSides,TD.catLeft,TD.catBottom { background-image: url(templates/Classic/images/cell2l.jpg) }
TD.catRight { background-image: url(templates/Classic/images/cell2r.jpg) }
TD.bodyline	{ background-image: url(templates/Classic/images/mainbg.jpg) }

/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/Classic/formIE.css");
-->
</style>
</head>
<body bgcolor="#F8F8F8" text="#000000" link="#043698" vlink="#003090" onload="PreloadImages();">
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center" class="forumline">
	<tr>
		<td class="bodyline">
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td align="center" width="100%" valign="middle"><br><span class="maintitle"><a href="portal.php">{SITENAME}</a></span><br />
				<span class="subtitle">{SITE_DESCRIPTION}&nbsp;</span>
<br><br>
&laquo;&raquo;
<a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a>
&laquo;&raquo;
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a>
&laquo;&raquo;
<a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a>
&laquo;&raquo;
<a href="{U_PRIVATEMSGS}" class="mainmenu">{PRIVATE_MESSAGE_INFO}</a>
&laquo;&raquo;
<!-- END switch_user_logged_in -->
<a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a>
&laquo;&raquo;
<a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a>
&laquo;&raquo;
<a href="statistics.php" class="mainmenu">Statistik</a>
&laquo;&raquo;
<a href="{U_CALENDAR_MOD}" class="mainmenu">{L_CALENDAR_MOD}</a>
&laquo;&raquo;
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a>
&laquo;&raquo;
<!-- END switch_user_logged_out -->
<br>
&laquo;&raquo;
<b><a href="portal.php" class="mainmenu">Portal</a></b>
&laquo;&raquo;
<b><a href="index.php" class="mainmenu">Index</a></b>
&laquo;&raquo;
<a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a>
&laquo;&raquo;
<a href="rules.php" class="mainmenu">Netiquette</a>
&laquo;&raquo;
<a href="{U_STAFF}" class="mainmenu">{L_STAFF}</a>
&laquo;&raquo;
<a href="smilies_list.php" class="mainmenu">Smilies</a>
&laquo;&raquo;
<a href="{U_ALBUM}" class="mainmenu">{L_ALBUM}</a>
&laquo;&raquo;
<br><br>
</span>
</td></tr>
</td>

</table>
<!-- BEGIN switch_enable_board_msg -->
<br><br>
<center>
<table width="95%" border="0" cellpadding="1" cellspacing="1" class="forumline">
  <tr>
	<th colspan="3" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_BOARD_MSG}&nbsp;</th>
  </tr>
  <tr>
	<td class="row1"><center><img src="images/online_offline_lbflash1.gif"></center></td>
	<td class="row1"><span class="gen"><center>{BOARD_MSG}</center></a></span></td>
	<td class="row1"><center><img src="images/online_offline_lbflash1.gif"></center></td>
  </tr>
</table>
		<br />
</center>
<!-- END switch_enable_board_msg -->
<br />

Verfasst: 09.02.2003 14:43
von Thoman
nachtrag:

habe sämtliche javascripts wieder eingefügt aber dieses entfernt

Code: Alles auswählen

<body bgcolor="#F8F8F8" text="#000000" link="#043698" vlink="#003090" onload="PreloadImages();">
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center" class="forumline">
   <tr>
      <td class="bodyline">
      <table width="100%" cellspacing="0" cellpadding="0" border="0">
         <tr>
            <td align="center" width="100%" valign="middle"><br><span class="maintitle"><a href="portal.php">{SITENAME}</a></span><br />
            <span class="subtitle">{SITE_DESCRIPTION}&nbsp;</span>
kenne mich weder mit html oder php aus kanns sein das der fehler darin irgendwo liegt ?

Verfasst: 09.02.2003 15:07
von Acid

Code: Alles auswählen

<script language="javascript" type="text/javascript">
<!--

 function changeImages()
 {
  if (document.images)
  {
   for (var i=0; i<changeImages.arguments.length; i+=2)
   {
    document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
   }
  }
 }

 var PreloadFlag = false;

 function newImage(arg)
 {
  if (document.images)
  {
   rslt = new Image();
   rslt.src = arg;
   return rslt;
  }
 }

 function PreloadImages()
 {
  if (document.images)
  {
	// preload all rollover images
	<!-- BEGIN switch_user_logged_out -->
	img0 = newImage('templates/Classic/images/lang_{LANG}/btn_login_on.gif');
	img1 = newImage('templates/Classic/images/lang_{LANG}/btn_register_on.gif');
	<!-- END switch_user_logged_out -->
	<!-- BEGIN switch_user_logged_in -->
	img2 = newImage('templates/Classic/images/lang_{LANG}/btn_pm_on.gif');
	img3 = newImage('templates/Classic/images/lang_{LANG}/btn_profile_on.gif');
	img4 = newImage('templates/Classic/images/lang_{LANG}/btn_groups_on.gif');
	img5 = newImage('templates/Classic/images/lang_{LANG}/btn_logout_on.gif');
	<!-- END switch_user_logged_in -->
	img6 = newImage('templates/Classic/images/lang_{LANG}/btn_faq_on.gif');
	img7 = newImage('templates/Classic/images/lang_{LANG}/btn_search_on.gif');
	img8 = newImage('templates/Classic/images/lang_{LANG}/btn_users_on.gif');
	img9 = newImage('templates/Classic/images/lang_{LANG}/btn_index_on.gif');
	PreloadFlag = true;
  }
  return true;
 }

//-->
</script>
..fehlt in Deiner modifizierten overall_header.tpl (einzufügen nach <!-- END switch_enable_pm_popup -->)

Verfasst: 09.02.2003 15:10
von Acid
Übrigens..
<script type="text/javascript" src="templates/rollout.js"></script>
<!-- END switch_enable_pm_popup -->
..platziere ma die grüne Zeile unter der blauen.

Verfasst: 09.02.2003 15:40
von Thoman
@ ACID [ externes Bild ]

jau das geht das versteh ich nicht wie kann sowas in einem template fehlen wenns ein fertigteil forum war naja egal es geht jedenfalls.

nur noch der fehler im bluedim template vielleicht kriegst das auch noch hin ?
hier nochmal der fehler welcher kommt wenn man versucht ein beitrag zu lesen

Code: Alles auswählen

Parse error: parse error in C:\apache\htdocs\includes\template.php(127) : eval()'d code on line 186