Author Topic: Show category/folder ID in Admin Panel  (Read 15957 times)

0 Members and 1 Guest are viewing this topic.

Offline julien

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://julienbayle.net
Show category/folder ID in Admin Panel
« 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
Julien

Offline camo93

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://central-galerie.com
[Mod] Show category/folder ID in Admin Panel
« Reply #1 on: February 04, 2003, 09:18:23 PM »
Salut !

Tres pratique ! ca m'evite de poser la souris sur le lien :-)

Offline julien

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://julienbayle.net
[Mod] Show category/folder ID in Admin Panel
« Reply #2 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 d'ici demain ou après-demain :)

A+
Julien

Offline camo93

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://central-galerie.com
[Mod] Show category/folder ID in Admin Panel
« Reply #3 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

Offline julien

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://julienbayle.net
[Mod] Show category/folder ID in Admin Panel
« Reply #4 on: February 05, 2003, 12:03:25 PM »
héhé  :wink:

faut bien se débrouiller :D
Julien

Offline ACmonKey

  • Newbie
  • *
  • Posts: 25
    • View Profile
[Mod] Show category/folder ID in Admin Panel
« Reply #5 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.
:(
Here is the list of my unanswered topics:

http://4homepages.de/forum/viewtopic.php?t=4001
http://4homepages.de/forum/viewtopic.php?t=5305

btw. V@no is a gr8 guy. He's answered almost all my questions. Thanks V@no ;)

Offline julien

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://julienbayle.net
[Mod] Show category/folder ID in Admin Panel
« Reply #6 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 :)
Julien

Offline toto1

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://www.gifanimer.com
[Mod] Show category/folder ID in Admin Panel
« Reply #7 on: May 06, 2003, 05:17:56 PM »
simple mais tres pratique
thk