Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:39:59 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Adsense - how to SOLVED  (Read 1989 times)
Ben Meijer

Offline Offline

Posts: 34


« on: September 09, 2007, 11:11:14 PM »

Hi Guys,

I want to ask about experience with implementation of Adsense.

I tried to take the HTML and convert to PHP using print, and cut and paste into the Code either in WSYWIG or in Code section.

Neither seems to work. Any ideas or experience??
Or does somebody have a better plan, like in the templates

Kind regards,

Ben
« Last Edit: September 13, 2007, 08:40:40 AM by Ben Meijer » Logged
doc
Guest
« Reply #1 on: September 10, 2007, 10:43:59 AM »

Hello,

code does not work when added to a WYSIWYG page. Use a code page/section instead. Search the forum for heredoc which should point you to the right direction. Another possibility is to write your own code snippet (search the forum for code snippet to learn more).

Regards Christian
Logged
Ben Meijer

Offline Offline

Posts: 34


« Reply #2 on: September 12, 2007, 12:02:51 PM »

Hi Christian,


Thank you for your reply,

I've embedded youtube before by just adding a code section, making sure the code was PHP and not HTML, and that was it.

Why does it not work just the same?

I cannot find the heredoc  you refer to, it this a typo?

Kind Regards,
Ben


Logged
doc
Guest
« Reply #3 on: September 12, 2007, 03:01:35 PM »

Hello,

ever tried the advanced search??? Simply search there for heredoc.
If you would post the damn code you try to add, help would be more easy to all of us. With the level of information you are providing it is just not possible to help  angry

So my last tip. Most likely you have a typo in your  code or forgot to escape special chars.

Christian
« Last Edit: September 12, 2007, 03:04:28 PM by doc » Logged
Ben Meijer

Offline Offline

Posts: 34


« Reply #4 on: September 13, 2007, 08:39:11 AM »

thanks to your tireless help, and some experimentation on my part, I solved how to add Addsense.



Aparantly, when converting HTML as provided by Google, you need to use the


print "\n";


For those of us who dont want to manually convert everything, this tool assisted me

http://www.quasarcr.com/html2php/

Have a good day.

Ben

Logged
lexscripta

Offline Offline

Posts: 62


« Reply #5 on: October 17, 2007, 03:28:37 AM »

Thanks for the edification... BUt I thought google provided Javascript?

LexScripta
« Last Edit: October 17, 2007, 03:44:08 AM by lexscripta » Logged
Ben Meijer

Offline Offline

Posts: 34


« Reply #6 on: December 06, 2007, 05:14:55 PM »

Yes, they provide javascript and HTML.

And you still need to make php eat that.

Kind regards,
Ben
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!