Is there a way to add a counter to the main page? I would like to see the amount of hits to the site.
Joe
www.porcupinepc.com/forums
Main site
you can add it to the theme/yourtheme/template.html.
the easiest way is to find {GALLERY}, then add <br> your counter code.
this places it at the bottom of the page, just after the 'powered by coppermine'.
I found the template.html file which i edited. Now, under the coppermine, you see the html code
See here: http://www.porcupinepc.com/family/
Joe
Hi,
I think this is because you have used the code for special characters, instead of the character itself (did you use a wysiwyg editor), so try changing this;
<PRE><!-- Start counter.bloke.com -->
<table border=4><tr><td>
<applet
CODEBASE="http://www7.counter.bloke.com/c/"
CODE="Counter.class" WIDTH=75 HEIGHT=20>
<param name=URL value="http://www.porcupinepc.com/family">
<param name=reset value="0">
<param name=img value="/c/default.gif">
</applet></td></tr></table>
<font face=arial size=1>Powered by <a
TARGET="_top" href=http://counter.bloke.com/>counter.bloke.com</a></font><br>
<!-- End counter.bloke.com -->
</PRE>
to this;
<PRE><!-- Start counter.bloke.com -->
<table border=4><tr><td>
<applet
CODEBASE="http://www7.counter.bloke.com/c/"
CODE="Counter.class" WIDTH=75 HEIGHT=20>
<param name=URL value="http://www.porcupinepc.com/family">
<param name=reset value="0">
<param name=img value="/c/default.gif">
</applet></td></tr></table>
<font face=arial size=1>Powered by <a
TARGET="_top" href=http://counter.bloke.com/>counter.bloke.com</a></font><br>
<!-- End counter.bloke.com -->
</PRE>
Hope this works.
http://www.porcupinepc.com/family/
The above is my site. I added what you mentioned and the html code still shows
Joe
OK tested on my site, and it's the <PRE> and </PRE> that causes the problem.
get rid of these, and it works. :wink:
i still get the raw html code showing on the coppermine page. Im using Microsoft FrontPage to edit the template.html file. Does this make a difference?
Joe
Yes it does, coppermine hates wysiwyg code for some reason.
I suggest you alter your template.html in notepad, or use something like firstpage2000 (what I use).
If you take the original code, and add the code I posted ealier (without the <PRE> and </PRE>) it should work. It did on my site, where I simply copied and pasted the above code. Note, I did not include the table formating, just paste the above after the {GALLERY}.
Super! I used Windows "Notepad" and its working perfectly. Thanks for your help.
Joe
www.porcupinepc.com
Glad to help :wink: