From chipper at llamas.net Sat Mar 1 08:56:59 2003 From: chipper at llamas.net (Chris 'Chipper' Chiapusio) Date: Sat, 1 Mar 2003 08:56:59 -0500 (EST) Subject: [geeklog-devel] Forum Issues In-Reply-To: <001b01c2de1b$ee3fd840$9a0a10ac@xpbl1> Message-ID: This is a program for testing magic_quotes and database inserts of quotes Currently magic_quotes_gpc is set to be off Saving i can't help you if you won't help yourself as a new record ... magic_quotes_gpc is off - using addslashes() Record saved ok. PHP Version 4.2.2 [chiapu at chipsworld html]$ rpm -q httpd httpd-2.0.40-11 On Wed, 26 Feb 2003, Blaine Lang wrote: >I've created this little test program - and I expect it will work for all >but let's give it a try... > >Create a test table as per the SQL in the program header comments >Place the file in your geeklog public_html directory. > >Tom, I already tried this on the gplugs site and it worked fine.. >http://gplugs.sourceforge.net/magictest.php > >Detected the magic_quotes_gpc was on >Auto escaped the quotes >SQL insert worked fine > >Soo ... that tells us it should work.. > >Blaine > ------ Please encrypt anything important. PGP Key: http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0x6CFA486D "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety " - Benjamin Franklin From dwight at trumbower.com Sat Mar 1 23:46:20 2003 From: dwight at trumbower.com (Dwight Trumbower) Date: Sat, 01 Mar 2003 22:46:20 -0600 Subject: [geeklog-devel] UDFs Message-ID: <5.1.0.14.2.20030301221230.00b2d1a8@mail.tsystemscorp.com> This the first proposal for dynamic udfs in geeklog2. I have done something similar in the past with other systems. This works better than having a set number of udfs in a table. It is easier to retrieve the data because you don't have to check all predefined fields You can do a simple SELECT * from udfs where scope ="entryscreen", instead of SELECT udf1, udf2, udf3, udf4, udf5 from fixedudfs, which you then would have to check which udfs where used. Take a look the following an poke holes in it. In order to make things flexible for udfs, it makes sense to have a table with unlimited udfs. Here the goal is for flexibility and not readability. Start with the basic table Create Table udfs( udfid name - field name on ui datatype - could have a lookup table but might need to denormalize for performance scope - Where it is used, could be global, screen name, form name, etc. udfvalue - stored data for the udf You could store the potential values in another table if you wanted to dynamically create a list. i.e. attributes for a SELECT element Create table udfattributes udfid - links to the udf table name - attribute name, used in list If you want security at a field level, cross reference table would need to be incorporated. Create Table udfrights udfid groupid Fire away. Dwight dwight at trumbower.com From dwight at trumbower.com Sun Mar 2 00:24:10 2003 From: dwight at trumbower.com (Dwight Trumbower) Date: Sat, 01 Mar 2003 23:24:10 -0600 Subject: [geeklog-devel] Forum index Message-ID: <5.1.0.14.2.20030301232116.00b38f10@mail.tsystemscorp.com> On the topic table, it would probably help to have and index on forum and pid. The pid is used quite often to retrieve data. Dwight dwight at trumbower.com From mark.limburg at baesystems.com Sun Mar 2 18:58:20 2003 From: mark.limburg at baesystems.com (LIMBURG, Mark) Date: Mon, 3 Mar 2003 10:28:20 +1030 Subject: [geeklog-devel] CVS to Release Message-ID: Howdy, Do we have a plan for the next release from CVS? Are there any features we're still looking to implement? Are we looking at a bugfix release? Questions, questions, questions ... :) Regards, Mark Limburg Team Leader, Unix Operations, Information Systems BAE SYSTEMS, AUSTRALIA PO Box 1068, Salisbury South Australia, 5108 Phone: +61 8 8480 7971 Fax: +61 8 8480 8866 Mobile:+61 4 0448 0599 From tony at tonybibbs.com Mon Mar 3 11:26:49 2003 From: tony at tonybibbs.com (Tony Bibbs) Date: Mon, 3 Mar 2003 10:26:49 -0600 (CST) Subject: [geeklog-devel] UDFs In-Reply-To: <5.1.0.14.2.20030301221230.00b2d1a8@mail.tsystemscorp.com> Message-ID: On Sat, 1 Mar 2003, Dwight Trumbower wrote: > This the first proposal for dynamic udfs in geeklog2. I have done something > similar in the past with other systems. This works better than having a set > number of udfs in a table. It is easier to retrieve the data because you > don't have to check all predefined fields You can do a simple SELECT * from > udfs where scope ="entryscreen", instead of SELECT udf1, udf2, udf3, udf4, > udf5 from fixedudfs, which you then would have to check which udfs where used. > > Take a look the following an poke holes in it. > > In order to make things flexible for udfs, it makes sense to have a table > with unlimited udfs. Here the goal is for flexibility and not readability. > > Start with the basic table > > Create Table udfs( > udfid > name - field name on ui > datatype - could have a lookup table but might need to > denormalize for performance > scope - Where it is used, could be global, screen name, form name, > etc. > udfvalue - stored data for the udf Where is min/max value fields? Also i'd consider two value fields: udf_shortvalue varchar(255); udf_longvalue text; We may want to move long values to separate table to speed up table scans: create table udflongvals udfid - FK and PK udflongvalue text > > You could store the potential values in another table if you wanted to > dynamically create a list. > i.e. attributes for a SELECT element > > Create table udfattributes > udfid - links to the udf table > name - attribute name, used in list Definitely need this I think you'll need a value field so that data like: udfid: 1 udfvalue: 1 udfname: $_LANG['plaintext'] would give you: