TinyPortal

Development => Resources => Topic started by: Sharr76 on June 19, 2007, 02:22:06 PM

Title: AdSense
Post by: Sharr76 on June 19, 2007, 02:22:06 PM
Hi all

when creating an article in Article Manager is it possible to add in some adsense code? if so how do you do it?  ???
Title: Re: AdSense
Post by: Lesmond on June 19, 2007, 02:40:25 PM
Yes, If you use the text editor, and use html in the article, you can then place the adsence code where you want the add to appear.

something like this here (http://www.lesmonds.co.uk/smf/index.php?page=33)
Title: Re: AdSense
Post by: Sharr76 on June 20, 2007, 01:07:18 PM
Hi Lesmond,

I have this code below in my article and nothing is showing? :-\ Have I done it right?

<html>
<body>
<script type="text/javascript"><!--
google_ad_client = "pub-6644828315604403";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "CCCCCC";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</body>
</html>
Title: Re: AdSense
Post by: IchBin on June 20, 2007, 01:09:59 PM
<html> and <body> tags are not necessary. See if it works after removing those 4 tags.
Title: Re: AdSense
Post by: Sharr76 on June 20, 2007, 01:15:30 PM
No its just showing empty?
Title: Re: AdSense
Post by: Sharr76 on June 20, 2007, 01:25:23 PM
I have got it working, thanks all
Title: Re: AdSense
Post by: gffb on June 20, 2007, 02:18:21 PM
how did you get it working?
Title: Re: AdSense
Post by: Sharr76 on June 21, 2007, 01:24:48 AM
Link to what it looks like: http://www.ndex.org/index.php?PHPSESSID=e708ca51db576b7c5996fdf5dbe09b79&page=22 (http://www.ndex.org/index.php?PHPSESSID=e708ca51db576b7c5996fdf5dbe09b79&page=22)

I used WhizzyWig editor and then clicked on the HTML button, I typed some information in first then added the code, I had the "Article is Active" highlighted and then I saved it straight away.

When you next look at the article is should be showing, I could not see mine using the Preview link.

 :smiley6600: