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?
Or you could just upgrade to 1.3 where this comes as standard ;)
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...
Use Winmerge (http://winmerge.sourceforge.net/) - 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.
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