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: Category images  (Read 2817 times)

0 Members and 1 Guest are viewing this topic.

ludde

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Category images
« on: June 13, 2004, 01:30:16 am »

I have a problem, I would like the categorys to have picture associated with them, like the albums. This is how the code looks like right now...

Code: [Select]
<!-- BEGIN catrow -->
<tr><td width="108" height="83" align="center" bgcolor="#EEEBD8">

IMAGE SHOULD GO HERE...

</td><td witdth="450" valign="top"><b>

{CAT_TITLE}

</b><br><br>{CAT_DESC}<br><br>Contains {ALB_COUNT} albums and {PIC_COUNT} images.</td></tr>
<!-- END catrow -->

But is it possible to do something like this?

Code: [Select]
<!-- BEGIN catrow -->
<tr><td width="108" height="83" align="center" bgcolor="#EEEBD8">

<img src="../images/{CAT_NAME}.jpg">

</td><td witdth="450" valign="top"><b>

{CAT_TITLE}

</b><br><br>{CAT_DESC}<br><br>Contains {ALB_COUNT} albums and {PIC_COUNT} images.</td></tr>
<!-- END catrow -->

I´m not good at PHP or anything, but for me it seems like you could just copy the {CAT_TITLE} function and remove all the "crap" around it, and just leave the actual categoryname and then name it {CAT_NAME}.

Then offcourse you´ll have to create the images yourself and put them in "../images/" and name them as the same name of the category the are going to represent.

Does anyone understand what I´m saying?  :)
And more importantly, can it be done?
Logged

jack

  • VIP
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 279
Re: Category images
« Reply #1 on: June 13, 2004, 01:57:32 am »

Or you could just upgrade to 1.3 where this comes as standard ;)
Logged
Please do not contact me for support directly - instead: post on this board!

ludde

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Category images
« Reply #2 on: June 13, 2004, 12:15:30 pm »

I know this is standard in the 1.3, but I have made a lot of changes in other files, not just the theme.php and template.html... And therefore there will be quite some work for me todo if i upgrade.

But as you said, upgrading is one solution...
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: Category images
« Reply #3 on: August 15, 2004, 09:06:04 pm »

Use Winmerge - to compare your file to the current release. Also another tip that I use is to keep a secondary txt file going with every change that I make to any file so I can pull them out later and apply to a new release that comes out.
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Category images
« Reply #4 on: August 16, 2004, 08:46:28 am »

if you're only concerned about your custom theme, help is on the way: cpg1.3.1 comes with a guide how to make cpg1.2.x themes work with cpg1.3.x: http://coppermine.sourceforge.net/demo/docs/theme.htm

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.