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 14910 May 15, 2002, 5:17 PM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
yogi 14461 May 16, 2002, 12:08 AM
Thread; hot thread Re: [yogi] [Download] Directory Depth Plugin
Ian 14361 May 16, 2002, 8:27 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14397 May 16, 2002, 9:21 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14408 May 16, 2002, 9:37 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14352 May 16, 2002, 9:55 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14377 May 16, 2002, 10:07 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14473 May 16, 2002, 10:12 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14490 May 16, 2002, 10:15 AM
Post; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14309 May 16, 2002, 10:22 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14369 May 16, 2002, 10:26 AM
Post; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14458 May 16, 2002, 10:30 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14491 May 16, 2002, 10:41 AM
Post; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14388 May 16, 2002, 10:58 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14284 May 16, 2002, 11:03 AM
Post; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14313 May 16, 2002, 11:09 AM
Post; hot thread Re: [sooke] [Download] Directory Depth Plugin
Paul 14368 May 16, 2002, 11:09 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14357 May 16, 2002, 11:11 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14413 May 16, 2002, 11:18 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Ian 14447 May 16, 2002, 11:21 PM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
yogi 14354 May 16, 2002, 11:55 PM
Thread; hot thread Re: [yogi] [Download] Directory Depth Plugin
Ian 14364 May 16, 2002, 11:56 PM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14244 May 17, 2002, 12:12 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14291 May 17, 2002, 8:03 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Paul 14224 May 17, 2002, 8:07 AM
Thread; hot thread Re: [Paul] [Download] Directory Depth Plugin
Ian 2336 May 17, 2002, 8:11 AM
Post; hot thread Re: [Ian] [Download] Directory Depth Plugin
Ian 2239 May 28, 2002, 3:22 PM