Werbung ...
Verfasst: 05.12.2007 14:36
				
				Hallo,
Wie kann ich nach jedem Beitrag Werbung schalten?
Was muss ich coden?oder gibt es einen MOD?
			Wie kann ich nach jedem Beitrag Werbung schalten?
Was muss ich coden?oder gibt es einen MOD?

sound-ks hat geschrieben:und anstatt der Code für die Google ADS machst du einfach den Text oder die Banner für Werbung
Code: Alles auswählen
#-----[ AFTER, ADD ]------------------------------------------
#
   if($i == $ad_after)
   {
      $row_color = ( !($num % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
      $row_class = ( !($num % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
      $num ++;
      $mini_post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#ad';
      $template->assign_block_vars('postrow', array(
         'ROW_COLOR' => '#' . $row_color,
         'ROW_CLASS' => $row_class,
         'POST_DATE' => $post_date,
         'POST_SUBJECT' => 'Please Click to support this site',
         'MINI_POST_IMG' => $mini_post_img,
         'POSTER_NAME' => 'Google',
	   'POSTER_RANK' => 'AdSense',
         'POSTER_AVATAR' => '<A HREF="http://www.cyber-mag.com/googleisearch.htm" target="blank"><IMG SRC="images/google_logo.png" Border=0></A>',
         'MESSAGE' => '<div align="center"><SPAN class="gensmall">
<script type="text/javascript"><!--
google_ad_client = "pub-5802988291320060";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_color_border = "0E0E0E";
google_color_bg = "F1F1F1";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//2007-06-06: posts
google_ad_channel = "0772936079";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><BR><BR></SPAN></div>',
         'L_MINI_POST_ALT' => $mini_post_alt,
         'U_MINI_POST' => $mini_post_url,
         'U_POST_ID' => 'ad')
      );
   }
Code: Alles auswählen
$template->assign_block_vars('postrow', array(Code: Alles auswählen
if($i == $ad_after)
   {
      $row_color = ( !($num % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
      $row_class = ( !($num % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
      $num ++;
      $mini_post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#ad';
      $template->assign_block_vars('postrow', array(
         'ROW_COLOR' => '#' . $row_color,
         'ROW_CLASS' => $row_class,
         'POST_DATE' => $post_date,
         'POST_SUBJECT' => 'BLA',
         'MINI_POST_IMG' => $mini_post_img,
         'POSTER_NAME' => 'Gockel',
      'POSTER_RANK' => 'WERBUNG',
         'POSTER_AVATAR' => 'MEIN WERBE_BANNER',
         'L_MINI_POST_ALT' => $mini_post_alt,
         'U_MINI_POST' => $mini_post_url,
         'U_POST_ID' => 'ad')
      );
   }