miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Displaying Google AdSense

Author miniBBuser
Guest
#1 | Posted: 24 Jul 2007 00:41 
I have read the topics on Google AdSense and also have downloaded the AdSense code. It is working well. Here is the issue:

A website can display upto three Google advertisements on the webpage. The code helps me to display one ad after the first post. How can we make a website display (a) Ad after first post (b) Ad after 3rd post, if there is no post the ad will not display and (c) Ad after the last post, if there is only one post the ad will not display becasue it is already displayed as in (a).

Can you please help me? Thanks in advance.

Code from MiniBB.com forum:

function parseMessage(){

//Use $GLOBALS['anchor'] for determining the anchor value
$GLOBALS['adsense']='';

if ($GLOBALS['anchor']==1 or $GLOBALS['anchor']==9){

//You Adsense generated code here
$GLOBALS['adsense'] = <<<out

<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXXXX";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "E9EFF4";
google_color_bg = "E9EFF4";
google_color_link = "006699";
google_color_text = "000000";
google_color_url = "006699";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

out;

}

return;
}

Author Prince
Registered
#2 | Posted: 20 Aug 2010 15:28 
How can I use other ads like that in between posts?

Author Paul
Lead Developer
#3 | Posted: 21 Aug 2010 15:24 | Edited by: Paul 
Honestly saying, I don't understand what these requests are about. Too badly explained.

Author Prince
Registered
#4 | Posted: 22 Aug 2010 15:19 
For example in this topic (Minibb Demo)

http://minibb.org/minibb-test.php?action=vthread&forum=1&topic=482

In post number (#1)

you can see google ads..

and in other post there is no ads..

and you can see ads on post (#9)

so I meant that.. how about other ads company to make like this same as minibb demo.. not in everyposts...

Author tom322
Registered
#5 | Posted: 22 Aug 2010 19:59 | Edited by: tom322 
Here it is: Adsense Support

Author freebird
Registered
#6 | Posted: 24 Aug 2010 23:17 
Google AdSense is a free program that empowers online publishers to earn revenue by displaying relevant ads on a wide variety of online content.

Specific miniBB Support Forums / Specific / Displaying Google AdSense Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB