Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#109 2024-07-25 14:21:55

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,904
Website GitHub

Re: glz_custom_fields v2 beta for Textpattern v4.7

Hi Gil, actually they – and a few others – have all been made already in my GitHub repo

#1: here
#3: here

and #2 is long gone, which makes me think you might have been using Gerhard’s very old version.


TXP Builders – finely-crafted code, design and txp

Online

#110 2024-07-25 14:38:07

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: glz_custom_fields v2 beta for Textpattern v4.7

jakob wrote #337458:

Hi Gil, actually they – and a few others – have all been made already in my GitHub repo

#1: here
#3: here

and #2 is long gone, which makes me think you might have been using Gerhard’s very old version.

Oh thank you Julian, good to know, I have been working on an old site that uses v2.0 beta, oops 👴, will check your new version code 👍🙏

Offline

#111 2024-07-27 16:25:56

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: glz_custom_fields v2 beta for Textpattern v4.7

jakob wrote #337458:

my GitHub repo

Hi, I’m trying to use your new version but I can’t find the new txt installation file, when I visit the dist folder there is only the none fixed glz_custom_fields_v2.0.1_zip.txt file from 3 years ago without the PHP8 fixes.

Offline

#112 2024-07-28 08:52:27

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,904
Website GitHub

Re: glz_custom_fields v2 beta for Textpattern v4.7

THE BLUE DRAGON wrote #337480:

Hi, I’m trying to use your new version but I can’t find the new txt installation file, when I visit the dist folder there is only the none fixed glz_custom_fields_v2.0.1_zip.txt file from 3 years ago without the PHP8 fixes.

Sorry about that. Try glz_custom_fields_v2.0.5_zip.txt. Let me know if it works well for you and I can update the changelog and title post.

Note: It doesn’t yet include the most recent commit with CSP-compatible script and style tags as I’m still tracking down an anomaly that may or may not have to do with this plugin.


TXP Builders – finely-crafted code, design and txp

Online

#113 2025-05-12 07:10:50

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,384
Website

Re: glz_custom_fields v2 beta for Textpattern v4.7

Textpattern 4.9-dev + PHP 8.4.x
glz_custom_fields is at version 2.0.5

The default value for a radio set is wrapped in a { } as suggested on the cf admin /setup pane. However, somewhat unexpectedly on the Write panel the output also includes the { } wrapper.

screen grab for a yes/no radio set.

Bug or misunderstanding on my part? (I don’t think it used to be the case in the past)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#114 2025-05-12 07:12:00

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,904
Website GitHub

Re: glz_custom_fields v2 beta for Textpattern v4.7

Thanks for the report. I’ll check it and see if I can repair that.


TXP Builders – finely-crafted code, design and txp

Online

#115 2025-05-12 09:02:30

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,904
Website GitHub

Re: glz_custom_fields v2 beta for Textpattern v4.7

v2.0.6 should fix that. If there are any problems, let me know.


TXP Builders – finely-crafted code, design and txp

Online

#116 Yesterday 01:32:38

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: glz_custom_fields v2 beta for Textpattern v4.7

Thank you very much Jakob for continuously keeping this important plug-in up to date.

Offline

#117 Yesterday 01:56:45

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,384
Website

Re: glz_custom_fields v2 beta for Textpattern v4.7

jakob wrote #339691:

v2.0.6 should fix that. If there are any problems, let me know.

Yes, both type=radio and select now display nicely. Thanks .


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#118 Yesterday 07:28:29

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,384
Website

Re: glz_custom_fields v2 beta for Textpattern v4.7

jakob wrote #339691:

v2.0.6 should fix that. If there are any problems, let me know.

I did some more (light) testing and all appear to work as expected – configuring a CF, write panel output, public side usage. Not tested: date and time CF and custom script based CF.

BTW, in the release notes you mentioned:

Some CSP aware inclusion of style and script blocks

With some strict(-ish) CSP on the admin side, this did trigger errors (style-src-elem and script-src-elem blocked as the nonce is not set for the script and style blocks).


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#119 Yesterday 13:43:39

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,904
Website GitHub

Re: glz_custom_fields v2 beta for Textpattern v4.7

Try the updated txt installer on the v2.0.6 release page (with _zip.txt). It looks like I originally compiled from a site installation that for some unknown reason was lacking exactly the salient commit. This time I went back to first principles and compiled using Jukka’s compiler… This also has your css tweaks but doesn’t warrant a new version bump.


TXP Builders – finely-crafted code, design and txp

Online

#120 Today 04:39:15

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,384
Website

Re: glz_custom_fields v2 beta for Textpattern v4.7

We are nearly there :-)

The CSP nonce is now applied everywhere I think. But. Now I get this error on the plugin admin panel – the list panel with all the CF; the edit panel is fine:

[Error] Refused to execute http://txpdev.test/textpattern/%22index.php?event=glz_custom_fields&step=get_js as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.

(Firefox wording)

The result is that the glz_jqueryui.sortable.min.js script is not applied.

I suspect the clue is in the URL: textpattern/%22index.php. There might be a single " on the loose.

Disabling the header result in a 404 error only (for the URL above)

Failed to load resource: the server responded with a status of 404 (Not Found)

(of course…)

Edit: the loose " is here :

$js_positionsort = glz_inject_js('"index.php?event=glz_custom_fields&step=get_js', 1);

Removing the loose offender fixed the issue.

Last edited by phiw13 (Today 04:52:39)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

Board footer

Powered by FluxBB