Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#211 2008-06-18 15:37:02

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] sed_section_fields

Following up on my other post, would it be possible to add “disable comments after” and allow/disallow comments on a “per section” basis on the Sections tab with this plug-in?

Last edited by thebombsite (2008-06-18 15:37:41)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#212 2008-06-18 16:15:27

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [plugin] [ORPHAN] sed_section_fields

Stuart

Added to my to-do list for this plugin. I don’t expect it will be a problem but there might be something I’ve overlooked on the moderation mechanism as I’ve not looked at it in a long time.

FWIW, I’ve another potential comments based plugin coming up so that’ll give me a refresher course!


Steve

Offline

#213 2008-06-18 20:19:18

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] sed_section_fields

Cheers Steve. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#214 2008-06-21 15:37:57

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [plugin] [ORPHAN] sed_section_fields

Stuart

As your request involves mainly public side code — and sed_section_fields is exclusively admin-only — I’ve decided to give this a shot using my comment pack as the wrapper.

Anyway to cut a long story short…

  • the good news: I have a working demonstrator of this.
  • the bad news: I either have to duplicate tons of code from the pretext() routine or make a 1 line hack to a Textpattern file to do it.

Would you like to try it out?


Steve

Offline

#215 2008-06-21 21:46:19

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] sed_section_fields

I’ll try anything once Steve but you’ve confused me with “involves mainly public side code”. How did that happen when what I want would be in the “Sections” tab in admin?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#216 2008-06-22 06:58:19

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [plugin] [ORPHAN] sed_section_fields

Stuart

That’s just because I haven’t tacked on an admin interface yet. I wanted to do a proof-of-concept for you. However, I guess my main point is that I don’t want (at present) to put the public code that implements your feature into an admin-only plugin. It just seems a better fit to me put the feature in the comment pack as it already implements per-article comment moderation.

Will email you the plugin soon.


Steve

Offline

#217 2008-06-22 09:03:07

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] sed_section_fields

Thanks Steve. I’ll have a good look at it when you send it over, but remember that for my own personal use I don’t really require the “per article” usage. That was something added by another user. For the bombsite I only require “per section” usage to allow me to keep 2 sections permanently open whilst restricting the weblog section to a time limit which then led me to think that it might be a useful feature for others which further led me to think that the “Sections” tab would be a good place for it to go.

Last edited by thebombsite (2008-06-22 09:06:47)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#218 2008-06-22 13:57:01

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [plugin] [ORPHAN] sed_section_fields

Stuart

You should have email with all that’s needed. Please let me know how it goes (via email).

Not to worry about per-article settings. They aren’t used unless you specifically set them up anyway.


Steve

Offline

#219 2008-06-22 14:44:11

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] sed_section_fields

Nothing received yet Steve. Could you re-send just in case I’ve spammed it please? :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#220 2008-06-22 17:34:49

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] sed_section_fields

OK Steve. Got it thank you. I’ll email once I’ve set it up.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#221 2008-06-24 14:07:22

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: [plugin] [ORPHAN] sed_section_fields

Anyway to implement a global Hide all / Show All option?

Are the values for these options stored in the Db?

If not how are they stored?

Nice Plugin

Thank you

Geoff

Last edited by geoff777 (2008-06-24 14:07:47)


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#222 2008-06-24 17:28:48

chriloi
Plugin Author
From: Vienna, Austria
Registered: 2006-01-17
Posts: 120
Website

Re: [plugin] [ORPHAN] sed_section_fields

Steve, why don’t you split the plugin into sed_section_fields and sed_pretty_section_view (or something like that…)?

Offline

#223 2008-06-24 17:36:46

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [plugin] [ORPHAN] sed_section_fields

Geoff

just look in the global $prefs and you should see an entry for each section. Or look in the txp_prefs table if you are doing it with SQL.

Christian

Hmmm. That’s possible — though I won’t be doing it right away as I’m busy with the MLP pack at the moment. Thanks for the idea.


Steve

Offline

#224 2008-06-24 20:50:50

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

Re: [plugin] [ORPHAN] sed_section_fields

I love this plugin. Thanks Steve.

I do spend a lot of time cycling through all my sections and setting Most of my custom fields off. So I’d support any idea, where a standard site-wide default could be set. You could include a “default” or “custom” setting per section. Default might hide all the fields and on/off settings and apply the default, while “custom” would show and adhere to the settings.

Just an idea. Sporadic shuffling through section settings during site build is a pretty good trade-off for the awesome function of this plugin.

Offline

#225 2008-06-26 13:53:55

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

Re: [plugin] [ORPHAN] sed_section_fields

I’ve used this plugin before with no problems, but I’m having an issue on an IIS setup. Here’s what I get when trying to access my sections:

PHP Notice:  Undefined index:  cf in D:\InetPub\dittocondo\textpattern\lib\txplib_misc.php(574) : eval()'d code on line 210
PHP Notice:  Undefined index:  ss in D:\InetPub\dittocondo\textpattern\lib\txplib_misc.php(574) : eval()'d code on line 241
PHP Notice:  Undefined index:  cf in D:\InetPub\dittocondo\textpattern\lib\txplib_misc.php(574) : eval()'d code on line 210
PHP Notice:  Undefined index:  ss in D:\InetPub\dittocondo\textpattern\lib\txplib_misc.php(574) : eval()'d code on line 241
PHP Notice:  Undefined index:  cf in D:\InetPub\dittocondo\textpattern\lib\txplib_misc.php(574) : eval()'d code on line 210
PHP Notice:  Undefined index:  ss in D:\InetPub\dittocondo\textpattern\lib\txplib_misc.php(574) : eval()'d code on line 241

I am using glz_custom_fields, but I get the same error when it’s turned off. The IIS server is the only difference I can think of — it’s worked fine on Linux. Any thoughts?

Thanks,
Addison

Offline

Board footer

Powered by FluxBB