know ID of the category in theme.php Help PLEASE! know ID of the category in theme.php Help PLEASE!
 

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

know ID of the category in theme.php Help PLEASE!

Started by rogalde, July 18, 2006, 10:37:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rogalde

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

Nibbler

Depends where you are in the code, but $_GET['cat'] may work.

rogalde

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>

rogalde

how I can know CAT_ID then? in this line of  the theme.php

thanks!!

Sami

what are you trying to do?
do you want a special thumbnail for each category in your gallery index page?
‍I don't answer to PM with support question
Please post your issue to related board

rogalde


Joachim Müller


rogalde

I don't know "bbcode instead". I need know the category ID in this momment only. Is this possible?

thanks!

rogalde

I only need to know in that file, the variables of the MYSQL are equaled, for example  to {CAT_TITLE} .

thanks