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"><!--
google_ad_client "<{profile uid=$story.posterid field='adsense_id'}>
"
;
google_ad_width 250;
google_ad_height 250;
google_ad_format "250x250_as";
google_ad_type "text";
google_ad_channel ="";
google_color_border "FFFFFF";
google_color_bg "c2d5fc";
google_color_link "0000FF";
google_color_url "008000";
google_color_text "000000";
//--></script>
              
<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"><!--
google_ad_client "<{profile uid=$story.posterid field='adsense_id'}>";
google_ad_width 728;
google_ad_height 90;
google_ad_format "728x90_as";
google_ad_type "text_image";
google_ad_channel ="";
google_color_border "336699";
google_color_bg "c2d5fc";
google_color_link "0000FF";
google_color_url "008000";
google_color_text "000000";
//--></script>
<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

216 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

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

Latest GitHub Commits