Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
Koly007

Adsense im IPB + Mod von Invisionize

Recommended Posts

Hallo!

Ich verwende den Adsense-Mod von Invisionize

Hier habe ich den Code wie folgt angepasst:

//-------------------------------------

 	 // Google Adsense banner mod

 	 //-------------------------------------

 	 // You can change the number in: "$post_count == 2" to one you want to display the ad banner, without exceeding the maximum you've set per page

 	 // Default is 2, between 2nd and 3rd post 

 	 // Remove " and $first == 0" if you want ads displayed in every page instead of the first one only

 	 //-------------------------------------

 	 

 	 if ($post_count == 1 and $first == 0)

 	 {

    $ad = array (	'name_css'	=> 'normalname',

        'post_css'	=> ($post_count % 2 ? 'post1' : 'post2'),

        // You may want to change the post icon here or completly remove it

        'post_icon'	=> '<img src="'.$ibforums->vars['img_url'].'/icon11.gif" alt="" /> ',

        // Paste your Google ad code inside the single quotes

        'post'  => '

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

google_ad_client = "pub-8312996458994988";

google_ad_width = 728;

google_ad_height = 90;

google_ad_format = "728x90_as";

google_ad_type = "text";

google_ad_channel ="";

google_color_border = "497A9B";

google_color_bg = "D6DBE0";

google_color_link = "394C62";

google_color_url = "394C62";

google_color_text = "394C62";

//--></script>

<script type="text/javascript"

  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>'

     	 );

    

    $bot_poster = array (

       	 /* You can customize the informations shown about your bot here

          * Uncomment, by removing "//" in front of the lines you want to show up

          */

          'name' 	 => 'Google Anzeigen',

          'title' 	 => '',

          'avatar'  => $std->get_avatar( 'http://www.tunsty.net/image/google.gif', $ibforums->member['view_avs'], '128x53' ),

          //'member_rank_img' => '<img src="" border="0" alt="Group Icon" />',

          //'member_group'	=> $ibforums->lang['m_group'].' Bot',

       	 /* You can enter the date the bot joined your board in UNIX timestamp

          * http://www.invisiontools.com/index.php/pg/hosted-unix [Currently broken, needs to remove &p=unix off the url to work)

          * Default is set to 25/01/04, replace the numbers with $ibforums->vars['board_start'] if you want to use your board start date

          */

          //'member_joined'	=> $ibforums->lang['m_joined'].' '.$std->get_date( 1074988800, 'JOINED' ),

          //'website_icon'	=> '<a href="http://google.com" target="_blank"><{P_WEBSITE}></a>',

                  

       	 );

    

    $replace = array (	'search'  => array	("<a href='{$ibforums->base_url}act=Post&amp;CODE=06&amp;f={$ibforums->input[f]}&amp;t={$ibforums->input[t]}&amp;p='><{P_QUOTE}></a>",

               '<b><a title="'.$ibforums->lang['tt_link'].'" href="#" onclick="link_to_post(); return false;" style="text-decoration:underline">'.$ibforums->lang['posted_on'].'</a></b> '

              ),

       	 

       	 'replace' => array	('',

               '<b>Tipp von TunSty.net an euch:</b>'

              )

         );

    

    $this->output .= str_replace($replace['search'], $replace['replace'], $this->html->RenderRow( $ad, $bot_poster ));

    

    $post_count++;

 	 }

Eigentlich in Ordnung.. man sieht es hier: http://www.tunsty.net/forum/index.php?showtopic=455 unter dem ersten Forumbeitrag... das einzige Problem ist dass ich Custom Profile-Fields verwende.. und bei diesen wird leider der Text angezeigt..

Könnte man den Text entfernen oder noch besser die ganzen grauen Kästchen die sich unter dem Google Logo befinden?

Viele Grüße!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×