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 a category button to intermediate image page  (Read 2228 times)

0 Members and 1 Guest are viewing this topic.

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
adding a category button to intermediate image page
« on: February 16, 2007, 02:10:02 am »

Been trying to add a category button to the intermediate image page - but can not get the link to land on the catgory for the album images being viewed.

Any idea how to code this?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: adding a category button to intermediate image page
« Reply #1 on: February 16, 2007, 03:38:29 am »

Try the variable $cat (make sure to set it global when calling from within a function). Might be an issue for meta albums tough, as they reside in no particular category.
Logged

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Re: adding a category button to intermediate image page
« Reply #2 on: February 16, 2007, 07:19:04 am »

Closer...but not quite.
$cat takes me to:
/index.php?cat=-36 (which has a (-) in the address and is referencing an album rather than the category).

GauGau; know you're short with instructions - but right on when you give them - if you can provide anymore direction I'll try my best to work it out over here.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.