Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#937 2011-09-07 22:10:43

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: glz_custom_fields

jakob wrote:

Easier still: use the “yyyy-mm-dd” format for sorting and a php snippet to display it in another format.

Ausgezeichnet, Jakob! Works like a charm.

Offline

#938 2011-09-08 10:31:48

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: glz_custom_fields

Jakob Nice snippet. Filed for future use in my open Textpattern library

Maybe also good to add as example to the custom field documentation. Or another place where we collect txp:php snippets!?


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#939 2011-09-08 16:42:53

ploinkr
Member
From: Montreal
Registered: 2007-12-06
Posts: 83

Re: glz_custom_fields

Ok, put it in textpattern.js – seems to be working :-)

Newbie question again… :-/
Where would I put the script to hide the extra Body textarea?
Many thanks,
Ben.

Last edited by ploinkr (2011-09-08 17:05:04)

Offline

#940 2011-09-08 17:21:54

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

Re: glz_custom_fields

@Ploinkr: I have bot_wtc, and I used that to insert the script.

Offline

#941 2011-09-08 19:38:48

ploinkr
Member
From: Montreal
Registered: 2007-12-06
Posts: 83

Re: glz_custom_fields

Thank you John – I didn’t know about that plugin, will check it out :-)

Offline

#942 2011-09-09 04:50:25

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: glz_custom_fields

I’ve reported a bug:
on multi-select, if last option is checked, then first (empty) option gets checked on reload (and some related thoughts on single selects, multi-selects and having a first empty option)

A quick summary of the bug: if user selects the last option in the multi-select, and saves the article, then, on page reload, this first empty option is also selected. Problem is, if the user saves the article again, without noticing this, both the empty option and the last option get saved into the database.

This affects v1.2.4 and v1.3.0, and find it a bit rare that it went under the radar till now.
Can anyone confirm you can replicate this bug on your installs?

I’ve provided a possible fix.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#943 2011-09-09 13:47:40

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: glz_custom_fields

maniqui wrote:

Can anyone confirm you can replicate this bug on your installs?

Yup, confirmed (1.3.0). And discovered that a multiselect doesn’t accept 0 as a value ;) (No complaint, Gerhard, happens probably only on a bugchase)

(Edited to add version)

Last edited by uli (2011-09-09 13:52:03)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#944 2011-09-09 16:08:38

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: glz_custom_fields

Hi Uli. Thanks for confirming the bug.

And discovered that a multiselect doesn’t accept 0 as a value.

Not sure if I understood. As value for which parameter?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#945 2011-09-09 19:54:43

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: glz_custom_fields

maniqui wrote:

Not sure if I understood. As value for which parameter?

In the “value” field on Extensions > Custom Fields. You can’t build a multi-select that has merely one “0” on any of its lines. Either the value isn’t saved (the list field is emptied) or you get a “You have an error in your SQL syntax”.

In the meantime I saw you can neither create a radio-selector nor a checkbox-selector that has exactly one 0 as a value for one of the buttons. And it’s far more likely sombody needs one of those selectors containing a 0 value than a multi-select with a 0. So I think this needs fixing in the upcoming version.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#946 2011-09-29 13:06:18

pafruu
Member
From: New Brunswick, Canada
Registered: 2010-01-14
Posts: 65

Re: glz_custom_fields

Am I missing something here?
I used you’re awesome plugin, which I believe is the greatest plugin ever, but for some reason I cannot post any <txp:article /> or <txp:article_custom> anywhere on the site.

What am I doing wrong?


I try, and I try, and I try…. and sometimes I achieve

Offline

#947 2011-09-29 13:15:45

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

Re: glz_custom_fields

Hi Patrick,

I’m no expert and excuse this suggestion if you’ve tried it already, but if you disable the plugin does <txp:article /> begin working again? Guess you may also need to <txp:hide>comment out</txp:hide> some code if you’ve calls to the plugin for this test.

If you’re still having problems, then at least you can count out this plugin.

Good luck, cheers, -Alan

Last edited by alanfluff (2011-09-29 13:16:46)


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

#948 2011-09-29 13:28:19

pafruu
Member
From: New Brunswick, Canada
Registered: 2010-01-14
Posts: 65

Re: glz_custom_fields

well, I havent thought of that, i deactivated it and it still didnt work so at least I know the plugin is not causing it.

thanks, I will try to find the answer elsewhere :)


I try, and I try, and I try…. and sometimes I achieve

Offline

Board footer

Powered by FluxBB