Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Themes.php code  (Read 2453 times)

0 Members and 1 Guest are viewing this topic.

rubbersoul

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 92
Themes.php code
« on: May 09, 2005, 08:01:00 pm »

I put this little piece of code in themes.php and for some reason it won't show up????

<!-- BEGIN footer -->
        <tr>
                <td colspan="3" class="tableh1" align="center"><span class="statlink"><b><a href="http://www.mysite.com">HOME</a> | <a href="http://www.mysite.com/about">ABOUT</a>
| <a href="http://www.mysite.com/contact">CONTACT</a> | <a href="http://www.mysite.com/site">SITE
MAP</a> | <a href="http://www.mysite.com/policy">POLICY</a></b></span></td>
      </tr>
<!-- END footer -->
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Themes.php code
« Reply #1 on: May 09, 2005, 08:14:25 pm »

Try using the file anycontent.php for adding your desired content.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Themes.php code
« Reply #2 on: May 10, 2005, 09:48:31 am »

using anycontent has the drawback of your custom code only coming up on the index page. If you want it to apear on all of your coppermine pages, you should use a custom footer. If the custom footer is meant to contain dynamc data, you will have to modify theme.php in another way (which has been described quite often, search for "custom footer", but is not that easy to accomplish for newbies). As you're trying to add static content, just edit themes/yourtheme/template.html and add your piece of code there.
Logged
Pages: [1]   Go Up
 

Page created in 0.139 seconds with 20 queries.