Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#433 2009-09-30 02:05:57

brunodario
Member
From: Belo Horizonte, Brasil
Registered: 2007-09-19
Posts: 75

Re: [plugin] [ORPHAN] sed_section_fields

Solution provided by wet here http://forum.textpattern.com/viewtopic.php?pid=200762#p200762

Mixed with mrdale solution here http://forum.textpattern.com/viewtopic.php?pid=200795#p200795

Made sed_section_fields work to on 4.2.0 – Have to say that i´ve got very few plugins installed yet, don´t know if there will be any kind of misconfiguration when i install more, so far, so good…

Offline

#434 2009-09-30 02:13:30

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: [plugin] [ORPHAN] sed_section_fields

Thanks brunodario.

Also, sed_section_fields is meant to be included in gerhard’s glz_custom_fields (which is now 4.2 compatible w/out hacks) some time soon as well.
See here and here (both from the same thread).

Offline

#435 2009-09-30 02:48:32

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

Re: [plugin] [ORPHAN] sed_section_fields

I don’t mind editing the plugin galore, but the edits provided by Robert and by Dale don’t seem to offer full functionality with my copy of TXP 4.2.0. On a site with 20+ custom fields, only the first ten can be toggled on or off in the sections tab— the others don’t show up.

Is that consistent with other folks’ experience, or did I apply the hack wrong? I followed Robert’s instructions exactly (it was as easy as 1, 2, 3). I expect this is related to the new schema 4.2.0 introduces for communicating with custom fields beyond ten.

Last edited by johnstephens (2009-09-30 02:49:51)

Offline

#436 2009-10-01 09:08:50

maica
Member
From: Utrecht (NL)
Registered: 2004-07-07
Posts: 15
Website

Re: [plugin] [ORPHAN] sed_section_fields

johnstephens wrote:

…On a site with 20+ custom fields, only the first ten can be toggled on or off in the sections tab— the others don’t show up…

Hi johnstephens, I found that editing the function _sed_sf_get_max_field_number helps. At least, when I change

if( $max < 10 )
$max = 10;
unset( $result );
}
else
$max = 10;
}

to

if( $max < 10 )
$max = 10;
unset( $result );
}
else
$max = 11;
}

I get to see 11 fields. So, changing line 79 in the plugin code to the number of custom fields you use, should show all of them. I am still struggling to get it to work though, having v 4.2.0 with glz_custom_fields, sed_section_fields (And Many Other Plugins). I suspect it might have something to do with the jsquery but that stuff is way beyond my capability.

I also found out that bot_hide_per_section doesn’t work anymore, which was my way to get around showing 24 custom fields all the time (tipped by redbot). So for me it’s probably easiest to patiently wait for the next version of glz_custom_fields.

Offline

#437 2009-10-01 09:21:59

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

Re: [plugin] [ORPHAN] sed_section_fields

maica wrote:

…I also found out that bot_hide_per_section doesn’t work anymore, which was my way to get around showing 24 custom fields all the time (tipped by redbot). So for me it’s probably easiest to patiently wait for the next version of glz_custom_fields.

Hi maica,
keep in mind that bot_hide_per_section was an experimental one-day homemade plugin which I wrote when I thought (wrongly) that sed_section wasn’t being updated no more.
The plugin needs to be refined in at least two points:
1) Sloppy targeting of cf (I updated it in a site of mine in the past and is working better – but I never thought someeone was still using this plugin)
2) the new glz custom stops renaming html input names so the plugin needs the addition of a little conditional tho check which glz version is installed.

I’ll wait for the new glz version (which should incorporate sed_section) but if you badly need it I can update the plugin when I find some free time

Offline

#438 2009-10-01 10:03:33

maica
Member
From: Utrecht (NL)
Registered: 2004-07-07
Posts: 15
Website

Re: [plugin] [ORPHAN] sed_section_fields

Hi redbot, thank you for replying (and for the tip I referred to, a bit rude I did not thank you back then). First your plugin seems to work in Safari, but not in Firefox. Second, the data-wise Monstrous site I use this plugin in, is still in test stage. I expect the Even Better Yet glz_custom_fields to come out before the site goes live… so I’ll wait for that.

But thank you for your kind offer =)

Last edited by maica (2009-10-01 10:04:06)

Offline

#439 2009-10-26 23:12:36

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

Re: [plugin] [ORPHAN] sed_section_fields

I’ve forked Steve’s sed_section_fields and made a few minor changes to make sed_section_fields work with the most recent glz_custom_fields v1.2.3 and TXP 4.2.0.

Grab the latest copy of sed_section_fields v0.5.3.

This is an interim solution, until I merge the 2 plugins together. Steve did a brilliant job with this plugin btw. It even has MLP & i18 support, something that my plugin doesn’t have (yet…).

Offline

#440 2009-10-28 02:00:06

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

Re: [plugin] [ORPHAN] sed_section_fields

This is good to see, but it’s not working for me. Using a fairly polluted 4.2.0 install, but tried in several browsers without luck. All of the options appear in the Sections tab, but the fields in the left column of the Write tab do not change when I switch sections. Nothing is hidden at all.


Kevin
(graphicpush)

Offline

#441 2009-10-28 07:16:09

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

Re: [plugin] [ORPHAN] sed_section_fields

There was an error with the js function toggling custom fields, all fixed now. Download & re-install and you should be good ; ).

Offline

#442 2009-10-30 13:04:47

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: [plugin] [ORPHAN] sed_section_fields

This is what I get when I activate the new plugin:

Fatal error: Cannot instantiate non-existent class: sed_lib_mlp in /home/sites/xxx.com/public_html/santy/textpattern/lib/txplib_misc.php(594) : eval()’d code on line 38

Last edited by mlarino (2009-10-30 13:04:59)

Offline

#443 2009-10-30 17:43:20

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

Re: [plugin] [ORPHAN] sed_section_fields

mlarino wrote:

This is what I get when I activate the new plugin:

Have you installed “ sed plugin library also?

Offline

#444 2009-10-30 22:49:31

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: [plugin] [ORPHAN] sed_section_fields

DUH!!!
ok, got it hehe

Offline

Board footer

Powered by FluxBB