PDA

View Full Version : Ads between content and comments


sifuhall
03-21-2006, 09:00 PM
I wanted to add my ads (yahoo, google, etc) between the content of an article and the contents like here:

http://www.dragonslist.com/node/264


To do this in nodes.module:

After

function node_show($node, $cid) {
$output = node_view($node, FALSE, TRUE);


I put this:


$output .= "[insert ad code here";


Be sure to escape all double quotes in the line above with a backslash.

alexanderpas
04-29-2006, 03:30 PM
alternatively you could use the following

instead of:
$output .= "[insert ad code here";

use this:
$output .= <<<ADBLOCK
[insert ad code here]
ADBLOCK;
you don't need to escape all double quotes in the line above with a backslash.