Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#109 2008-03-24 17:37:05
Re: [plugin] [ORPHAN] sed_section_fields
Noticed a small quirk. (may have been mentioned before).
Update
yep. sure was mentioned before
When I delete a section all the sed_section_fields options disappear from from the SECTIONS page.
If I reload the page the re-appear. Not a huge deal, but could be a place clients stumble when sites get turned over.
Anyone else have this happening?
Is it just a function of how TXP removes sections?
—
Tom
Last edited by renobird (2008-03-24 17:58:36)
Offline
#110 2008-03-24 17:38:49
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: [plugin] [ORPHAN] sed_section_fields
renobird,
I use ied_hide_in_admin to keep open “advanced options” and as I said it works (at least with firefox).
The problem you mentioned about section page disappearing was already pointed out
Last edited by redbot (2008-03-24 17:45:59)
Offline
#111 2008-03-24 17:54:51
Re: [plugin] [ORPHAN] sed_section_fields
Redbot,
Thanks for the ied_hide_in_admin tip. I didn’t realize that was available…works perfectly.
Sorry for the redundant post about the disappearing items on the section page.
- )
—
Tom
Offline
#112 2008-03-25 00:01:15
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: [plugin] [ORPHAN] sed_section_fields
renobird,
glad you find it useful … actually I always preferred ied_hide_in_admin over rss_show_adv since it allows to hide a lot of other admin elements that you are not using (untill now I always kept hidden the “ keywords” and “override form” field since I never needed them)
Offline
#113 2008-04-08 09:58:16
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: [plugin] [ORPHAN] sed_section_fields
Ehm… sorry to ask it again…
You know, I love this plugin and I think – from a usability point of view – it is one of the best ever created.
Unluckily it doesn’t work with ie and Steve/net-carver has not be around lately.
So, once again, has someone found a way to hack the code in order to make it work with ie?
Offline
#114 2008-05-15 17:48:14
Re: [plugin] [ORPHAN] sed_section_fields
I get a strange error
Having had the fields successfully hidden for a while, after adding a few additional fields with glz_custom_fields I get this error…
term is undefined
_sed_sf_trim(undefined)index.php?sed_res… (line 90)
_sed_sf_field_vizibility_result_handler()index.php?sed_res… (line 80)
[Break on this error] var len = term.length;
[edit] This happens when I use my 20th custom field
Last edited by mrdale (2008-05-15 20:19:29)
Offline
#115 2008-06-02 13:48:59
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [plugin] [ORPHAN] sed_section_fields
Dale
Just ran into a similar error on a new site. Are you running that site on 4.0.6 perchance?
If so, try editing your plugin and changing this…
if( @txpinterface === 'admin' )
{
register_callback( '_sed_sf_handle_article_pre' , 'article' , '' , 1 );
register_callback( '_sed_sf_handle_article_post' , 'article' );
register_callback( '_sed_sf_section_markup' , 'section' , '' , 1 );
register_callback( '_sed_sf_xml_server' , 'sed_sf' );
}
To this…
if( @txpinterface === 'admin' )
{
register_callback( '_sed_sf_handle_article_pre' , 'article' , '' , 1 );
register_callback( '_sed_sf_handle_article_post' , 'article' );
register_callback( '_sed_sf_section_markup' , 'section' , '' , 1 );
add_privs( 'sed_sf', '1,2,3,4');
register_callback( '_sed_sf_xml_server' , 'sed_sf' );
}
Note the addition of the add_privs
line. This cures things on my setup.
— Steve
Offline
#116 2008-06-02 14:49:55
Re: [plugin] [ORPHAN] sed_section_fields
hrm… Thanks steve, mine already has the add privs line just in a different place…
if( @txpinterface === 'admin' )
{
add_privs('sed_sf' , '1,2,3,4,5,6');
global $_sed_sf_using_glz_custom_fields;
$_sed_sf_using_glz_custom_fields = load_plugin('glz_custom_fields');
register_callback( '_sed_sf_handle_article_pre' , 'article' , '' , 1 );
register_callback( '_sed_sf_handle_article_post' , 'article' );
register_callback( '_sed_sf_section_markup' , 'section' , '' , 1 );
register_callback( '_sed_sf_xml_server' , 'sed_sf' );
switch(gps('sed_resources') )
{
case 'sed_sf_js':
_sed_sf_js();
break;
default:
break;
}
}
[edit] I am using 4.0.6 and 2.112 of sed… guess I must have hacked it already. Funny doesn’t show an “edited” label. Someone must have edited and recompiled it for me… curious, very curious…
Last edited by mrdale (2008-06-02 14:54:18)
Offline
#117 2008-06-03 07:53:41
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [plugin] [ORPHAN] sed_section_fields
Dale
Not so curious when you realize I shot myself in the foot with my above post… I installed an old version of the plugin! Yours is the latest version.
Doh!
— Steve
Offline
#118 2008-06-03 14:44:26
Re: [plugin] [ORPHAN] sed_section_fields
You want a login to the site to see what’s going on? Everything works fine until you add your 20th custom field. Then the section screen behaves erratically, not remembering the field preferences for each.
Offline
#119 2008-06-04 05:05:53
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [plugin] [ORPHAN] sed_section_fields
Dale
ok, I know what this is now. You are hitting the limit of the preferences table’s ‘val’ storage field. It’s a varchar(255) and 20 custom fields is the boundary value for overflowing this the way I have this plugin storing the values.
I’ll work on changing the storage format to overcome this and generally revamping the plugin anyway.
Will keep you posted.
— Steve
Offline
#120 2008-06-04 11:32:26
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: [plugin] [ORPHAN] sed_section_fields
I’m gladly using sed_sf now for several days. It will definitely cause less headache for many clients.
Thanks for your work, Steve!
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline