Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[Download] Directory Depth Plugin

Quote Reply
[Download] Directory Depth Plugin
Ok, I am not sure if this a good idea, so please read warning below.... but I just want to share this with anyone who wants it.

WARNING


***************************************************

Many bits of this were written by experts (Paul, Ivan (Yogi), webmaster and more), but edited and put together by a total amateur!! So, be very careful using on your system!!

The way it is now, it will install the column "Depth" into your category table, but will not remove this when you uninstall it. If you want it to do this, simply put the uninstall code in install.pm or delete the column from SQL.

Since I use this just for myself, I did not put this in. (I suppose I could have put the option in).

***************************************************

What it does:

Adds Directory Depth functionality to your Category table.

It has two functions:
  • Repair (repairs the depths for every category - you will need to run this after install)
  • Stats (this shows you a table of Directory Depths with the corresponding number of categories.


Uses:

I use it to:
  • see how burried my categories are becoming
  • calculate advertising costs
  • determine category complexity, and corresponding editor responsibility
  • complex category clean up functions (deletion)


Note:

I have added a modify_category hook, to prevent editors from messing about with the 'Depth' field, in case you are wondering why you cannot change it by editing a category. Just unselect this in "edit" if you want to be able to do this.

If you find or fix any errors in it, please tell me about it.

Smile

Last edited by:

sooke: May 15, 2002, 5:27 PM
Subject Author Views Date
Thread; hot thread [Download] Directory Depth Plugin Ian 14815 May 15, 2002, 5:17 PM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
yogi 14369 May 16, 2002, 12:08 AM
Thread; hot thread Re: [yogi] [Download] Directory Depth Plugin
Ian 14268 May 16, 2002, 8:27 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14305 May 16, 2002, 9:21 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14316 May 16, 2002, 9:37 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14260 May 16, 2002, 9:55 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14285 May 16, 2002, 10:07 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14381 May 16, 2002, 10:12 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14398 May 16, 2002, 10:15 AM
Post; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14217 May 16, 2002, 10:22 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14277 May 16, 2002, 10:26 AM
Post; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14366 May 16, 2002, 10:30 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14399 May 16, 2002, 10:41 AM
Post; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14296 May 16, 2002, 10:58 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14192 May 16, 2002, 11:03 AM
Post; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14221 May 16, 2002, 11:09 AM
Post; hot thread Re: [sooke] [Download] Directory Depth Plugin
Paul 14274 May 16, 2002, 11:09 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14265 May 16, 2002, 11:11 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14321 May 16, 2002, 11:18 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Ian 14355 May 16, 2002, 11:21 PM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
yogi 14262 May 16, 2002, 11:55 PM
Thread; hot thread Re: [yogi] [Download] Directory Depth Plugin
Ian 14272 May 16, 2002, 11:56 PM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14152 May 17, 2002, 12:12 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14199 May 17, 2002, 8:03 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Paul 14130 May 17, 2002, 8:07 AM
Thread; hot thread Re: [Paul] [Download] Directory Depth Plugin
Ian 2325 May 17, 2002, 8:11 AM
Post; hot thread Re: [Ian] [Download] Directory Depth Plugin
Ian 2226 May 28, 2002, 3:22 PM