Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#565 2009-10-27 09:39:20

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

Re: glz_custom_fields

Hey Phil, you need 2 files for sed_section fields & the glz_custom_fields:

1. sed_section_fields_library v0.5.2
2. sed_section_fields v0.5.3 (get the .gz.txt file)
3. glz_custom_fields v1.2.3

Offline

#566 2009-10-27 11:11:05

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: glz_custom_fields

Hi Gerhard,
First thank you for updating sed_section_fields. Unfortunately have some problems: the plugin seems to only work in the “sections” tab.
In the “write” tab nothing happens.

While looking at the page source I found this message in index.php?sed_resources=sed_sf_write_js, maybe can help you understand what’s going on:

<pre>A problem occured while loading the plugin: <b>sed_section_fields</b> -> <b>Notice: Undefined variable: prefs on line 638</b></pre>
<pre style="padding-left: 2em;" class="backtrace"><code>C:\xampplite\htdocs\test_site\textpattern\lib\txplib_misc.php(594) : eval()'d code:74 _sed_sf_write_js()
C:\xampplite\htdocs\test_site\textpattern\lib\txplib_misc.php:594 eval()
C:\xampplite\htdocs\test_site\textpattern\index.php:117 load_plugins()</code></pre>

My test site:
Textpattern v. 4.2
installed plugins:
1. sed_section_fields_library v0.5.2
2. sed_section_fields v0.5.3
3. glz_custom_fields v1.2.3

Offline

#567 2009-10-27 11:29:33

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: glz_custom_fields

I have also installed the latest sed_section_fields to my test site without much success. None of the options seem to affect what appears in the write tab, even for users with lesser access privileges. Though the sections tab display is restyled somewhat so parts of it seem working.
Also, what exactly does ‘Treat as a static section?’ do?
Thanks,
Phil

Offline

#568 2009-10-27 11:46:16

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: glz_custom_fields

philwareham wrote:

Also, what exactly does ‘Treat as a static section?’ do?

A static section doesn’t show in the sections dropdown for user level below 2.
Very useful if you have some sections (search results for example) in which a user should never post an article.

Offline

#569 2009-10-28 07:18:57

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

Re: glz_custom_fields

Sorry about that error guys, download sed_section_fields and re-install from the same location, it’s all good now.

Offline

#570 2009-10-28 11:10:32

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

Re: glz_custom_fields

Phew, works again. Thanks, Gerhard :)

(In order to avoid confusion the version# should be increased.)


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

Online

#571 2009-10-28 12:45:46

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

Re: glz_custom_fields

Cool!

Honestly, I’ve changed a single line, it didn’t feel like it required a revision bump : ).

Offline

#572 2009-10-28 13:30:38

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

Re: glz_custom_fields

Excellent. Works perfectly. You the man.


Kevin
(graphicpush)

Offline

#573 2009-10-28 14:39:55

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: glz_custom_fields

It would be useful to update net-carver’s original post about sed_section_fields and the download section of his site with the latest version modified by gerhard.

Last edited by candyman (2009-10-28 14:40:31)

Offline

#574 2009-10-30 21:33:52

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

Re: glz_custom_fields

I’ve noticed that if I name a custom field like this “on_section_frontpage” it’s renamed to something like this “onsectionfrontpage”.

Does anyone else noticed this?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#575 2009-10-30 21:58:21

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

Re: glz_custom_fields

redbot wrote:

glz_custom works ok with the MLP, or at least it worked ok with previous versions.

Thanks, redbot.

Apart from this, probably it isn’t useful in your case but I now remember some months ago I made a very short and raw plugin which lets you give a ‘title’ (as per txp terminology) for your custom fields names.

Nice! It seems to work ferpect, although it isn’t compatible with MLP, right? No problem about it.

And yes, it’s useful, because it seems (at least on my local install) that glz_custom_fields is interfering with the MLP ability to create human-friendly titles for custom fields…
I’ve tested that, by disabling glz_custom_fields, the custom fields titles (managed by the MLP) works fine. Re-enabling glz_c_f, the human-readable titles are dismissed.

@Gerhard, do you think you will be able to take a look at it? You may want to join here.

Thanks again, redbot and Gerhard.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#576 2009-10-31 00:20:43

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: glz_custom_fields

maniqui wrote:

….although it isn’t compatible with MLP, right? No problem about it.

Yes, it isn’t compatible but in some circumstances I think is better than nothing

it seems (at least on my local install) that glz_custom_fields is interfering with the MLP ability to create human-friendly titles for custom fields…

You are right again. I remember there was a discussion between me and Steve/net-carver some months (years?) ago about this problem which seemed to be unsolvable (it’s buried in the mlp thread, here (down the page – item 034) and here).
At the end I found a dirty solution hacking some textpattern file (don’t remember which one). If you want I can send you some notes I wrote at the time (if I find them) but I think this solution is not advisable – every upgrade becomes a torture ;(

I think maybe a relatively simpler way could be to modify bot_cf_titles code – even if I can’t imagine how now (it’s late and I’m sleepy).

Offline

Board footer

Powered by FluxBB