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 14892 May 15, 2002, 5:17 PM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
yogi 14444 May 16, 2002, 12:08 AM
Thread; hot thread Re: [yogi] [Download] Directory Depth Plugin
Ian 14344 May 16, 2002, 8:27 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14380 May 16, 2002, 9:21 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14391 May 16, 2002, 9:37 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14335 May 16, 2002, 9:55 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14360 May 16, 2002, 10:07 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14456 May 16, 2002, 10:12 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14473 May 16, 2002, 10:15 AM
Post; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14292 May 16, 2002, 10:22 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14352 May 16, 2002, 10:26 AM
Post; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14441 May 16, 2002, 10:30 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14474 May 16, 2002, 10:41 AM
Post; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14371 May 16, 2002, 10:58 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14267 May 16, 2002, 11:03 AM
Post; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14296 May 16, 2002, 11:09 AM
Post; hot thread Re: [sooke] [Download] Directory Depth Plugin
Paul 14351 May 16, 2002, 11:09 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14340 May 16, 2002, 11:11 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14396 May 16, 2002, 11:18 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Ian 14430 May 16, 2002, 11:21 PM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
yogi 14337 May 16, 2002, 11:55 PM
Thread; hot thread Re: [yogi] [Download] Directory Depth Plugin
Ian 14347 May 16, 2002, 11:56 PM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Andy 14227 May 17, 2002, 12:12 AM
Thread; hot thread Re: [Andy.] [Download] Directory Depth Plugin
Ian 14274 May 17, 2002, 8:03 AM
Thread; hot thread Re: [sooke] [Download] Directory Depth Plugin
Paul 14207 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