Page 1 of 1

HTML - adsense script in entry

Posted: Fri Apr 13, 2007 10:14 pm
by Hello McFly
I'm using nuggets to display Google adsense and search, as well as changing the TPL file to do the same. However, if I want to blog about adsense and ad a refferal link directly in my entry how do I do that. You can see what I'm trying to do here:

http://www.wealthwithoutwork.org/index. ... ies/6-Blog

The category view gives "Page Cannot be displayed" errors, the direct link to the entry:

http://www.wealthwithoutwork.org/index. ... ense!.html

Shows nothing at all. Any way around this? Or is it a problem with my host?

I know in software like Joomla, they wrote a plugin called "htmlfix" does something like this exist for serendipity yet? Something that allows you to enter scripts directly into your entry?

Please let me know what you think.

Thanks,
McFly

Posted: Sat Apr 14, 2007 11:32 am
by vavai
Hello McFly,

I guess that you gave an invalid link for your page. I tried to see

http://www.wealthwithoutwork.org/index. ... le-Adsense
and this page show an archive entries, and while tried to display

http://www.wealthwithoutwork.org/index. ... ies/6-Blog
this page show a nice page about "Apr 9: Making a fortune with Google Adsense!" and it's quite OK (Adsense at the top-left of your article).

To make sure, I give you a click to your Ads :-). Please check your Adsense earning...

Is it true ?

Best Regards,


Vavai

Posted: Sat Apr 14, 2007 12:59 pm
by garvinhicking
Hi!

Did you maybe configure your permalinks to not have a ".html" ending? Sadly I believe that s9y requires this when using mod_rewrite.

If I call

http://www.wealthwithoutwork.org/index. ... sense.html

it works...

Regards,
Garvin

Posted: Sat Apr 14, 2007 2:08 pm
by Hello McFly
Thanks for the response Garvin,
If you look at post above the link was missing "!.html" that's why it didn't work. The correct link is:

http://www.wealthwithoutwork.org/index. ... ense!.html

I should have used BBcoding to make this a little clearer. I apologize.

However, my adsense ads are working fine (Thanks for the click Vavai :) )

The ads in the upper left hand corner of my posts are added directly to my TPL file. But within my article, I'm trying to post a referall link to google adwords and google adsense. When I view the pages, I see "This Page Cannot be Found" errors where the referall links are supposed to be.

(You can see these at the bottom if you "view source")

These are not the ads in the upper left, these are supposed to be text links at the bottom of the page. Are you able to see them? When I go to the category listing it displays the error message. When I go directly to the article (via the link above) it shows nothing.

I have the WYSIWYG editor turned off, so I thought I could just enter my script tags directly into my entry. So I guess my question is, how do I add scripts to my posts without using an HTML nugget?

Please ket me know. I thank you for your time, I'll go click some ads on the home page! 8)

Cheers,
McFly

Posted: Sat Apr 14, 2007 6:11 pm
by garvinhicking
Hi McFly!

Hm, if I view the source on that page, I cannot see anything called "Page not found" or so? I'm not sure, what are you referring to?

You actually can paste javascript into an entry text just like that! It might depend on your plugins though how they get displayed. For example if you have the nl2br plugin installed, newlines will be converted to <br> also within your javascript code, making it invalid. So you'll need to disable the nl2br plugin for those postings (using the "Extended properties for entries" plugin you can disable markup plugins per post). Also some other plugins like Wiki markup would make your javascript be shown differently (as well as the WYSISWYG editor).

HTH,
Garvin