Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#91 2009-05-29 17:56:36
- readingtype
- New Member
- Registered: 2009-05-28
- Posts: 8
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
OK, I have the section admin page showing the section links in the right part of the header and the section parent drop-downs are also back. Things seem to work, but I have no evidence that anything else is right or wrong.
It looks from this thread as though all the public-facing parts of the plugin were unaffected by the version change, and that would be consistent with the fact that the ‘broken’ code relied on finding HTML in the section admin page that has been modified.
I’ve contacted Netcarver who appears to have taken charge of the plugin (see this Github page) to find out whether he’d like to incorporate the changes.
Offline
#92 2009-05-29 18:06:06
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
readingtype wrote:
I’ve contacted Netcarver who appears to have taken charge of the plugin (see this Github page) to find out whether he’d like to incorporate the changes.
And he has replied to your message :-)
— Steve
Offline
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
Just updated my plugin to version 0.3.10. It works with 4.0.8 now!
- There are 2 new attributes for the breadcrumb and the section tag: show_default and default_title.
- Included a switch to disable section dropdown customizing on the write tab, for users who experience problems when cnk_section_tree is enabled
- Fixed a major rendering bug (closing tags)
Please read my comment on the first post of this thread!
PS: As far as I know, net-carver doesn’t take charge of any of my plugins.
Last edited by chriloi (2009-05-29 23:53:01)
Offline
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
Yay, works.
Offline
#95 2009-05-31 09:51:48
- readingtype
- New Member
- Registered: 2009-05-28
- Posts: 8
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
chriloi wrote:
Just updated my plugin to version 0.3.10. It works with 4.0.8 now!
Many thanks, Christian :-)
Offline
#96 2009-06-24 14:04:22
- readingtype
- New Member
- Registered: 2009-05-28
- Posts: 8
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
Hi,
The 0.3.10 version is working great. But I just had some problems with blank screens on the ‘write’ admin page for some articles and not for others. I amended the regexp in cnk_write_inject. You can try this version of the function if you have a similar experience – @chriloi may have a better solution.
function cnk_write_inject($buffer)
{
global $DB;
if(!isset($DB)) $DB = new db;
if(!isset($prefs)) $prefs = get_prefs();
// replace section dropdown TODO: tidy up regexp!
$pattern = '#name="Section".*</select></p>#sU';
if (gps('step') == 'edit') $pattern = '#(name="Section".*<option value="([\w\s-]*)" selected="selected">.*</select></p>)#s';
$insert = 'cnk_st_dropdown_article';
$buffer = preg_replace_callback($pattern, $insert, $buffer);
return $buffer;
}
Incidentally I think that the regular expression may have been matching enough of the buffer to cause some kind of memory problem. I have not attempted to verify that explanation though.
Offline
#97 2009-09-15 09:51:25
- readingtype
- New Member
- Registered: 2009-05-28
- Posts: 8
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
readingtype wrote:
Hi,
The 0.3.10 version is working great. But I just had some problems with blank screens on the ‘write’ admin page for some articles and not for others. I amended the regexp in cnk_write_inject. You can try this version of the function if you have a similar experience – @chriloi may have a better solution.
I reported when working on TXP 4.0.8. Now I am on a TXP 4.2.0 install with my tweaked cnk_write_inject() function and I get the display functionality of <txp:cnk_sec_list /> but nothing at all visible on the admin side presentation > section page, where the plugin should insert a ‘parent’ dropdown into the options for each section shown. This is a good failsafe! I’ll post if I can fix it. For now I want more flexibility in ordering the sections than I can get from <txp:section_list /> and the <txp:cnk_sec_list /> function does that for me.
Offline
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
I’m sorry, I can’t fix this right now. But I’ve added 4.2.0 support on my todo-list.
Offline
#99 2009-09-17 08:58:25
- readingtype
- New Member
- Registered: 2009-05-28
- Posts: 8
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
@chriloi No problem, and thank you for responding.
Offline
#100 2009-11-24 11:54:48
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
Any update on when 4.2.0 support will be ready? Many thanks.
Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle
Offline
#101 2009-12-15 18:15:35
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
I just had a look at a fresh install of 4.2.0 and cnk_section_tree worked fine for me.
Does anyone have any problems with it on a 4.2.0 install?
Offline
#102 2010-01-05 02:37:10
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
I just tested it (version 0.3.10) on txp 4.2 locally on wamp and it’s working fine.
It’s also working nicely with sed_section_fields, so it’s looking good all around!
Thanks for this :)
Offline
#103 2010-04-24 10:32:13
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
Hello chriloi,
Ive installed your plugin and get problems with preferences -> section-page.
there no section-tree and in the sections aren’t parent – show nothings. Only the link “^ go up to tree” works.
Would I write an article, there no sections to choose one sections.
And if I add a new section get a Warning:
Warning: Unknown column ‘lft’ in ‘where clause’ select name from txp1_txp_section as txp_section where name=‘ueberregional’ and lft is null in /my-url-root/textpattern/lib/txplib_db.php on line 85
If I set the pages from default to another (and/or css too), then the warning disappears.
I using Textpattern 4.2.0 and the plugin (version 0.3.10) with a test-textpattern on a real server. At moment no other plugins work here (all deactivitated). And I use a table-prefix.
Is here help possible?
Edit: aaahhhh – I don’t see the Extensions (beside Administrations) for install section-tree: now works!
Last edited by lythande (2010-04-24 10:49:07)
Offline
#104 2010-04-30 19:18:13
- =AniKa=
- New Member
- Registered: 2010-04-24
- Posts: 5
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
Very useful plugin!
One question – links to sections return URLs without the slash in the end (www.mysite/section). Is there a way to make it return URLs with the slash (www.mysite/seciton/)?
Offline
#105 2010-07-09 05:14:41
- =AniKa=
- New Member
- Registered: 2010-04-24
- Posts: 5
Re: [plugin] [ORPHAN] cnk_section_tree - subsection plugin
The plugin was working great but I moved the site to another hosting, and after that the plugin started to cause a bug in an article editing window. It is impossible to edit articles, the blank page opens instead of the editor. When I deactivate the plugin, everything works correctly. I reinstalled in but it didn’t help.
EDIT: I tried the fix proposed by readingtype in the post #96 and it helped (fixes problems with blank screens on the ‘write’ admin page). Everything’s working now :)
Last edited by =AniKa= (2010-07-09 19:54:00)
Offline