forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: rogalde on July 18, 2006, 10:37:21 pm

Title: know ID of the category in theme.php Help PLEASE!
Post by: rogalde on July 18, 2006, 10:37:21 pm
Hi!. I need know ID of the categoria in theme.php.

I proved with {CAT_ID} but it did not work   

thanks for the help
Title: Re: know ID of the category in theme.php
Post by: Nibbler on July 18, 2006, 10:38:48 pm
Depends where you are in the code, but $_GET['cat'] may work.
Title: Re: know ID of the category in theme.php
Post by: rogalde on July 19, 2006, 03:44:06 pm
Hi!, this not work in theme.php. My example is:

.. in theme.php...

$categoria = $_GET['cat'];
....
......
.......
<!-- BEGIN catrow -->
........
....

                    <td colspan="2"><div align="center"><IMG title="Category" alt="Category" src="themes/mytheme/images/$categoria.gif" border=0></div></td>
                  </tr>
Title: Re: know ID of the category in theme.php
Post by: rogalde on July 19, 2006, 03:46:39 pm
how I can know CAT_ID then? in this line of  the theme.php

thanks!!
Title: Re: know ID of the category in theme.php Help PLEASE!
Post by: Sami on July 20, 2006, 08:17:46 am
what are you trying to do?
do you want a special thumbnail for each category in your gallery index page?
Title: Re: know ID of the category in theme.php Help PLEASE!
Post by: rogalde on July 20, 2006, 11:31:06 am
yes! with customized size.
Title: Re: know ID of the category in theme.php Help PLEASE!
Post by: Joachim Müller on July 20, 2006, 10:17:18 pm
Why not just use bbcode instead?
Title: Re: know ID of the category in theme.php Help PLEASE!
Post by: rogalde on July 25, 2006, 08:45:09 pm
I don't know "bbcode instead". I need know the category ID in this momment only. Is this possible?

thanks!
Title: Re: know ID of the category in theme.php Help PLEASE!
Post by: rogalde on July 25, 2006, 10:55:59 pm
I only need to know in that file, the variables of the MYSQL are equaled, for example  to {CAT_TITLE} .

thanks