4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: julien on February 04, 2003, 03:38:42 PM

Title: Show category/folder ID in Admin Panel
Post by: julien on February 04, 2003, 03:38:42 PM
Hi.

For an easier edition & correlation between admin/edition and tree of folder:

1/ open admin/category.php

2/ find
Quote
echo "<img src=\"".ROOT_PATH."admin/images/folder.gif\" alt=\"\"><b><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$cats['cat_id'])."\" target=\"_blank\">".$cats['cat_name']."</a>\n</b>&nbsp;&nbsp;&nbsp;&nbsp;";


3/ replace by
Quote
echo "<img src=\"".ROOT_PATH."admin/images/folder.gif\" alt=\"\">&nbsp;<b>".$cats['cat_id']."</b>&nbsp;<b><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$cats['cat_id'])."\" target=\"_blank\">".$cats['cat_name']."</a>\n</b>&nbsp;&nbsp;&nbsp;&nbsp;";


or put  $cats['cat_id'] where you want !

It shows the folder/category number on the category edition panel. :D
Title: [Mod] Show category/folder ID in Admin Panel
Post by: camo93 on February 04, 2003, 09:18:23 PM
Salut !

Tres pratique ! ca m'evite de poser la souris sur le lien :-)
Title: [Mod] Show category/folder ID in Admin Panel
Post by: julien on February 05, 2003, 09:17:02 AM
c'est pour cela que je l'ai fait :)

je bosse aussi sur le fait de retrouver exactement la même arborescence dans les répertoires que dans l'organisation des galeries qui, de plus, auraient un nom plus parlant que leur Id ;)

mais bon, c'est casse-pied de reprendre les scripts des autres

Si tu veux voir ma galerie, pointe toi sur julienbayle.net (http://julienbayle.net) d'ici demain ou après-demain :)

A+
Title: [Mod] Show category/folder ID in Admin Panel
Post by: camo93 on February 05, 2003, 10:48:09 AM
Super ;-) j'irais voir ton site.
J'ai posté un mod hier pour utiliser 4images sur un serveur avec restriction safe mode ! vu que l'auteur voulais pas le faire ;-(

@+ :-p
Title: [Mod] Show category/folder ID in Admin Panel
Post by: julien on February 05, 2003, 12:03:25 PM
héhé  :wink:

faut bien se débrouiller :D
Title: [Mod] Show category/folder ID in Admin Panel
Post by: ACmonKey on February 06, 2003, 02:03:21 AM
Très bien :wink:

Very good.

It's a good solution although I usually just put the mouse pointer over the category (in admin or when browsing) and see the cat ID number in the URL.
Title: [Mod] Show category/folder ID in Admin Panel
Post by: julien on February 06, 2003, 09:12:55 AM
Ok  :D

I'm working on the fact that folder should have a name corresponding to category name and not to category id number ...

Inform you when it's done :)
Title: [Mod] Show category/folder ID in Admin Panel
Post by: toto1 on May 06, 2003, 05:17:56 PM
simple mais tres pratique
thk