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

[New Plugin] Multi_Categories

Quote Reply
[New Plugin] Multi_Categories
Not a very complex plugin. It will simply allow you to add categories in bulk. Simple enter into a text box, a list of what you want to add, i.e;

Category_Name:::Category Of:::Description:::Meta Description:::Meta Keywords:::Header:::Footer:::Category Template

And then the plugin will 'Import' this list of categories into the database. Includes quite a bit of error checking, such as making sure that the father category exists; the category trying to be added doesn't already exists; the template set trying to be added actually exists, and more.

I'm gonna be putting out a beta version of this sometime today (within the next few hours). If you wanna give it a go, please let me know, and I'll get a copy sent over.

Price is going to be $10.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [New Plugin] Multi_Categories In reply to
I'm not sure why you'd go to the trouble of doing this plugin when MySQLMan's Import feature will do the same thing as well as let you use whatever delimeter you want and let's you import from a file Wink
Quote Reply
Re: [Paul] [New Plugin] Multi_Categories In reply to
It was a request from a client. Its also helpful for people who do not know how to use MySQLMan Wink

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [New Plugin] Multi_Categories In reply to
Also the name 'Multi_Categories' can be misunderstand...
Better the name would be "Import Multi_Categories".
This describes exactly what it does...

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [Andy] [New Plugin] Multi_Categories In reply to
Andy,

Will this work with browser.cgi as well?

All the best
Shaun
Quote Reply
Re: [qango] [New Plugin] Multi_Categories In reply to
Not currently. This is something I want to add... Currently you have to access it via the 'Plugins' menu, and an option on the plugins menu.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [New Plugin] Multi_Categories In reply to
Andy,

It would be great if you could extend it to work with the browser - I can just see myself dropping 30 sub-cat names into a box and pressing one button to add them all Smile

All the best
Shaun
Quote Reply
Re: [qango] [New Plugin] Multi_Categories In reply to
Few more features added, and few bugs fixed. I'm still working on getting it to work on the browser Quango Tongue

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [New Plugin] Multi_Categories In reply to
Hey Andy,

I just tried your plugin. Guess what..

10845 Second Level Categories in 2 minutes and 35 seconds.

All this without any error and pratically *no* load time on the server.

Thanks a lot for the wonderful plugin. It can surely save tons of time for anyone.

Vishal Thakkar

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] [New Plugin] Multi_Categories In reply to
Glad to hear it Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [New Plugin] Multi_Categories In reply to
An idea for this plugin is to create one that can handle multiple links.

what do you think, Andy?
Quote Reply
Re: [ericho] [New Plugin] Multi_Categories In reply to
I don't see why this wouldn't be possible. May be a week or so before I can do it (maybe an early xmas present...lol). I'll see what I can come up with...

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [New Plugin] Multi_Categories In reply to
Finally managed to get a demo up. You can see details on it at http://www.linkssql.net/plugins.html

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Jan 14, 2003, 3:16 AM
Quote Reply
Re: [Andy] [New Plugin] Multi_Categories In reply to
Very useful idea, Andy. Thanks! Smile

------------------------------------------

Last edited by:

DogTags: Jan 14, 2003, 7:10 AM
Quote Reply
Re: [DogTags] [New Plugin] Multi_Categories In reply to
Just had some people ask for an example of how to use the plugin. Here is a simple one;

Code:
test
test:::testing_sub
A:::test/testing_sub
B:::test/testing_sub
C:::test/testing_sub
D:::test/testing_sub
A:::test/testing_sub/A
B:::test/testing_sub/A

That will create

test
test/testing_sub
test/testing_sub/A
test/testing_sub/B
test/testing_sub/C
test/testing_sub/D
test/testing_sub/A/A
test/testing_sub/A/B

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Post deleted by webmaster33 In reply to
Quote Reply
Re: [Andy] [New Plugin] Multi_Categories In reply to
I'm having a problem with the plugin.

It will only add the last subcategory to the the correct main cat, the others will be placed in the root category.

I have an test installation on a windows server at home and it runs on this with the same tar file without problems.

I'm copying and pasting the exact same information into each installation.


Sample:
Articulated Trucks:::Classifieds/Items For Sale
Asphalt Equipment:::Classifieds/Items For Sale
Backhoes:::Classifieds/Items For Sale
Ball Rod and S.A.G. Mills:::Classifieds/Items For Sale

Added Articulated Trucks to Classifieds/Items For Sale
Added Asphalt Equipment to Classifieds/Items For Sale
Added Backhoes to Classifieds/Items For Sale
Added Ball Rod and S.A.G. Mills to Classifieds/Items For Sale


1 st 3 are loaded in the root cat and the last in the Classifieds/Items For Sale.


What could the reason be ?

Regards

minesite
Quote Reply
Re: [minesite] [New Plugin] Multi_Categories In reply to
Do you have any tailing spaces at the end of the first few lines? i.e;

Articulated Trucks:::Classifieds/Items For Sale(space)
Asphalt Equipment:::Classifieds/Items For Sale(space)
Backhoes:::Classifieds/Items For Sale(space)
Ball Rod and S.A.G. Mills:::Classifieds/Items For Sale(space)

That can cause it to be looking for an invalid category, i.e with an extra space at the end.

I'll be brining out a new version soon, which will take this into account, and also support heirarchical category support, i.e;

/Hotels/UK/England

...would make;

/Hotels
/Hotels/UK
/Hotels/UK/England

Should have this out in the next couple of weeks :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [New Plugin] Multi_Categories In reply to
Andy

Tried all of that, also used underscores and single cat names.
As I said the same installation works on the test site at home.Pirate

Got me beat, if I had hair I'd be pulling it out.

Regards

minesite
Quote Reply
Re: [minesite] [New Plugin] Multi_Categories In reply to
Could you PM over a bit more sample data, and your LinksSQL login details of where you re trying it? I'll have a look for you.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [New Plugin] Multi_Categories In reply to
I have just put out version 2 of Multi_Categories. I don't see the point in duplicating my post at the UltraNerds forum, so here is the link to it: http://www.ultranerds.com/...rum.cgi?post=455#455

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [New Plugin] Multi_Categories In reply to
Hi Andy, and happy new year ! Smile

I would like to use your plugin, but I have a question.

It would be possible to add more fields (GLinks 3.3.0) ?

I would like to add several categories, but the data are more important (10 fields).

Or, it is possible to use phpMyAdmin for example ?

Thanks ! Mick
Quote Reply
Re: [MJ_] [New Plugin] Multi_Categories In reply to
Hi,

Sure, it can be edited to work with more fields (requires editing some lines of code in the plugin though)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!