coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: canadian on July 13, 2006, 10:36:20 PM

Title: How do I add a top 50 counter to the bottom of Coppermine?
Post by: canadian on July 13, 2006, 10:36:20 PM
Not sure how else to state this. I have figured out how to add buttons but I want to add some code under the footer of all pages. I am just not sure where to add the code so that it comes up on all of the pages.
It is a web counter, so as people visit our pages I move up in listings on another site.
I would guess that it goes in the include/themes.inc.php but is there a certain spot for it to go.
Thnaks.
Title: Re: How do I add a top 50 counter to the bottom of Coppermine?
Post by: Nibbler on July 13, 2006, 10:43:04 PM
Add it towards the end of your template.html.
Title: Re: How do I add a top 50 counter to the bottom of Coppermine?
Post by: Joachim Müller on July 14, 2006, 06:36:50 AM
Never edit include/themes.inc.php, under no circumstances.
Basically it depends how your custom script works: if it's plain HTML and/or JavaScript, just do as Nibbler suggested. If your script involves the use of PHP, use the custom_footer include (refer to Path to custom footer include (http://admin_theme_include_path_start))
Title: Re: How do I add a top 50 counter to the bottom of Coppermine?
Post by: Bendjamini on July 17, 2006, 02:09:36 AM
Please please please please please please please please please please please please please please please please please please first test before post... is that right ?

Nibbler... "Add it towards the end of your template.html." ... try this and you see that the councter will be show the end of every categories...

add the code in the end of index.php in the main copperimine directorie. the code will be displayed right of the "powered by MySQL" picture and will be showed in every page U click in coppermine gallery. Have fun.
Title: Re: How do I add a top 50 counter to the bottom of Coppermine?
Post by: Nibbler on July 17, 2006, 03:48:31 AM
That is completely wrong. Please don't give out bad advice on our support forum.