Page 1 of 1
Google Adsense
Posted: Mon May 17, 2004 12:22 pm
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
Posted: Mon May 17, 2004 1:09 pm
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.
sessions
Posted: Mon May 17, 2004 3:32 pm
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
Re: sessions
Posted: Mon May 17, 2004 4:52 pm
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!
hi
Posted: Tue May 18, 2004 2:44 pm
by aff_dan
great! it's working!
many thanks
dan
Posted: Tue Mar 29, 2005 8:28 pm
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

and you've been a great help.
Posted: Tue Mar 29, 2005 9:20 pm
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
Posted: Tue Mar 29, 2005 9:37 pm
by Hathor
Thanks once again! That fixed it!
