Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#511 2009-09-30 08:26:25

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: glz_custom_fields

jstubbs wrote:

I had a custom_11 set defined but deleted it before installing the latest version of glz_.

That might be related to max_custom_fields preference. If you have only 10 custom sets, make sure this variable value is also 10.

This might also help explain what’s going on

Offline

#512 2009-09-30 08:31:21

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: glz_custom_fields

masa wrote:

the plugin allows the use of any characters, spaces in cf names. Are those now safe to use?

This is a bug, it will be fixed in the next version. Thanks for spotting it!

I will try to get the next version out sometimes next week, this will include bug fixes and small tweaks, it won’t however include sed_section_fields functionality.

Offline

#513 2009-09-30 14:36:53

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 1,000
Website

Re: glz_custom_fields

johnstephens wrote:

Is there currently any way to set the datepicker’s date format? My data uses isodate format with hyphens. The hyphens aren’t as important as the yyyy mm dd order. Any ideas?

Patient, heal thyself. The solution was to edit glz preferences under Admin > Preferences > Basic > glz_custom_f.

Now my problem is enabling the datepicker to select past dates. Any ideas?

Thanks again for making such an awesome plugin!

Offline

#514 2009-09-30 15:39:00

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

Re: glz_custom_fields

gerhard wrote:

masa wrote: the plugin allows the use of any characters, spaces in cf names. Are those now safe to use?

This is a bug, it will be fixed in the next version. Thanks for spotting it!

OK, no problem.
What about the other two issues ?

Offline

#515 2009-09-30 16:07:52

thermofunk
New Member
From: Argentina
Registered: 2009-03-12
Posts: 9
Website

Re: glz_custom_fields

Hi Gerhard, I bought this plugin specially for the glz_custom_fields_search_form, now is not working and wet_haystack plugin is not solving my problem, it doesn’t work ok with Multi-Lingual Publishing Package. I need the dropdowns and checkboxes in the search form as I use to have, any suggestions about how to fix it? Many thanks, Martín.

Offline

#516 2009-09-30 16:41:40

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: glz_custom_fields

John,

in the plugin code, line 1260, put this code {startDate:‘01/01/1996’} from your example :

$(".date-picker").datePicker({startDate:'01/01/1996'});

To put in the prefs, Gerhard ? With other settings like choice of language, if possible ???

Offline

#517 2009-09-30 19:42:45

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 1,000
Website

Re: glz_custom_fields

Thanks, J.P. I applied the hack, and I verified by viewing source in the Write tab that the startDate was loading, but it still had past dates disabled.

This was because I had changed the date format to yyyy-mm-dd, as I mentioned above. Once I changed the startDate to use the same format, everything worked fine.

To Gerhard: If you develop a preferences UI to enable past date selected, keep in mind that the date format has to be consistent. Also, 1996 wasn’t early enough for my purpose— I set it to 1978. Thanks again, folks!

Offline

#518 2009-09-30 23:42:38

woof
Member
Registered: 2004-08-01
Posts: 128

Re: glz_custom_fields

Hi Gerhard, a question re Preferences.

In the Basic tab under Preferences I see 4 preferences under the heading glz_custom_f, the last of which is migrated and then in the Advanced tab under the heading Admin I see glz_custom_fields_migrated. Both have the value 1.
Is this duplication? If not what’s the difference between them please?

Offline

#519 2009-10-01 01:11:07

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 1,000
Website

Re: glz_custom_fields

It would make a whole lot of sense to include date-picker prefs under the Add/Edit custom_x set when “Date Picker” is selected, rather than under the Basic site prefs. This would be consistent with the settings for other custom field types, and that’s the first place I looked— it wasn’t until delving into the plugin code that it dawned on me to check the site prefs.

If that was the case, you could have date pickers that used different formats for different custom fields, or different “starting dates” (allowing some to accept past data, and others to accept future dates). Could the javascript be written to target the specific element ids instead of .date-picker class?

Don’t mind me if all of this sounds too grandiose— this is an awesome plugin, and I trust in your vision for it’s development! Being able to customize the date-pickers further is very useful for me, but my cases might be toward the edge of the curve; I don’t know. ;)

Offline

#520 2009-10-02 16:33:41

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: glz_custom_fields

John,
last days, before the release of 1.2.2 glz_custom_fields, I try to insert in my backend a datepicker on a custom field.

With bloke new admin theme plugin (and new txp theming !) : very easy.
Just edit the function html_head to insert the datepicker code.

