Textpattern Forum

You are not logged in. Register | Login | Help

#81 2010-02-01 08:25:21

mlarino
Member
Registered: 2007-06-29
Posts: 364

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

redbot wrote:

Regarding this issue you were perfectly right: this is really a naive error on my side (didn’t take in account if magic quotes were enabled or not) and I’ll fix it in the next release. Thank you for noticing!
As for the collapsible checkboxes you actually discovered a little issue with glz_custom. I’ll ask Gerhard to make glz_custom output a more manageable html for checkboxes.

I wouldnt say I noticed, My knowledge doesnt go that far :)
But thanks!

Offline

#82 2010-02-06 04:57:38

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

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

Just installed this and really liking it!

The hide-by-sections isn’t working for me at all though. This should make a given field disappear when editing an article in a checked section, correct?

I can’t seem to get it to do that, or indeed anything else.

edit: “Hide sections in sections dropdown” isn’t working either. The selected sections still show up on the article write/edit page.

Last edited by floodfish (2010-02-06 05:09:01)

Offline

#83 2010-02-17 19:21:08

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

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

Anybody have some advice or feed back about my hiding (by) sections issues described above?

Do these work for you? Am I misunderstanding what should happen?

Offline

#84 2010-02-17 19:56:24

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

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

floodfish wrote:

Anybody have some advice or feed back about my hiding (by) sections issues described above?
Do these work for you? Am I misunderstanding what should happen?

Oops!
Sorry Jason, I completely missed this post!
Anyway, from reading your first post I get that the plugin is not working at all for you :-(

This should make a given field disappear when editing an article in a checked section, correct?

Yes. In other words – when you are editing or creating an article – visible fields should change based on the section you choose from the sections dropdown.

I can’t seem to get it to do that, or indeed anything else.

so nothing hides, nothing moves, js (inserted in the js box) is not applied?
I guess the plugin is not working…

Now let’s see what can be the problem..

First: can you see the jquery code generated by the plugin in the “write” tab source code ?

Offline

#85 2010-02-17 19:58:55

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

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

Thanks for replying, redbot!

Parts of the plugin are working just fine. I can move items/fields around no problem, and also apply classes to them.

it’s only the section-related options that seem to do nothing at all.

Offline

#86 2010-02-17 20:14:13

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

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

floodfish wrote:

… it’s only the section-related options that seem to do nothing at all.

Ok, so – after setting some section hiding rule in the plugins tab – can you look in the source code and check if you can see something similar to this?:

$(document).ready(function() {
		$("#advanced").show();
		var value = $("select#section.list option:selected").val();
			if (value=="about"){
				$("p:has(textarea[id=body])").hide();
			}

(this way we can see if it is a jquery issue or a php issue).

Offline

#87 2010-02-17 20:37:23

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

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

Yes, I do see that. Snippet:

</script><script language="javascript" type="text/javascript">
	$(document).ready(function() {
		$("#advanced").show();
		var value = $("select#section.list option:selected").val();
			if (value=="default"){
				$("p:has(*[name=custom_10])").hide();
				$("p:has(*[name=custom_9])").hide();
			}

Offline

#88 2010-02-17 20:41:25

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

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

floodfish wrote:

Yes, I do see that. Snippet:

</script><script language="javascript" type="text/javascript">
	$(document).ready(function() {
		$("#advanced").show();
		var value = $("select#section.list option:selected").val();
			if (value=="default"){
				$("p:has(*[name=custom_10])").hide();
				$("p:has(*[name=custom_9])").hide();
			}

Ok, let’s go step by step. Which textpattern and jquery version his installed?

Offline

#89 2010-02-17 20:46:50

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

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

Textpattern version: 4.2.0 (r3275)
jQuery JavaScript Library v1.3.2

Offline

#90 2010-02-17 21:37:14

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

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

floodfish wrote:

Textpattern version: 4.2.0 (r3275)
jQuery JavaScript Library v1.3.2

Strange, it should work then.
Let’s see…
1) which other plugins did you install?
2) have you tried to modify the plugins loading order in the plugins tab? (select the plugin, then go to ‘with selected’ at the bottom of the page and set its order to, say, ‘9’)

Last edited by redbot (2010-02-17 21:37:41)

Offline

Board footer

Powered by FluxBB