Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#349 2009-02-14 18:03:57

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,271
Website GitHub

Re: [plugin] [ORPHAN] sed_section_fields

Oh my oh my. Nice one wet. Genius.

Small gremlin due to the forum posting getting in the way. Line 198ish has had its apostrophe and double quote entities converted to actual characters and thus gives a compilation error. That line should read:

$title = strtr( $title , array( "'"=>'& #39;' , '"'=>'& #34;' ) );

(but without the spaces between the & and the # chars – they’re just there so the forum doesn’t stuff this post up as well!)

Last edited by Bloke (2009-02-14 18:04:49)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#350 2009-02-14 18:04:29

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

Re: [plugin] [ORPHAN] sed_section_fields

Tks lot wet.

Sorry, but I’ve got an error on line #198. It seems array values are’nt well escaping.
I’d change this :

$title = strtr( $title , array( "'"=>''' , '"'=>'"' ) );

with this:

$title = strtr( $title , array( "'" => "'" , '"' => '"' ) );

But I don’t know if it’s a good solution.

Again, Tks lot. Very appreciate mod.

Best regards,

Edit: Stef (the next TXP Core Developer) is faster than me :))
Cheers, Stef.

Last edited by Pat64 (2009-02-14 18:09:22)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#351 2009-02-14 18:10:17

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: [plugin] [ORPHAN] sed_section_fields

I’ve posted a file instead…

Offline

#352 2009-02-14 18:17:03

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

Re: [plugin] [ORPHAN] sed_section_fields

Fab! Many thanks wet

Offline

#353 2009-02-14 20:33:26

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

Re: [plugin] [ORPHAN] sed_section_fields

Wet, you da mensh! Seriously.

I was getting sick of explaining to people why every article had a whole menagerie of fields. Brill!

Offline

#354 2009-02-14 20:52:11

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: [plugin] [ORPHAN] sed_section_fields

wet-man does it again !!!

Thanks and have a lovely weekend :-)

Offline

#355 2009-02-14 21:16:44

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

Re: [plugin] [ORPHAN] sed_section_fields

BTW: after I diffed these I realized that it all comes down to attribute order on one line. So here’s a hacked version based off a later build for 0.4.143

Have fun.

Offline

#356 2009-02-15 10:32:32

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

Re: [plugin] [ORPHAN] sed_section_fields

Thanks!

Offline

#357 2009-02-16 09:39:35

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] sed_section_fields

brillunt

Offline

#358 2009-03-04 20:46:30

Addison
Member
From: Flowood, Mississippi
Registered: 2004-08-30
Posts: 34
Website

Re: [plugin] [ORPHAN] sed_section_fields

Just wanted to throw in my own thanks to Wet as well — I was hoping a fix would pop up for this!

-Addison

Offline

#359 2009-03-06 16:32:21

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: [plugin] [ORPHAN] sed_section_fields

Little bug: If there is an apostrophe in the Section Title field, the sed_section_fields options will not show up for that section (the show/hide options, etc.).

Offline

#360 2009-03-06 16:48:08

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: [plugin] [ORPHAN] sed_section_fields

I have installed and activated both sed_section_fields 0.4.143 ( code from mrdale above ) and sed_plugin_library 0.5.2. I selected Yes in the sed_sf preferences under the Admin tab. The per-section show/hide choices for custom fields do show up and work under the Sections tab. However, when I go to the Write tab, all custom fields are visible no matter which section I select in the section pull-down menu.

I’m not sure if I’ve done something wrong or if there is a problem. Big note: I am using glz_custom_fields 1.2 with Gerhard’s modifications to TXP 4.0.8.

Looking forward to using this plugin!

Offline

Board footer

Powered by FluxBB