1
egypty
how to add adsense on xoops pages and articles ?
  • 2006/8/28 14:21

  • egypty

  • Just popping in

  • Posts: 2

  • Since: 2006/8/26


iam totally beginner and i want to know how to add adsense into articles and pages like http://www.it-hq.org/modules/AMS/article.php?storyid=120

2
_ccp_
Re: how to add adsense on xoops pages and articles ?
  • 2006/8/28 15:06

  • _ccp_

  • Just popping in

  • Posts: 51

  • Since: 2006/6/21


hi egypty, you can add adsense modifying templates-set of the page that you like..

3
egypty
Re: how to add adsense on xoops pages and articles ?
  • 2006/8/28 15:28

  • egypty

  • Just popping in

  • Posts: 2

  • Since: 2006/8/26


can i know how ? i dont know anything about it

4
Peekay
Re: how to add adsense on xoops pages and articles ?
  • 2006/8/28 16:03

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


For a block - Go to System - Blocks.
At bottom of the page, in the 'Add a new block' section:

1) Select block type.

2) Check 'visible' = 'Yes'.

3) For 'visible in' select (ctrl-click) the pages on which the block is to appear.

4) Give the block a 'Title' - e.g. 'Google Ads'.

5) Paste YOUR Google Adsense code into 'content' field. E.g.
<script type="text/javascript">
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
script>

6) Select 'Content type = 'HTML'.

7) Submit.

To put Google ads into a page I think you just paste both the JavaScripts into the body of the Smarty template for that page, in a table cell, or a DIV.

Templates are mostly regular HTML with some special codes. However, you cannot edit templates directly - you have to make a copy of them. To do this, open System - Templates, click the 'clone' link and name the cloned template set (e.g. 'mytemplates').

Then in System - Preferences - General Settings:

Default template set = 'mytemplates'.

Check templates for modifications ?' = 'Yes'. (You should change this to 'No' before the site goes live).

Then you need to find the template for the page you want to show Google ads in and edit it to add the JavaScript(s). Finding the right template to change is a matter of trial and error.

You should find more info on editing templates in the FAQ.
A thread is for life. Not just for Christmas.

5
_ccp_
Re: how to add adsense on xoops pages and articles ?
  • 2006/8/28 19:29

  • _ccp_

  • Just popping in

  • Posts: 51

  • Since: 2006/6/21


but I think that he not like put adsense code in blocks...

Resized Image

6
Peekay
Re: how to add adsense on xoops pages and articles ?
  • 2006/8/28 19:55

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Peekay wrote:
Quote:
To put Google ads into a page I think you just paste both the JavaScripts into the body of the Smarty template for that page, in a table cell, or a DIV.

Yes you are right. I think he has put the JavaScripts into the page template, as you suggested in your original reply to egypty.
A thread is for life. Not just for Christmas.

Login

Who's Online

517 user(s) are online (400 user(s) are browsing Support Forums)


Members: 0


Guests: 517


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits