11
karomaz
Re: Adsense revenue sharing module
  • 2011/11/18 23:56

  • karomaz

  • Just popping in

  • Posts: 21

  • Since: 2011/10/8


nooo !!! i'm using ams

12
trabis
Re: Adsense revenue sharing module
  • 2011/11/19 0:23

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Good for you, the template is ams_item.html and the code to use is the same.

13
karomaz
Re: Adsense revenue sharing module
  • 2011/11/19 0:59

  • karomaz

  • Just popping in

  • Posts: 21

  • Since: 2011/10/8


so the code will be like this ???

<script type="text/javascript">
              
<script type="text/javascript"
  
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
            script>


and where exactly i will put it in the ams_item.html file ???

14
trabis
Re: Adsense revenue sharing module
  • 2011/11/19 1:03

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Yes, the code seems good.

<class="itemText"><{$story.hometext}>p>


This is the part that displays the article content. You may want to insert that code inside those p tags.

Don't forget to set true 'check templates for modification' in system general settings or to clear your smarty compiles (using system maintenance) after you do the changes.

15
karomaz
Re: Adsense revenue sharing module
  • 2011/11/19 1:38

  • karomaz

  • Just popping in

  • Posts: 21

  • Since: 2011/10/8


unfortunately :( it did not worked for me !! no adsense block displayed

16
trabis
Re: Adsense revenue sharing module
  • 2011/11/19 1:45

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Make sure to set adsense_id visibility in profile permissions.
Also check the source code of the page to see if the code is there, google may take some time to display new adsense blocks

17
karomaz
Re: Adsense revenue sharing module
  • 2011/11/19 1:59

  • karomaz

  • Just popping in

  • Posts: 21

  • Since: 2011/10/8


set adsense_id visibility in profile permissions, and i'm sur that the adsense code is in the ams_item.html file (it's like this):

<class="itemText">
                                <{
$story.hometext}>
                            <
script type="text/javascript">
<script type="text/javascript"
  
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
         script
                            p>


And still nothing displayed !!!

18
trabis
Re: Adsense revenue sharing module
  • 2011/11/19 2:25

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


okey, I want you to look into the source code of the page, in your browser. You should be able to see if the adsense code is there or not, and if it is, if the adsense_id was replaced or not.

19
deka87
Re: Adsense revenue sharing module
  • 2011/11/19 6:02

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


1. Go to your webste Preferences > System options > General settings and set Check templates for modifications to YES.
2. Go to Administration panel > Templates then choose a theme you have default on the user side from the list there, then change Forced generation to YES, then choose All modules and Go. This will generate your templates into your theme folder.
3. Go to Administration panel > Maintenance and clear all 3 caches.
4. Now go again to Administration panel > Templates from the left 'Your themes' column choose the theme you have defualt and find a ams_item.html template under the modules/AMS directory and edit is as trabis told you.
5. Clear the cache again via Administration panel > Maintenance.
Mind anchors

20
karomaz
Re: Adsense revenue sharing module
  • 2011/11/19 11:07

  • karomaz

  • Just popping in

  • Posts: 21

  • Since: 2011/10/8


ok now it's working

but i must not edit ams_item.html, i must edit ams_articles.html to display adsense blocks inside the article, but the problem is when i logout, noo adsense code display in the articles :(

how to solve it ??

Login

Who's Online

281 user(s) are online (180 user(s) are browsing Support Forums)


Members: 0


Guests: 281


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