1
CyberGuin
Custom Block - PHP Mode or Javascript... Help!
  • 2007/7/3 2:22

  • CyberGuin

  • Just popping in

  • Posts: 36

  • Since: 2005/2/16


Hi,

I'm desparately trying to add Google Ads to a custom Block. I've tried just copy and pasting (as a lot of the articles about adsense say you can do) and using an html code block and nothing happens, apart from the block title showing, nothing else...this is because something - the html editor (kovi)? - is changing the code so it appears in one long line - which Google Adsense does not allow.

I have the Google code working as a banner and as some html in the theme. It's just the block I can't get to work!

I've also tried putting the Google code in a separate html file and put server-side include statement as an html block - that didn't work.

I've also tried using a php echo statement having the block as a PHP code, but nothing shows up! When I include a simple 'echo "word""; it shows the block title and 'word' underneath. So why won't it show the Google javascript code?

Could I save the Google code as a separate .js file and include this somehow.

I'm desparate to get this to work, and can't see away around it.

Any help much appreciated.

Cheers, Tracy

2
Northern
Re: Custom Block - PHP Mode or Javascript... Help!
  • 2007/7/3 9:01

  • Northern

  • Just can't stay away

  • Posts: 420

  • Since: 2004/12/26


try this

Simple but effective

<table>
<
tr>
<
td>
place your code here
td>
tr>
table>


make sure its in html

3
CyberGuin
Re: Custom Block - PHP Mode or Javascript... Help!
  • 2007/7/10 1:51

  • CyberGuin

  • Just popping in

  • Posts: 36

  • Since: 2005/2/16


Hi,

Thanks for responding :)

Nope, that didn't work for me. Still get the block title 'Sponsored Links' but no ads underneath. Once I save in the Kovi Editor and go back and look at the block html code, it's moved the code around again, so it's not as Google needs it. And it's still changing some of the tags to the asci(?) code eg '<!-- google_ad_client' etc.

Any other suggestions?

Cheers, Tracy

4
duncan9384
Re: Custom Block - PHP Mode or Javascript... Help!
  • 2007/8/5 16:44

  • duncan9384

  • Just popping in

  • Posts: 2

  • Since: 2007/8/5 1


Hello
You have to check your CSS theme file.
Try to add to the CSS for the blocks where you wanna put the ads. IE:

* html #xo-canvas-rightcolumn .xo-blockcontent { height: 110px;}

5
inkuyo
Re: Custom Block - PHP Mode or Javascript... Help!
  • 2008/1/2 7:50

  • inkuyo

  • Just popping in

  • Posts: 3

  • Since: 2007/7/20


did you ever get the code to work. I am having the same issue.

Login

Who's Online

275 user(s) are online (190 user(s) are browsing Support Forums)


Members: 0


Guests: 275


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