Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
8 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: News 1.63 and google adsense
by Anonymous on 2008/12/17 16:39:06

Thank you for your little tutorial Trabis. I got it working now
Re: News 1.63 and google adsense
by trabis on 2008/12/17 0:36:23

Edit news/templates/news_item.html

Then paste the tag <{$advertisement}> where you want it to display.

Please have in atention that the advertisement is also included on index.php. This means that you can have a list of several articles each one displaying an advertisement. This will be against the conditions imposed by google adsense.

If you want your ad close to your news item text then you should consider showing it just in article.php (single item) and for doing so you need to edit news/index.php and remove line~276:

$xoopsTpl->assign('advertisement', news_getmoduleoption('advertisement'));

If you want to place your ad bellow the news item (for example, above the comments nav) then you may find a better place for the tag in templates/news_article.html (which is not used in index.php and will avoid the hack)
Re: News 1.63 and google adsense
by Anonymous on 2008/12/16 19:37:06

Bump

Is there anybody who has seen this option working?
Re: News 1.63 and google adsense
by Anonymous on 2008/12/14 12:54:59

When putting in an ordinary text it does not show as well. Besides that it's a function I'd like to use, I don't like hacking templates for this.
Re: News 1.63 and google adsense
by webmystar on 2008/12/14 12:48:59

i think the news modul "destroy" the structur from the adsense javascript code ...

i would write the adsense code in the template from the news modul.

Who's Online

212 user(s) are online (168 user(s) are browsing Support Forums)


Members: 0


Guests: 212


more...

Donat-O-Meter

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

Latest GitHub Commits