Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#241 2011-11-17 15:20:46

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

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

colak wrote:

…Yep, i’m sure:) Here is a screen shot: http://www.neme.org/images/328.png…

Hi again,
did you check the underlying html? the ‘insert image’ link should still reside inside the ‘#advanced_group’ div even if it may appear differently from your screenshot.
Am I right?

Offline

#242 2011-11-18 07:19:29

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,852
Website GitHub Twitter

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

Yes, in the html it does indeed appear in the #advanced_group div.


Yiannis
——————————
neme.org | hblack.net | EMAP | NeMe @ github
I do my best editing after I click on the submit button.

Offline

#243 2011-11-18 10:46:57

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

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

colak wrote:

Yes, in the html it does indeed appear in the #advanced_group div.

Ok. So we have found the issue. Let’s fix it.
Go in the bot_wtc preferences -> ‘Additional js code’ box -> add this code:

<script type="text/javascript">
    $(document).ready(function() {
        $("#advanced_group h3.plain").first().insertBefore("#advanced_group");
    });
</script>

This code shold move the link generated by upm_img just before the “advanced options” div so to solve our problem.

Offline

#244 2011-11-18 12:53:08

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,852
Website GitHub Twitter

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

perfect! thanks sooo much Luca.


Yiannis
——————————
neme.org | hblack.net | EMAP | NeMe @ github
I do my best editing after I click on the submit button.

Offline

#245 2011-12-02 17:15:04

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

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

redbot> I have an old old old old issue that I’ve never been able to solve… it’s referenced here

Basically once I have a good amount of prefs into bot_wtc it will no longer save my preferences via the simple panel. Find myself heading off to update the database directly.

Happy to give you a site login if you want to explore…

Offline

#246 2011-12-02 18:57:02

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

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

mrdale wrote:

redbot> I have an old old old old issue that I’ve never been able to solve… it’s referenced here

mr> did you ever happen to read this post and preceeding ones?
Is it useful in your case?

Last edited by redbot (2011-12-02 18:57:25)

Offline

#247 2011-12-02 20:30:29

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

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

redbot wrote: mr> did you ever happen to read this post and preceeding ones?
Is it useful in your case?

alas that would have been far too simple…

Thanks, I fixed the issue and can now save.

Last edited by mrdale (2011-12-02 20:30:57)

Offline

#248 2011-12-07 18:37:25

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

Hey redbot,

I have an install where I can’t hide any sections in the dropdown. No matter what section I choose, the pref won’t hold.
I only have about 4 prefs set to move things around, so I’m not sure this is the same kind of thing that Dale mentioned.

Any suggestions?

Running. 4.4.1 and bot_wtc 0.7

Last edited by renobird (2011-12-07 18:38:35)

Offline

#249 2011-12-07 22:34:54

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 858
Website

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

Hey Tom – This might be related… I had something similar once a year or so ago, and it turned out I had an old copy of sed_section_fields running which was still controlling some sections.

Offline

#250 2011-12-07 22:35:00

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

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

renobird wrote:

…I have an install where I can’t hide any sections in the dropdown. No matter what section I choose, the pref won’t hold…. Any suggestions?

Er… sorry no. From what i can recall I never heard a similar issue.
Let’s see… first of all – just to be sure – are you referring to the “Hide sections in sections dropdown” feature?
If so can you examine the html source of the write tab and check if you see something similar to this (where section1 and section2 are fictious values)?

<script  type="text/javascript">
	$(document).ready(function() {
           $("select#section.list option:not(:selected)[value=section1]").remove();
           $("select#section.list option:not(:selected)[value=section2]").remove();
	});
</script>

Secondly are the other plugins features (move things around) working?

edit: Or is Tye right? (thanks Tye!)

Last edited by redbot (2011-12-07 22:36:49)

Offline

#251 2011-12-07 23:19:47

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

Tye, this site used to run sed_section_fields, but it’s no longer installed.

redbot, that’s the thing, when I check a particular section in the bot_wtc pref and hit update it won’t stick.
It just reverts back to all of the sections being unchecked. So, when I view source on the write tab the only thing I see is the JS related to moving other elements — which is working BTW.

Also, just discovered another bit of weirdness. If I try to move a custom field created with glz_custom_fields (1.3.0), I get this error in console on the write tab.

Syntax error, unrecognized expression: [name=custom_5[]]

I sent Gerhard a message on twitter, but I’m not really sure which plugin could be causing the issue.
I can move other custom fields that were created before I installed glz_custom_fields without issue.

Weird huh?


Tom

Last edited by renobird (2011-12-07 23:21:22)

Offline

#252 2011-12-08 01:00:39

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

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

The second issue is a known bug – see here how to fix it untill I release a new version.
The first one is more difficult: I seem to remember this was a bug in an earlier version but you said you got the latest… mmh…
ah, another thing regarding Tye’s suggestion: If I remember correctly sed_section_fields didn’t manage to remove itself completely from the db even when uninstalled. Probably this is a nonsense but maybe you could try to check – thought phpmyadmin – if there is still some sed_section preference left in the txp_prefs table? Bah… actually I think this makes no sense at all …
Sorry Tom, I need to investigate this further but now it’s too late, I’ve got to sleep. I’ll let you know if I’ll have a better idea tomorrow.

Offline

Board footer

Powered by FluxBB