Page 1 of 1

main html file

Posted: Sun May 07, 2006 11:21 pm
by sameu
Hey

Question: I'd like to add a sitecounter (onestat) on my serendipity powered weblog. Also in the future I might implement googleAdsense

But therefor I need to know where I can copy/paste the html-code for the counter/ads.

Where to put this code?? In the css file? I've been looking and searching, but frankly I don't have a clue.

(just beginning with this stuff, so some of you may regard this as a stupid question :P )

Re: main html file

Posted: Mon May 08, 2006 12:04 pm
by garvinhicking
Hi!

In many cases you just add a "HTML Nugget" sidebar plugin and put your custom HTML code into that.

If you need to really modify the template itself, just edit the "index.tpl" HTML smarty file of your template (like templates/default/index.tpl).

And there are no stupid questions, just stupid answers. :)

Best regards,
Garvin

Posted: Wed May 10, 2006 12:01 am
by sameu
thanks, yes I 'm familiar with the html nugget
but for the onestat counter I' d like to implement it in the index.tpl file
however, it generates an error saying that smarty can't read it, cause a variable isn't defined

does this means I also have to alter the code in de smarty file?

Posted: Wed May 10, 2006 10:50 am
by garvinhicking
Hi!

If you get an error message, the error message would be VERY helpful for us. Else we'd have to guess it ;-)

Also tell me the code you changed in your index.tpl file. Most probably you just made an error there. In smarty template files you need to replace all "{" characters to "{ldelim}" and all "}" characters to "{rdelim}".

Best regards,
Garvin