Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#346 2009-02-06 17:42:40
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: [plugin] [ORPHAN] sed_section_fields
mrdale wrote:
easy girl, that’s just what I had layin around. One works one doesn’t and they are late-ish svn versions sot it should amount to the same thing.
Oh sorry sir, I didn’t get it from your post which says both versions are working.
As for the difference you found I’m sorry but I think (hope I’m wrong) it’s not the cause, it must be something at a higher level wich clashes with the way Steve/net-carver writes his plugins (I’m guessing it – the MLP also stopped working with 4.08)
Offline
#347 2009-02-08 18:55:35
Re: [plugin] [ORPHAN] sed_section_fields
Word from the man! Yes he’s alive, but has no time available for TXP projects, which I can understand…
“Yeah, I’m still here but not doing any Txp stuff at present. I have a lot to do so I doubt I’ll be doing any Txp work for a month or so (minimum).”
In the meantime, you can probably manually hack the preferences table to hide the fields you want per section.
Last edited by mrdale (2009-02-08 19:13:23)
Offline
#348 2009-02-14 17:27:39
Re: [plugin] [ORPHAN] sed_section_fields
To run sed_section_fields in Textpattern 4.0.8+, please perform these steps:
- Install and activate sed_plugin_library 0.5.2
- Install and activate sed_section_fields 0.3.138
- Edit
sed_section_fieldsat the plugins tab and replace the whole code with this.
Enjoy!
Last edited by wet (2009-02-14 18:08:32)
Offline
#349 2009-02-14 18:03:57
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.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#350 2009-02-14 18:04:29
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
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
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: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
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
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
Offline
#357 2009-02-16 09:39:35
Re: [plugin] [ORPHAN] sed_section_fields
brillunt
Offline
#358 2009-03-04 20:46:30
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
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
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