1
pessi
wfchannels- google adsense code.
  • 2006/2/13 13:00

  • pessi

  • Quite a regular

  • Posts: 204

  • Since: 2004/5/16


Dear All

I was trying to use wfchannels module to create some some custom page and want to use google adsense code in it.

The page shows up all well but the google ads are missing.

any ideas?

thanks in advance.

cheers
Prasad.

2
bluenova
Re: wfchannels- google adsense code.

Not without having a look or seeing any error messages. I think it would be best to include the adsence code in a (html) custom block, that way you can select what pages to display the block with the adverts. This way works fine for me.

3
pessi
Re: wfchannels- google adsense code.
  • 2006/2/13 14:16

  • pessi

  • Quite a regular

  • Posts: 204

  • Since: 2004/5/16


good thought and idea. will try it out

thanks a lot.

prasad.

4
pessi
Re: wfchannels- google adsense code.
  • 2006/2/13 16:32

  • pessi

  • Quite a regular

  • Posts: 204

  • Since: 2004/5/16


ya it works but this way i will be restricted to place blocks only at the top. What if i need the google ads in the middle of the text?

another problem. What if i need the adver block in the middle of the text?

has anyone included adsense code into their custom pages created using wf-channels module?

That would be the perfect solution for me.

cheers
prasad..

5
panigrc
Re: wfchannels- google adsense code.
  • 2006/7/13 17:27

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


I have this problem too !! The solution (not the best) is to comment the lines wich are replacing new line characters like "\n". Seems that google adsense has a problem with having all the code of the script in one single line.

Comment the lines 146 to 152 in file index.php of wf-channel.

Then the ads should appear correctly
//$articletag['maintext'] = str_replace("rn", "", $articletag['maintext']);
    //$articletag['maintext'] = str_replace("n", "", $articletag['maintext']);
    //$articletag['maintext'] = preg_replace("/s+/", " ", $articletag['maintext']);
    //$articletag['maintext'] = preg_replace('/(n|r|rn){2,}/', '', $articletag['maintext']);
    //$articletag['maintext'] = preg_replace("/nn+/", "nn", $articletag['maintext']);
    //$articletag['maintext'] = preg_replace(array('/[ t]{2,}/', '/(n|r|rn){2,}/'), array('', ''), $articletag['maintext']);
    //$articletag['maintext'] = $myts->oopsStripSlashesGPC(trim($articletag['maintext']));
[size=xx-small]X-Park Greek Pc Modding Community
Official Greek Support at XoopsGreece.gr[/size]

Login

Who's Online

385 user(s) are online (299 user(s) are browsing Support Forums)


Members: 0


Guests: 385


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