Seite 1 von 1

phpBB Cache murkst rum :)

Verfasst: 17.09.2007 16:38
von Sanchez17
Hola,

ich bin dabei mein kleines Projekt Fussball Live! neu zu programmieren und wollte vohin mal das Testen, was bisher programmiert wurde.

Dabei murkst aber der phpBB Cache mit folgender Meldung auf:

Parse error: syntax error, unexpected '=' in /home/.sites/41/site195/web/cache/tpl_BlueLights.stream_ucp_body.php on line 62
Die besagte Zeile in Cach Datei sieht so aus:

Code: Alles auswählen

<tr>th>Datum & Uhrzeit</th><th>Sportart</th><th>Nation</th><th>Spiel</th><th>Nation</th><th>Liga/ Tunier</th><th>Sender</th></tr>

	<?php

$index.top_count = ( isset($index_item['top.']) ) ? sizeof($index_item['top.']) : 0;    <--(dies ist die Zeile 62)
for ($index.top_i = 0; $index.top_i < $index.top_count; $index.top_i++)
{
 $index.top_item = &$index_item['top.'][$index.top_i];
 $index.top_item['S_ROW_COUNT'] = $index.top_i;
 $index.top_item['S_NUM_ROWS'] = $index.top_count;

?>

	<?php echo isset($top_item['LIST']) ? $top_item['LIST'] : ''; ?>

	<?php

} // END index.top

if(isset($index.top_item)) { unset($index.top_item); }

?>
</table>
<table border="0" cellpadding="3" cellspacing="1" width="100%">
Der oben angezeigte Auschnitt sieht in der TPL datei so aus:

Code: Alles auswählen

<table class="forumline" border="0" cellpadding="3" cellspacing="1" width="100%">
<tr>th>Datum & Uhrzeit</th><th>Sportart</th><th>Nation</th><th>Spiel</th><th>Nation</th><th>Liga/ Tunier</th><th>Sender</th></tr>

	<!-- BEGIN index.top -->

	{index.top.LIST}

	<!-- END index.top -->

</table>
<table border="0" cellpadding="3" cellspacing="1" width="100%">
Der dazu gehöhrige PHP auschnitt ist:

Code: Alles auswählen

		while( $row = $db->sql_fetchrow($result) )
      	{

		$sportart = $row['sportart'];
		$tunier = $row['tunier'];

		if(empty($row['flagge1']))
  			{
  			$flagge1 = 'na.png';
  			} else {
  			$flagge1 = $row['flagge1'];
  			}
		if(empty($row['flagge2']))
  			{
  			$flagge2 = 'na.png';
  			} else {
  			$flagge2 = $row['flagge2'];
  			}

  		$template->assign_block_vars('index.top',array(
			'LIST' => '
<tr>
<td class="row2" align="center"><span class="gensmall"><font color="darkred"><b>'.$row['datum'].' | '.$row['zeit1'].':'.$row['zeit2'].'</b></font>
</span>
</td>
<td class="row2" align="center"><span class="gensmall"><font color="darkgreen"><b>'.$sportart.'
</b></font></span>
</td>
<td class="row2" align="center"><img src="images/flags/new/'.$flagge1.'" />
</td> 
<td class="row2"align="center" ><span class="gensmall"><font color="black"><b>'.$row['team1'].' vs. '.$row['team2'].'
</b></font></span>
</td>
<td class="row2" align="center"><img src="images/flags/new/'.$flagge2.'" />
</td><td class="row2" align="center"> <span class="gensmall"><font color="darkblue"><b>'.$tunier.'
</b></font></span>
</td>
<td class="row1" align="center"><span class="gensmall"><a href="?mode=ucp&c=4&t='.$row['id'].'&l='.$sprache.'"><i>Infos <b>ausklappen</b></i></a>
</span>
</td>
</tr>'));

		} // While

Kann mir da irgend jemand helfen?Bis jetzt hatte ich noch nie ein Cach Problem und konnte nichts durch die Suche was finden, was mir helfen könnte.

Bin daher ziemlich ratlos :-?

Verfasst: 17.09.2007 17:08
von Asmodiel
in firefox: strg+shift+del drücken, alle haken raus, außer cache und auf ok.

Verfasst: 17.09.2007 17:15
von S2B
Asmodiel hat geschrieben:in firefox: strg+shift+del drücken, alle haken raus, außer cache und auf ok.
Damit leerst du den Cache auf Client-Seite, was mit dem Problem rein gar nichts zu tun hat. :roll:

@Sanchez17: Das Problem ist imho, dass du innerhalb eines Block-Namens den . verwendest. :wink:

Verfasst: 17.09.2007 17:38
von Sanchez17
S2B hat geschrieben:[
@Sanchez17: Das Problem ist imho, dass du innerhalb eines Block-Namens den . verwendest. :wink:
Wonderful :D

Genau das war es, vielen Dank.

Für die Leute, die mal das gleiche Problem haben:

Statt:

Code: Alles auswählen

<!-- BEGIN index -->
<table class="forumline" border="0" cellpadding="3" cellspacing="1" width="100%">
<tr>th>Datum & Uhrzeit</th><th>Sportart</th><th>Nation</th><th>Spiel</th><th>Nation</th><th>Liga/ Tunier</th><th>Sender</th></tr>

   <!-- BEGIN index.top -->

   {index.top.LIST}

   <!-- END index.top -->

</table>
<table border="0" cellpadding="3" cellspacing="1" width="100%"> 
<!-- END index -->
Muss es so sein:

Code: Alles auswählen

<!-- BEGIN index -->
<table class="forumline" border="0" cellpadding="3" cellspacing="1" width="100%">
<tr>th>Datum & Uhrzeit</th><th>Sportart</th><th>Nation</th><th>Spiel</th><th>Nation</th><th>Liga/ Tunier</th><th>Sender</th></tr>

   <!-- BEGIN top -->

   {index.top.LIST}

   <!-- END top -->

</table>
<table border="0" cellpadding="3" cellspacing="1" width="100%"> 
<!-- END index -->