Advanced search  

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

Pages: [1]   Go Down

Author Topic: know ID of the category in theme.php Help PLEASE!  (Read 14386 times)

0 Members and 1 Guest are viewing this topic.

rogalde

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
know ID of the category in theme.php Help PLEASE!
« 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
« Last Edit: July 19, 2006, 07:04:39 pm by rogalde »
Logged

Nibbler

  • Guest
Re: know ID of the category in theme.php
« Reply #1 on: July 18, 2006, 10:38:48 pm »

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

rogalde

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: know ID of the category in theme.php
« Reply #2 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>
Logged

rogalde

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: know ID of the category in theme.php
« Reply #3 on: July 19, 2006, 03:46:39 pm »

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

thanks!!
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: know ID of the category in theme.php Help PLEASE!
« Reply #4 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?
Logged
‍I don't answer to PM with support question
Please post your issue to related board

rogalde

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: know ID of the category in theme.php Help PLEASE!
« Reply #5 on: July 20, 2006, 11:31:06 am »

yes! with customized size.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: know ID of the category in theme.php Help PLEASE!
« Reply #6 on: July 20, 2006, 10:17:18 pm »

Why not just use bbcode instead?
Logged

rogalde

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: know ID of the category in theme.php Help PLEASE!
« Reply #7 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!
Logged

rogalde

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: know ID of the category in theme.php Help PLEASE!
« Reply #8 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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.