I try first the jquery UI datepicker : works fine as you don’t modify the date format (I use yy-mm-dd).
So I try an other jQuery datepicker : http://keith-wood.name/datepick.html works here without any problem.

Maybe an alternative to gerhard choice ?

function html_head()
	{
       return '<link href="'.$this->url.'textpattern.css" rel="stylesheet" type="text/css" />'.n.
                  '<link type="text/css" href="/textpattern/js/datepicker/css/jquery.datepick.css" rel="stylesheet" />'.n.
                  '<script type="text/javascript" src="/textpattern/js/datepicker/js/jquery.datepick.js"></script>'.n.
	          '<script type="text/javascript" src="/textpattern/js/datepicker/js/jquery.datepick-fr.js"></script>'.n.
                  '<script type="text/javascript">'.n.
                        '$(document).ready(function() {'.n.
				'$("#custom-1").datepick({dateFormat: "yy-mm-dd", altField: "#custom-2", altFormat: "DD d MM yy"});'.n.
				'});'.n.
	          '</script>'.n;
}

Offline

#521 2009-10-04 18:36:34

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: glz_custom_fields

jstubbs wrote

Also see an error in the sidebar under “Advanced options” in the Write tab:
Notice: Undefined variable: custom_11_set in /users/home/me/domains/domain.com/web/public/v2/textpattern/include/txp_article.php on line 478
I had a custom_11 set defined but deleted it before installing the latest version of glz_.

gerhard responded

That might be related to max_custom_fields preference. If you have only 10 custom sets, make sure this variable value is also 10. This might also help explain what’s going on

gerhard had said previously

The bug occurs when there are unsequential custom sets. In talks with Robert, looking for a solution.

My experience: I am having the same problem as Jonathan. I set the max_custom_fields preference to ten, after which no error(s) like Jonathan’s occur. But then, when I add new fields in the glz_custom_fields extension tab the error(s) return. I say error(s) because for each field not in sequence above 10 returns an error. Furthermore adding custom_11 is not possible from the glz_custom_fields extension tab. Any other gaps in sequence above 10 will however be filled in with a new custom field creation.

I hope the you (Gerhard) and Robert don’t have to much trouble finding a solution.

One bug: When going to myssite.com/textpattern/index.php?event=plugin_prefs.glz_custom_fields I get “Restricted Access”. My TXP core is 4.2 and fresh and clean but the database was created a few versions ago. I don’t know if the state the database is in (some prefs?) can likely have an effect? I switched all plugins off to see if there was a conflict. There wasn’t.

edit: I admit to not knowing what tables had and now have all the custom field related data for vanilla txp and for glz-ified txp. If I did I might have had a solution.

Last edited by whaleen (2009-10-04 18:40:11)


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

#522 2009-10-08 02:21:33

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: glz_custom_fields

Boy I wish I had read the last few pages of this thread. Just deleted custom_5_set and now I’m served this error on the write page:

Notice: Undefined variable: custom_5_set in /my/site/domain.com/textpattern/include/txp_article.php on line 478

Any news on a patch?

And keep up the great work. This plugin is as essential as zem_contact_reborn.

Update: This is suddenly a very big deal. Because of this, I cannot publish any new articles. Going into phpMyAdmin to see what else I can break.

Update #2: Well I dove into phpMyAdmin just to confirm custom_5 was deleted from the textpattern table, and it was. I recreated it. I can now publish and save new articles, but I am still getting the error above, and custom_5_set does not appear at all in the admin screen for glz_custom_fields. However, considering I know zilch about MySQL, any fiddling I do in phpMyAdmin that does not directly result in melting the core of the entire interweb a minor victory.

Last edited by kevinpotts (2009-10-08 02:50:51)


Kevin
(graphicpush)

Offline

#523 2009-10-08 09:46:15

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: glz_custom_fields

Hi Kevin,

I found that creating a new custom field (from within glz_custom_fields) for the deleted location got rid of that warning.

Last edited by decoderltd (2009-10-08 09:47:41)

Offline

#524 2009-10-08 12:48:43

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: glz_custom_fields

@decoderltd — That seems to have worked. It threw me an initial duplicate column error, but after I clicked away, all errors seem to be gone and all is right with the world. Thanks!

Last edited by kevinpotts (2009-10-08 12:49:10)


Kevin
(graphicpush)

Offline

#525 2009-10-08 14:10:06

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: glz_custom_fields

gerhard, can we twist your arm while we have your attention-ish to do another rev of glz with some of the simpler feature requests and bug squashies?

Offline

Board footer

Powered by FluxBB