Gossamer Forum
Skip to Content



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

Tables version 3 pre-release

Quote Reply
Tables version 3 pre-release
 As I suspected, there came a time in some of my development where it would be needed to edit ALL keys with any name and multiple fields. This also includes foreign keys (when supported).

Here is version 2:
http://www.gossamer-threads.com/...orum.cgi?post=297850

Because I have been doing a lot of my development using GCommunity, I finished tables version 3 using that.



As you can see it displays all keys, all fields involved, and allows for multiple keys.



I had the program get rid of any options that are not functionable... (thanks jscript!)


I plan on translating this plugin for use with Links in the next few weeks, but since I finished this version for COMMUNITY, I figured I would post it now.

For those of you who are avid developers and who use community, try it out and let me know what you think... hopefully I will have the links version ready soon.

Good luck!

- Jonathan
Quote Reply
Re: [jdgamble] Tables version 3 pre-release In reply to
Okay, so I finished translating the version for links (it didn't take as long as I thought).

Let me know what you think, if you find any bugs, if you have any suggestions, comments, or questions, etc.

- Jonathan

Last edited by:

jdgamble: Oct 25, 2007, 7:17 PM
Quote Reply
Re: [jdgamble] Tables version 3 pre-release In reply to
Hi,

Looks wicked :)

Only suggestion I have (I've made this change to the copy I have), is to edit:

Code:
if ($file ne '.' && $file ne '..' && $file ne 'database.def') {

..to

Code:
if ($file ne '.' && $file ne '..' && $file ne 'database.def' && $file =~ /\.def/) {

Basically, the reason for this - is cos if you have other files (or folders) in your def's folder, it will try and read them as tables, which they arn't =)

Cool plugin though - thanks for sharing.

Cheers

Andy (mod)
andy@ultranerds.com



Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Tables version 3 pre-release In reply to
To neaten things up:

Code:
if (substr($file, -4) eq '.def' && $file ne 'database.def') {
Quote Reply
Re: [jdgamble] Tables version 3 pre-release In reply to
Hi,

I've attached the GForum version to this post for anyone who needs it :) (uses this latest version)

Cheers

Andy (mod)
andy@ultranerds.com



Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [jdgamble] Tables version 3 pre-release In reply to
Hi Jonathan,

I do not know if you always work on this plugin, but I have an error message :

A fatal error has occured:
Unable to drop: glinks_Links cannot be dropped as table still has references to it at /.../Plugins/Tables.pm line 204.
Please enable debugging in setup for more details.

You have an idea ?

Thanks, Mick
Quote Reply
Re: [MJ_] Tables version 3 pre-release In reply to
For which version? GForum, GLinks, or GCommunity?

- Jonathan
Quote Reply
Re: [jdgamble] Tables version 3 pre-release In reply to
Oops ! GLinks.

Mick
Quote Reply
Re: [MJ_] Tables version 3 pre-release In reply to
That's because "glinks_Links" is one of the main tables used in GLinks. The entire plugin works off of GLinks, and so it is hence needed for the plugin to work.

- Jonathan
Quote Reply
Re: [jdgamble] Tables version 3 pre-release In reply to
Thanks. Smile

Is the proposal of Andy corrected in the last file zip?

Thanks for your answer. Mick