Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2009-10-26 11:44:38
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_write_tab_customize: rearrange and style items in the write tab
Zanza wrote:
Now the only improvement I see is about supporting extra custom fields, if set, that I suppose would be beneficial for most of us!
This plugin is supposed to already support unlimited cfs.
Thanks again! This + admin themes + custom fields + ied hide in admin (+bot admin tooltip for idle clients…) pushes txp customization to a whole new level!
;) yes this was my aim… and don’t forget to add to the list sed_section_fields (which apparently will be integrated in the next glz_custom version ) or maybe a revised version of my bot_hide_per_section… this will allow to virtually have a totally different write tab per section!
Offline
Re: bot_write_tab_customize: rearrange and style items in the write tab
redbot wrote:
This plugin is supposed to already support unlimited cfs.
My fault! I was searching for ‘custom3’ in the select list, but forgot I renamed it! :)
Thanks again! This + admin themes + custom fields + ied hide in admin (+bot admin tooltip for idle clients…) pushes txp customization to a whole new level!
;) yes this was my aim… and don’t forget to add to the list sed_section_fields (which apparently will be integrated in the next glz_custom version ) or maybe a revised version of my bot_hide_per_section… this will allow to virtually have a totally different write tab per section!
Yes, I never tried sed_section_fields, because I can’t understand what version is the ultimate patch (wet of gerald’s one) and after all I don’t really need it. But I could try bot_hide_per_section, anyway!
Offline
#18 2009-10-26 12:12:03
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_write_tab_customize: rearrange and style items in the write tab
Zanza wrote:
… But I could try bot_hide_per_section, anyway!
Don’t do it! This plugin was only a prototype written months ago in a rush to replace sed_section before Wet updated it, it has no gui and it’s probably incompatible with txp 4.2.
I said maybe I’ll use it as a starting point for a new version with a gui. And, to be clear, I’m absolutely sure Gerhard will do a better work; the only difference is bot_hide_per_section can hide every item on write tab , not only custom fields.
Offline
Re: bot_write_tab_customize: rearrange and style items in the write tab
bot_hide_per_section works perfectly on 4.2. It fits my small needs, for the moment. And I like the sliding effect (a pity that the same effect is not showing when turning back to the previous section with more fields, but only when making a field disappear; nice, anyway). Seems appropriate for a client of mine… :)
Last edited by Zanza (2009-10-26 13:55:57)
Offline
#20 2009-10-27 13:36:59
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_write_tab_customize: rearrange and style items in the write tab
Version 0.2 fixes this problem: now works if there are no custom fields set.
Offline
#21 2009-10-27 13:46:35
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: bot_write_tab_customize: rearrange and style items in the write tab
Thanks, Redbot! :)
Would you please integrate the save button in your next update of bot_wtc? “Update” is comprised but “Save” isn’t.
(Thanks also for the glz_cf update on bot_admin_tooltips!)
more!bot! more!bot! ;)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#22 2009-10-27 13:50:08
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_write_tab_customize: rearrange and style items in the write tab
uli wrote:
;)
Good point Uli! I totally missed it. I’ll add it to the next release (hope soon). thank you!
Offline
#23 2009-10-27 14:01:51
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_write_tab_customize: rearrange and style items in the write tab
Ok. V. 0.3 adds the “save button” to movable items.
See the updated first post for download.
Offline
#24 2009-10-31 14:48:10
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_write_tab_customize: rearrange and style items in the write tab
V 0.4 is out. It adds some useful features:
- A custom css class can be set for each item. This let’s you define classes for items that normally couldn’t be targeted with simple css (i.e. a p surrounding a specific custom field and his label) so then can be styled adding some rules in your textpattern.css.
- Javascript code can be set directly throught the plugin interface. Particularly useful for use with an external jquery plugin and in conjunction with the ability to add a css class to any item on the page.
See first post for updated description and download.
Offline
Re: bot_write_tab_customize: rearrange and style items in the write tab
This let’s you define classes for items that normally couldn’t be targeted with simple css
now, that’s powerful ! Thanks!
Last edited by PascalL (2009-11-01 19:25:02)
Offline
#26 2009-11-17 01:13:17
- jelle
- Member
- Registered: 2006-06-07
- Posts: 165
Re: bot_write_tab_customize: rearrange and style items in the write tab
Great plugin Redbot!
Feature suggestion: besides “before” and “after” a “hide” option to remove certain items from the write page. Right now, for each item I want to hide, I need to add a class and some extra custom jquery.
Last edited by jelle (2009-11-17 01:16:51)
Offline
#27 2009-11-17 02:05:33
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_write_tab_customize: rearrange and style items in the write tab
jelle wrote:
… Feature suggestion: besides “before” and “after” a “hide” option to remove certain items from the write page. Right now, for each item I want to hide, I need to add a class and some extra custom jquery.
Hi jelle,
To tell the truth I didn’t include this feature on purpose given that I use (and recommend) ied_hide_in_admin which allows for a more granular per-user elements hiding and works also in the “categories” subtab.
Actually sometimes I really don’t need an item and so I use a method similar to yours – i.e. apply a class “hide” – (I have an “hide{display:none;}” rule in my standard txp.css file).
So, thank you for the suggestion but I don’t know if I’m gonna implement this. I’m rather planning to add a more challenging feature IMHO: the ability to hide/show items on section change (essentially I’m trying to incorporate and update my proof-of-concept plugin bot_hide_per_section ).
This – combined with glz_custom_fields and with his ability to add textareas – plus the ability to hide every item, not only cfs (and possibly adding to the mix rah_for_each_section), could allow for a really higher level of customization.
Last edited by redbot (2009-11-17 11:05:54)
Offline
#28 2009-11-17 08:49:23
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: bot_write_tab_customize: rearrange and style items in the write tab
I’m getting the following error when assigning two of my glz custom fields after the body area.
Notice: Undefined index: $("p:has(*[name=custom_2])") in /home/kweb/public_html/kmc2/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 302
Notice: Undefined index: $("p:has(*[name=custom_3])") in /home/kweb/public_html/kmc2/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 302
Offline
#29 2009-11-17 09:41:13
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_write_tab_customize: rearrange and style items in the write tab
FireFusion wrote:
I’m getting the following error when assigning two of my glz custom fields after the body area.
Notice: Undefined index: $("p:has(*[name=custom_2])") in /home/kweb/public_html/kmc2/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 302
Notice: Undefined index: $("p:has(*[name=custom_3])") in /home/kweb/public_html/kmc2/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 302
You are perfectly right, my fault. I left an ancient stray line in the plugins code which is causing the bug.
I hope to release a new version shortly, in the meantime you can solve the problem by just editing the plugin and removing line 302.
Thanks.
Offline
#30 2009-12-01 16:06:50
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_write_tab_customize: rearrange and style items in the write tab
Version 0.5 is out.
Main additions:
- The plugin now incorporates bot_hide_per_section so every item (not only cfs) can be hidden on a per section basis
- sections can be excluded from the “sections” dropdown
- some bugs corrected
The plugin has been partly rewritten so if you are using a previous version you must first uninstall it completely (from extensions > bot_wtc > uninstall).
Please report here any bugs or problems.
For download and infos see updated first post
Offline