Hello!
Is there a way to embed a visitor counter in the footer of the forum?
In my SMF forum it was no problem with the following code, but in my ElkArte test forum it causes just a "Template Parse Error".
From my counter hoster I have these code lines.
For the head area:
<script language="javascript" type="text/javascript">
var _pID = "UID-123456-001";
</script>
<script language="text/javascript" type="text/javascript" src="http://counter.anbieter.de/counter.js"></script>
and for the body area:
<span id="counterdata"></span>
How must I add this in the ElkArte
index.template.php?
The counter should appear - separated by a vertical divider - to the right of the word "credits" or in a new line below it. Like it's to see on the image.
Something like search for:
theme_copyright(), '
</li>',
and replace it with:
theme_copyright(), '
</li><script language="text/javascript" type="text/javascript" src="http://counter.anbieter.de/counter.js"></script><span id="counterdata"></span>',
should do... I think.
Um, no, it didn't work on this way. The counter didn't appear.
I added then the first part again in the head area and just left the </li><span id="counterdata"></span>', there.
Something similar I tried before, but apparently I did a mistake with the apostrophes and the commas…
Now the counter is on the desired place. :)
Cool! :D