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: Adding extra links on header  (Read 2978 times)

0 Members and 1 Guest are viewing this topic.

leon043

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Adding extra links on header
« on: February 03, 2009, 09:58:16 pm »

Alright I've been trying to add new links to different sites I want to connect my site to. If I look at the page source I can easily find it's location as to where I need to add it, but if I look around for the php file that it's being taken from I cannot find it. I searched around trying to find help, but I couldn't find any. Any help would be much appreciated.
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Adding extra links on header
« Reply #1 on: February 04, 2009, 08:00:53 am »

Logged

leon043

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Adding extra links on header
« Reply #2 on: February 04, 2009, 06:30:36 pm »

alright thank you. i feel really dumb now lol  :D

but i am curious as to if it's possible to add more than 1 link to the top?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding extra links on header
« Reply #3 on: February 04, 2009, 07:58:15 pm »

Well, you want to actually include more files I guess. Linking is something else. If you just need links, then edit themes/yourtheme/template.html and add as many links as you want to your custom theme.
If you want to actually include more files, create a small PHP file on your server that does the including. The custom header include setting in coppermine points to your little custom PHP script. That little script should then do all the including you need to see done. This is plain PHP, please look up the PHP documentation for the include and require commands. However, be warned: it is not very wise in terms of security nor stability to include files that are not under your control, i.e. on different sites.
If you need details, post details: posting a link to your gallery is almost mandatory for every support request anyway. Specify what you actually want to see done (including or linking). Specify what files you want to see included etc.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.