Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#325 2015-12-15 18:40:45

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

Re: bot_write_tab_customize: rearrange and style items in the write tab

Hey! I’m using this plugin (v0.7.2) on a site that runs Textpattern v4.5.7 with the Hive admin theme. It still works, despite some hiccups in the past!

I need to add a custom field along with some bot_wtc rules for how it’s displayed, but I’m afraid to edit anything in bot_wtc’s admin panel. Sometimes, when I visit the panel, it spawns a bunch of error popups, and even without those errors, many of the “Item” fields for existing fields are blank. It also appears that the entire set of items is duplicated, doubling the list of display rules.

For those who have it working in 4.5.7 with Hive, what version of the plugin are you using? Do you have any recommendations?

Thank you!

Offline

#326 2015-12-15 18:55:08

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

Re: bot_write_tab_customize: rearrange and style items in the write tab

Update—I upgraded my local installation to Mr Dale’s v0.7.3. It looks more beautiful, but the same “problems” remain:

  • It spawns a bunch of popup error messages like this: Internal error "Undefined index: $("p:has(*[name='custom_8'])")". —unless I click “Prevent this page from spawning additional popups” in my browser.
  • The entire list of custom fields I have display rules for is duplicated.
  • And many of the field titles are blank in the “Item” field.

Last edited by johnstephens (2015-12-15 18:55:22)

Offline

#327 2015-12-15 20:30:58

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,889
Website GitHub

Re: bot_write_tab_customize: rearrange and style items in the write tab

Any luck with this one that’s working for me on txp v457 (not the 4.6 one from my previous post)?

I vaguely remember having a problem with an older updated site where the bot_wtc_update function had not run properly and the entries in the bot_wtc table were still “old style”. I edited them manually in the database to match the “new style” and the errors disappeared. You can look at the function in the plugin to see how it should be or compare your table with a working bot_wtc installation.


TXP Builders – finely-crafted code, design and txp

Offline

#328 2015-12-15 21:15:57

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

Re: bot_write_tab_customize: rearrange and style items in the write tab

Thank you, Jakob! The plugin version doesn’t seem to matter, but you gave me a vital clue anyway. The jQuery selector designated by the Item’s “option” element seems to be out of sync on some fields. I’ll fix those and see if that helps.

Offline

#329 2015-12-15 23:21:44

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

Re: bot_write_tab_customize: rearrange and style items in the write tab

That seemed to work. I think the fields got doubled when I imported public server data into my dev database.

Thanks again, Jakob!

Last edited by johnstephens (2015-12-15 23:22:06)

Offline

#330 2015-12-16 16:22:59

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

Re: bot_write_tab_customize: rearrange and style items in the write tab

Hi all,
I’m sorry for all this issues, I hope in the next few weeks I’ll find the time to update the plugin.
BTW thank you for all your help and suggestions :)

Offline

#331 2015-12-16 18:34:35

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,476

Re: bot_write_tab_customize: rearrange and style items in the write tab

I’ve been using the plugin with Textpattern 4.5.7 without any issues. I suspect the problems don’t seem to be generally. But the announcement of a update is a very good message, and I hope this update will be for the upcoming Textpattern version 4.6.

Thank you very much.

Offline

#332 2015-12-17 22:15:59

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: bot_write_tab_customize: rearrange and style items in the write tab

Just curious… I’ve not had the pleasure of using bot_wtc, but I’ve always been under the impression that its immense value was due to old Txp admin-side template code sucking so bad. But now with the new ultra-flexible separation of content and presentation coming in admin-side templates (i.e., total css control), how will bot_wtc still offer redesign benefit in 4.6 onward versus just creating an admin-theme via admin-theme creation conventions?

I think it’s a good sales question to try and answer. ;)

Offline

#333 2015-12-17 22:52:16

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,889
Website GitHub

Re: bot_write_tab_customize: rearrange and style items in the write tab

GugUser wrote #297114:

I hope this update will be for the upcoming Textpattern version 4.6.

Did you have any luck with my intermediate version on v.4.6?

Destry wrote #297120:

But now with the new ultra-flexible separation of content and presentation coming in admin-side templates (i.e., total css control), how will bot_wtc still offer redesign benefit in 4.6 onward versus just creating an admin-theme via admin-theme creation conventions?

Phil’s extra css rules allow you to hide items you don’t want, and plugins can replace pluggable parts of the admin panel with their own code, so that certainly covers some of bot_wt’s hiding options.

Over and above that bot_wtc still offers several major benefits:

  1. You can move chunks of the admin panel around – most usefully individual custom fields – between different parts of the page, e.g. make something in the side column appear in the main column. For example, you might want a short-title for a menu beneath the title and above the body field, or a teaser text before the excerpt field.
  2. You can make custom fields appear and disappear depending on the section chosen. If you’ve ever used a site with a truckload of custom_fields, it’s a godsend. Example: Switch to the events section and see just the custom fields for events, switch to the projects section and see only the custom fields pertaining to projects
  3. You can inject your own javascript to the admin page.

TXP Builders – finely-crafted code, design and txp

Offline

#334 2015-12-18 19:35:25

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,476

Re: bot_write_tab_customize: rearrange and style items in the write tab

jakob wrote #297122:

Did you have any luck with my intermediate version on v.4.6?

Do you know if I can upgrade a copy of an existing site in the usual manner from 4.5.7 to the current 4.6 version?

So I could try it.

Offline

#335 2015-12-22 17:30:51

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: bot_write_tab_customize: rearrange and style items in the write tab

Thanks, Jakob. Helpful info.

Offline

#336 2015-12-22 21:18:46

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,889
Website GitHub

Re: bot_write_tab_customize: rearrange and style items in the write tab

GugUser wrote #297135:

Do you know if I can upgrade a copy of an existing site in the usual manner from 4.5.7 to the current 4.6 version? So I could try it.

Sorry, I overlooked this. The short answer is it should work, but work on a copy to be on the safe side. I upgraded an old site and apart from some upgrade problems relating to glz_custom_fields and bot_wtc, it was fine. The latter were, I think, due to the fact that I am running those plugins from the plugin_tmp directory rather than installing them normally.


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB