Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#349 2016-05-23 00:58:00
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: bot_write_tab_customize: rearrange and style items in the write tab
jakob, thank you for working on this plugin. I think it will be useful for many other Textpattern users. Or even, in my opinion, its functions should be part of the core.
I tried your new version on MAMP with PHP 7 and the installation works fine, the table was created. After that, I selected the item “Excerpt” and “hide in” all sections. After saving, appeared a error message:
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /Applications/MAMP/htdocs/textpattern/textpattern/lib/txplib_misc.php(1783) : eval()’d code:213 Stack trace: #0 /Applications/MAMP/htdocs/textpattern/textpattern/lib/txplib_misc.php(1783) : eval()’d code(620): bot_wtc_is_td(‘$(“.excerpt”)’) #1 /Applications/MAMP/htdocs/textpattern/textpattern/lib/txplib_misc.php(1896): bot_wtc_tab(‘bot_wtc_tab’, ‘update’) #2 /Applications/MAMP/htdocs/textpattern/textpattern/index.php(214): callback_event(‘bot_wtc_tab’, ‘update’, 0) #3 {main} thrown in /Applications/MAMP/htdocs/textpattern/textpattern/lib/txplib_misc.php(1783) : eval()’d code on line 213
The saving failed.
On the other (online) installation (PHP 5.5.19) I couldn’t test because the installation failed.
Offline
#350 2016-05-23 22:29:08
Re: bot_write_tab_customize: rearrange and style items in the write tab
I think Phil already suggested that in a future version a re-arrangeable write tab was planned. It may also be possible to do what bot_wtc does more effectively using the pluggable_ui
rather than jQuery reorganisation.
As redbot has written elsewhere, it is also more effective to use css to hide parts permanently from the admin-side, and Phil has a set of extra css files in his hive theme that do that.
Anyhow, like you and others, I use bot_wtc on well-nigh all installations, so am interested in getting it working, so here’s another attempt that should remedy the above in php 7. There are still some other things that could be neatened up, like using txp’s built-in error messaging system, and in general I think the code could be slightly revamped as it has grown over many versions and several of the functions in bot_wtc are now obsolete as available in the core:
(I’ve removed all previous interim versions from earlier posts)
TXP Builders – finely-crafted code, design and txp
Offline
#351 2016-05-24 00:55:56
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: bot_write_tab_customize: rearrange and style items in the write tab
Thanks jakob, now it works perfectly on my installation on MAMP with PHP 7, also together with glz_custom_fields 1.4.0-beta1 (according to the first tests).
jakob wrote #299221:
I think Phil already suggested that in a future version a re-arrangeable write tab was planned.
Very good, but at the moment we don’t know when those future version will coming.
As redbot has written elsewhere, it is also more effective to use css to hide parts permanently from the admin-side, and Phil has a set of extra css files in his hive theme that do that.
Yes, I know and I do it so, the one with the excerpt was only a quick test with a random field. In practice excerpt can be hidden in the preferences or in CSS.
I use bot_wtc if I want to hide a field depending on the section, for example. And until now, it offers the possibility to rearrange custom fields.
We still don’t know when version 4.7 will be released and must make the things with what exists. In this sense, we must prepare us for version 4.6.
Thank you for your great help!
Offline
#352 2016-05-24 21:19:33
Re: bot_write_tab_customize: rearrange and style items in the write tab
I’ve put the current version of the source code on github for anyone who wants to fork/improve/expand on what’s been done so far, or if redbot wants to take this as a starting point for his own revisions:
- Github repo
- .txt and zip.txt installer files for bot_wtc v0.7.5 for Textpattern v4.6
TXP Builders – finely-crafted code, design and txp
Offline
#353 2016-05-24 21:38:18
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: bot_write_tab_customize: rearrange and style items in the write tab
Good news, thank you.
Offline
#354 2016-05-24 21:58:32
Re: bot_write_tab_customize: rearrange and style items in the write tab
jakob wrote #299258:
I’ve put the current version of the source code on github for anyone who wants to fork/improve/expand on what’s been done so far, or if redbot wants to take this as a starting point for his own revisions:
- Github repo
- .txt and zip.txt installer files for bot_wtc v0.7.5 for Textpattern v4.6
:bread:
Thank you, Jakob!
Offline
#355 2016-06-21 16:42:45
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_write_tab_customize: rearrange and style items in the write tab
Eeek!
How many messages I didn’t read, sorry all!
Anyway..
first af all thanks Jakob for the help and for putting the code on github.
Secondly, I’d like to apologize for my prolonged absence, you know in the last 2-3 years I’ve experienced some sort of rejection towards everything code-related.
I hope I’ll find the enthusiasm to update my plugins (at least the most useful) soon. In any case putting the code on github was a good move, thanks again Jakob!
Offline
#356 2016-06-21 18:09:25
Re: bot_write_tab_customize: rearrange and style items in the write tab
Big thanks to you redbot for creating these plugins. Your plugins make life with Textpattern better. Without bot_write_tab_customize and bot_privs… I can’t imagine. They make working with TXP so much more pleasant.
Offline
#357 2016-06-21 19:29:34
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: bot_write_tab_customize: rearrange and style items in the write tab
I’m agree, especially bot_write_tab_customize is essential for me.
Offline
#358 2016-08-01 20:08:15
Re: bot_write_tab_customize: rearrange and style items in the write tab
jakob wrote #299258:
I’ve put the current version of the source code on github for anyone who wants to fork/improve/expand on what’s been done so far, or if redbot wants to take this as a starting point for his own revisions:
- Github repo
- .txt and zip.txt installer files for bot_wtc v0.7.5 for Textpattern v4.6
Howdy redbot and jakob! Is jakob’s repository still the favored version to use for 4.6 compatibility? I’m currently checking out the Textpattern 4.6 Beta 2 release.
Last edited by johnstephens (2016-08-01 20:08:32)
Offline
#359 2016-09-14 18:32:34
Re: bot_write_tab_customize: rearrange and style items in the write tab
Not sure how to troubleshoot this. When I install version v0.7.5 along with Textpattern v4.6 on my live server, I get a fatal error as follows:
Fatal error: Call to undefined function safe_create() in /var/www/html/un/universalistfriends.org/textpattern/lib/txplib_misc.php(615) : eval()’d code on line 266
Offline
#360 2016-09-14 20:25:36
Re: bot_write_tab_customize: rearrange and style items in the write tab
In reply to johnstephens #301475:
D’oh! One has to upgrade to 4.6.0 first. I was upgrading the plugins first in this case. After upgrading to 4.6.0, this worked fine without the fatal error.
Offline