main html file

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
sameu
Posts: 2
Joined: Sun May 07, 2006 11:14 pm
Location: Belgium
Contact:

main html file

Post 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 )
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: main html file

Post 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
# 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/
sameu
Posts: 2
Joined: Sun May 07, 2006 11:14 pm
Location: Belgium
Contact:

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Post Reply