I would like to edit sidebar.tpl of the hybrid-theme to add a counter of nedstat/Webstats4U below the language-selection.I don't find the part, which is related to language or in other words, where to put the Webstats4U-code. My aim is to create a counter in the bottom of the sidebar.
Probably I have to create copies of the theme too, since I use a multisite-installation and the counter should only refer to 1 host.
Suggestions to put the Webstats4U-code to another place are welcome.
Posts: 16504
I think you can do this by editing /themes/<yourtheme>/templates/sidebar.tpl (if using an out of the box theme, put sidebar.tpl into /themes/<yourtheme>/templates/local so it doesn't get overwritten on upgrade.
For multisite install, yeah probably a different theme for each site
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 210
nivekiam thanks for your answer, but the questions where and what do I have to edit. I am not a php-coder, so I have to do a lot with trial and error and it looks to me sidebar.tpl refers to another file.
Posts: 210
I found a solution for my needs and put the code at the end of themes/hybrid/templates/local/theme.tpl
Posts: 16504
sidebar.tpl does refer to another file to fill most of it's contents, but you can add to the top or bottom of it inside the div tags.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 8601
You could also create your own module that defines a block to show the counter.. then you could add that block to any theme that supports blocks (sidebar, album, photo..)
Posts: 2
Could you please tell me which file(s) the sidebar.tpl refers to for most of its contents?
Posts: 16504
Those files are in /modules Any module can add it's "link" to item actions by registering itself with G2 to do that. Do you want to add content to the sidebar yourself? If so, you can just add plain old HTML to it if you want.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here