• Welcome to Simple Machines Community Forum. Please login or sign up.

Google AdSense in SMF, various positions...

Started by Moonray, September 25, 2005, 11:46:56 PM

Previous topic - Next topic

NickC


soori

I wanted a clarification.I have used the codes given by oyu.
Great one thanks.

But needed one clarification

How can I make the google adsense not be displayed in following pages

1) Login and registation

2) administration

hunyaga

Hi guys and gals,

I'm a total noob here and just want to know how I can get google adsense onto my Forum. I don't know about PHP sorry.

Here's the site:

hxxp:learnjapanesepod.com/forum/ [nonactive]

Any suggestions or help ?

Thanks

miekboffer

Hi have inserted the "ads below first post" but for some reason, the ads appear above the first post. Anyone else had this problem and found a solution?
Thanks

pirat3

can somseone please show a screen on how these cond option looks like?

pirat3

Quote from: thetzfreak on October 26, 2005, 06:12:03 PM
The second one doesn't work? I'm getting this problem:



First of all, the left image isn't working,

Second of all, there is always for some reason an n, m, and z there.

Third, it doesn't look like a regular category.

Help?

I get same issue

dakotagrappler

August 11, 2007, 11:52:26 PM #146 Last Edit: August 12, 2007, 12:05:58 AM by dakotagrappler
Troubles with Google adsense....  That is me...  I inserted the code given to me by google in the ad management and no ads show up...

??  does this work just in default theme or does it work in any other theme?

It seems really simple...  am I doing something wrong...  my website is:
http://dakotagrappler.com/simplemessageboard/index.php

I would really appreciate any help...

I can give more details under my messages..

Thanks
dakotagrappler

nitins60

This s very simple trick to show ads on each and every page at the bottom of the page. Remember i m newbie to php, just i tried trial & error method!

open index.template.php file of any theme
find

//Show valid logos and Powered by .......

now just insert this code just above it

echo '
//Your Google Adsense code
';


that's it :P

Flying Drupalist

The instructions in the first post are incorrect. The ad code goes before the    </td></tr>';            
not the    }.

geezmo

I want to know how to disable Adsense in the following forum pages as well. Hope someone can help. Thanks.

Quote from: soori on May 25, 2007, 04:34:36 AM
How can I make the google adsense not be displayed in following pages

1) Login and registation

2) administration

fortran


dyrer

Quote from: dyrer on November 06, 2006, 01:24:24 PM
Quote
if ($message['id'] == $context['first_message'])
         echo '
         <div align="center">
        <script type="text/javascript"><!--
        google_ad_client = "pub-youradsenseID";
        google_ad_width = 468;
        google_ad_height = 60;
        google_ad_format = "468x60_as";
        google_ad_type = "text";
        google_ad_channel ="yourCHANNEL";
        google_color_border = "577494";
        google_color_bg = "577494";
        google_color_link = "FFFFFF";
        google_color_url = "999999";
        google_color_text = "EFEFEF";
        //--></script>
        <script type="text/javascript"
          src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
        </script>
        </div>
         ';
This code in Firefox 2 display ads on the left not on center, can anyone help
Quote from: Vinspire on November 07, 2006, 01:52:07 AM
changed the code

<div align="center">

to

<div align="left">

and see if that works :)

No is not working

SleePy

Have you tried the ad mod first?
It might do things how you need them instead of manually editing the files.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

starsapphire04

I always get this message:

Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.

I carefully tried the step by step but what's the problem here

Bigguy

:)

Quote from: SleePy on November 07, 2007, 12:29:13 AM
Have you tried the ad mod first?
It might do things how you need them instead of manually editing the files.

Rashid777

Hello, Is there an Adsense Mod for the 1.1.4 version? The old Adsense Mod does not work. I have someone trying to install it but i does not seem to work. Here is the site http://sscommerce.com/index.php [nofollow] thank you........

spytrdr

Quote from: nitins60 on August 22, 2007, 04:46:54 AM
This s very simple trick to show ads on each and every page at the bottom of the page. Remember i m newbie to php, just i tried trial & error method!

open index.template.php file of any theme
find

//Show valid logos and Powered by .......

now just insert this code just above it

echo '
//Your Google Adsense code
';


that's it :P

This is a better positioning:

   // Show the menu here, according to the menu sub template.
   template_menu();

echo '
<div align="center">
YOUR GOOGLE SCRIPT HERE
</div>
';

   // The main content should go here.
   echo '
   <div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}

raelpsf

December 09, 2007, 02:14:02 PM #157 Last Edit: December 09, 2007, 02:17:10 PM by raelpsf
Quote from: pirat3 on July 31, 2007, 04:45:49 PM
can somseone please show a screen on how these cond option looks like?

Quote from: dyrer on November 06, 2006, 01:24:24 PM

This code in Firefox 2 display ads on the left not on center, can anyone help

This code, solve the problem of you both... the advertisement is in the center (middle) and under the first post!!!

//Show Google Adsense after the 1ast post

if ($message['id'] == $context['first_message'])
echo '
<div align="center; margin-left:auto; margin-right:auto;">
<table align="center" border="0" cellpadding="0" cellspacing="0"><td align="$stylevar[center]">
        <script type="text/javascript"><!--
google_ad_client = "pub-5621933613264713";
//forum
google_ad_slot = "5446614957";
google_ad_width = 728;
google_ad_height = 90;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</table>
  </div>
';
//End of the adsense Code




;D

saquib

Hi i have a SMF forum and recently download the outline theme but the code you provide is not in the index template , so please me how can i add googl;e adsense in it.

thank you

saquib189@yahoo.com

paypalcommunity

hi guys,

can anyone help me too ?? my forum is http://www.paypalcommunity.info

and i install smf 1.1.4 version but i dont know how to put adsense in very 1 post.

or just a footer or header part. please help me guys
join my forum - http://www.paypalcommunity.info a site where you can earn money from posting and trading and learning new things. join http://www.paypalcommunity.info - this is newly site :)

Advertisement: