To mój pierwszy post tutaj, pewnie dużo się od Was nauczę. Mam taki problem:
mam plik content.php od CMS Joomla i w nim taki kod:
Kod
if ( $leading ) {
echo '<tr>';
echo '<td valign="top">';
for ( $z = 0; $z < $leading; $z++ ) {
if ( $i >= ($total - $limitstart) ) {
// stops loop if total number of items is less than the number set to display as leading
break;
}
echo '<div>';
show( $rows[$i], $params, $gid, $access, $pop );
echo '</div>';
$i++;
}
echo '</td>';
echo '</tr>';
}
echo '<tr>';
echo '<td valign="top">';
for ( $z = 0; $z < $leading; $z++ ) {
if ( $i >= ($total - $limitstart) ) {
// stops loop if total number of items is less than the number set to display as leading
break;
}
echo '<div>';
show( $rows[$i], $params, $gid, $access, $pop );
echo '</div>';
$i++;
}
echo '</td>';
echo '</tr>';
}
Teraz chciałbym, żeby w treści mojej strony pojawiła się reklama, więc wkleiłem kod Adsense:
Kod
if ( $leading ) {
echo '<tr>';
echo '<td valign="top">';
for ( $z = 0; $z < $leading; $z++ ) {
if ( $i >= ($total - $limitstart) ) {
// stops loop if total number of items is less than the number set to display as leading
break;
}
echo '<div>';
show( $rows[$i], $params, $gid, $access, $pop );
echo '</div>';
$i++;
}
echo '</td>';
echo '</tr>';
// reklama
echo '<tr><td>';
echo '<script type="text/javascript"><!--
google_ad_client = "pub-05029212121414517";
/* 728x90, utworzono 09-02-25 */
google_ad_slot = "3815920744";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';
echo '</td></tr>';
}
echo '<tr>';
echo '<td valign="top">';
for ( $z = 0; $z < $leading; $z++ ) {
if ( $i >= ($total - $limitstart) ) {
// stops loop if total number of items is less than the number set to display as leading
break;
}
echo '<div>';
show( $rows[$i], $params, $gid, $access, $pop );
echo '</div>';
$i++;
}
echo '</td>';
echo '</tr>';
// reklama
echo '<tr><td>';
echo '<script type="text/javascript"><!--
google_ad_client = "pub-05029212121414517";
/* 728x90, utworzono 09-02-25 */
google_ad_slot = "3815920744";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';
echo '</td></tr>';
}
I rzeczywiście wszystko działa super

Kod
<script type="text/javascript">
<!--<![CDATA[
/* (c)reklama */
/* SLAVE: nazwa.strony.pl.336x280 */
if(typeof jakiesnapisysipskps=='function') jakiesnapisysipskps();
//]]>-->***********
<!--<![CDATA[
/* (c)reklama */
/* SLAVE: nazwa.strony.pl.336x280 */
if(typeof jakiesnapisysipskps=='function') jakiesnapisysipskps();
//]]>-->***********
I jak wklejam ten kod strona się wysypuje i wyrzuca bład w linijce:
Kod
if(typeof jakiesnapisysipskps=='function') jakiesnapisysipskps();
Prosiłbym Was o pomoc jak wrzucić ten kod, żeby działał.
Pozdrawiam