4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: kittyfx on October 26, 2002, 07:46:33 AM

Title: Finding Category ID
Post by: kittyfx 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
Title: Finding Category ID
Post by: pietg 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
Title: admin/categories.php
Post by: Chris 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\">";
Title: Finding Category ID
Post by: kittyfx on October 26, 2002, 08:18:48 PM
Thanks SO much, Chris! :) :) :)

kitty