Author Topic: Finding Category ID  (Read 6061 times)

0 Members and 1 Guest are viewing this topic.

Offline kittyfx

  • Newbie
  • *
  • Posts: 17
    • View Profile
Finding Category ID
« on: October 26, 2002, 07:46:33 AM »
Hi,

I'd like to know how to find out what is the ID number for a category after I create it. I ask this in regards to this post:

http://www.4homepages.de/forum/viewtopic.php?t=1451

Trying to figure it out. I'd like to upload many photos at one time. :)

Dabri posted:
Quote

First you have to create a category, this category has an id (e.g. 1) and at the same time 4images create in the folder media a folder 1 (1 = category ID)

After that you must upload your pictures in the desired folder (e.g. media/data/1) via your ftp-client.

After that you check for new images and choose the category.


Thanks,

Kitty

Offline pietg

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://www.totaaldigitaal.nl
Finding Category ID
« Reply #1 on: October 26, 2002, 02:25:39 PM »
Just hoover over the name of your category in the admin-panel.
In the statusbar (down in the screen) you can see the number of the category.

Piet

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
admin/categories.php
« Reply #2 on: October 26, 2002, 07:08:26 PM »
Or you can modify the php code to display it in the table.  Open admin/categories.php and search for this function:
Code: [Select]
function show_category_rows($cid = 0, $depth = 1) {
Inside that function and below this line:
Code: [Select]
   show_text_link($lang['add_subcategory'], "categories.php?action=addcat&cat_parent_id=".$cats['cat_id']);
Replace:
Code: [Select]

    echo "\n</td>\n<td align=\"center\">";

with:
Code: [Select]

    echo "&nbsp;&nbsp;CAT ID: <b>".$cats['cat_id']."</b>\n</td>\n<td align=\"center\">";

Offline kittyfx

  • Newbie
  • *
  • Posts: 17
    • View Profile
Finding Category ID
« Reply #3 on: October 26, 2002, 08:18:48 PM »
Thanks SO much, Chris! :) :) :)

kitty