Category images Category images
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Category images

Started by ludde, June 13, 2004, 01:30:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ludde

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...


<!-- 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?


<!-- 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?

jack

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

ludde

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...

skybax

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.
(https://coppermine-gallery.com/forum/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

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