Klappt bei mir nicht. Muss ich noch was anderes verändern? Kann es sein, dass der Code unvollständig ist?
Bisher habe ich den MOD drin:
Werbung als 2. Beitrag eines Themas einblenden: [Beispiel]
öffne viewtopic.php und suche nach:
Code:
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
ersetze mit:
Code:
//
// Google Ad Mod
//
/* deleted
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
*/
$row_color = ( !($num_post % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($num_post % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$num_post ++;
// Ende
suche nach: (NICHT (!) die geschweifte klammer danach mit markieren!)
Code:
'U_MINI_POST' => $mini_post_url,
'U_POST_ID' => $postrow[$i]['post_id'])
);
füge danach ein:
Code:
// Google Ad Mod
if (!($userdata['session_logged_in']))
{
if($i == 0)
{
$row_color = ( !($num_post % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($num_post % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$num_post ++;
$message = '
<script type="text/javascript"><!--
google_ad_client = "pub-4267689453885886";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "DEE3E7";
google_color_bg = "DEE3E7";
google_color_link = "006699";
google_color_url = "006699";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="
http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
';
$template->assign_block_vars('postrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'POSTER_NAME' => 'Google',
'POST_DATE' => '',
'POST_SUBJECT' => 'Anzeige',
'MESSAGE' => $message,
'MINI_POST_IMG' => $mini_post_img,
'U_POST_ID' => '0'
));
}
}
// Ende Google Ad Mod