Google Adsense

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
aff_dan
Regular
Posts: 8
Joined: Mon May 17, 2004 11:51 am
Contact:

Google Adsense

Post by aff_dan »

Hi all

I want to add google adsense in http://www.work-at-home-profits.com/java-blog/ above Monday, May 17. 2004. How to do this?


Please help me.

Dan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Either you create a HTML nugget plugin and insert your code, but then it'll be on the right side of your page.

Or you go and edit the file templates/default/layout.php and insert the appropriate code after the <h2> portion.

The first solution is very easy to achieve, the last one requires at least basic knowledge in PHP.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
aff_dan
Regular
Posts: 8
Joined: Mon May 17, 2004 11:51 am
Contact:

sessions

Post by aff_dan »

Hi,

Thank you for reply.

But I have another question. How could I remove the sessions id?

I get SESSIONSID9409764906094390346734096374

and google will not index sessions ids.

How to remove them?

Many thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: sessions

Post by garvinhicking »

Hi Dan!
aff_dan wrote: and google will not index sessions ids.

How to remove them?
Basically the 'ini_set('use_session_trans_sid')' in our .htaccess file should take care of it. You can deactivate that via php.ini and/or VirtualHost settings. Please look in the PHP MAnual for the session_trans_sid directive on how to exactly do that...

Good luck!
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
aff_dan
Regular
Posts: 8
Joined: Mon May 17, 2004 11:51 am
Contact:

hi

Post by aff_dan »

great! it's working!

many thanks



dan
Hathor
Regular
Posts: 118
Joined: Tue Mar 22, 2005 11:48 pm

Post by Hathor »

I tried the HTML nugget solution, and nothing showed up. Then I tried to find the layout file, but it doesn't exist anymore...?

blog at http://thehathorlegacy.info

By the way, thanks for answering the questions I've had over the past couple of weeks. I'm only know enough to be dangerous with this stuff :D and you've been a great help.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The stuff definitely works inside a HTML nugget. Please make a screenshot of how you inserted it.

Try to disable the nl2br markup plugin for HTML nuggets in its configuration, that may cause trouble with JavaScript spannng multiple lines.

The layout file method is deprecated, you'D need to edit one of the *.tpl files in the templates directory instead. But using a HTML nugget is much better.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Hathor
Regular
Posts: 118
Joined: Tue Mar 22, 2005 11:48 pm

Post by Hathor »

Thanks once again! That fixed it! :)
Post Reply