Insert adsense in Trackback module

teri@bglog.net - June 1, 2005 - 19:30

Please help me! I want to insert adsense code in trackback.module. I want to put ad right after line "Trackback URL for this node: "

Try this

kbahey - June 1, 2005 - 20:06

1. Install the adsense module.

2. Configure it as per instructions.

3. Edit trackback.module after this line:

<?php
$node
->body .= theme('box', t('Trackback URL for this post:')
?>

Adding this:

<?php
$node
->body .= adsense_display('468x60');
?>

You can change the dimensions, colors, and other stuff if you want. Read the instructions for the adsense module.

--
Consulting: 2bits.com
Personal: Baheyeldin.com

Thank you!

teri@bglog.net - June 1, 2005 - 20:29

Thank you!
It's displayed now, but i see only placeholder - you can see it here http://bglog.net/node/997 for example. "hide adsense" is not checked in users permission, and the module is active. Also "Disable Google AdSense ads?" is not checked too

No, it's working! :) Excuse

teri@bglog.net - June 1, 2005 - 21:24

No, it's working! :) Excuse me! I see the ads with not administrator account and I love the function to disable ads for registered users :) Thank you again! :)

 
 

Drupal is a registered trademark of Dries Buytaert.