Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-05-10 21:00:13

sderuiter
Plugin Author
From: Laren NH
Registered: 2004-02-24
Posts: 38
Website

Re: [archived] waz_admin_hide_fields

Wazdog,

your plugin has some strange side effects. On the Write-tab, switching back and forth the text and html view of an article (or saving an article) inserts extra linebreaks into the text version (and br’s in the html version).

Any idea why?

Offline

#14 2005-05-10 23:24:39

wazdog
Archived Plugin Author
From: Japan
Registered: 2004-05-26
Posts: 11

Re: [archived] waz_admin_hide_fields

> sderuiter wrote:

> Wazdog,

> your plugin has some strange side effects. On the Write-tab, switching back and forth the text and html view of an article (or saving an article) inserts extra linebreaks into the text version (and br’s in the html version).

> Any idea why?

Yep, same problem I mentioned above:

> the text in the Body form textarea has strange linebreaks.

I’d recommend not using the latest version of the plugin. The older ones can still be downloaded from the same URL.

The reason for the problem seems to be the browser’s Javascript RegExp engine stripping linebreaks (or adding them, can’t quite determine the circumstances for each) when parsing the text.

This will all be solved with my core fix, which will then require no Regular Expression parsing, and only calling on element id’s. I’ll post in later today.

Last edited by wazdog (2005-05-10 23:25:42)

Offline

#15 2005-05-11 07:44:50

sderuiter
Plugin Author
From: Laren NH
Registered: 2004-02-24
Posts: 38
Website

Re: [archived] waz_admin_hide_fields

Thanks! It’s a very useful plugin, btw. I almost got used to it already…. :)

Offline

#16 2005-05-20 10:54:05

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [archived] waz_admin_hide_fields

I’m not too concerned about seeing fields I dont use, if ‘hiding’ them means the space they use remains.
So, if you hide a field does it modify the admin interface so it adjusts nicely the way everything is arranged? Or is the field literally just hidden, and the space it uses just becomes unaltered white space?

If its the latter….I reckon txp needs a plug in that allows you to fully modify the admin interface in terms of display fields, text are size and overall arrangement.

Offline

#17 2005-05-27 15:33:55

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [archived] waz_admin_hide_fields

I, for one, would like to know when you get this working so that it doesn’t reformat the text in the article body.

Last edited by tinyfly (2005-05-27 15:34:20)

Offline

#18 2005-05-28 18:28:47

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [archived] waz_admin_hide_fields

OK so it does ‘re-arrange’ the interface, not just replace the locations with white space. Pretty nice.
However I’m getting the same text area format erros as everyone else – and it took me while to diagnose this, messing with my article text to re-format it correctly etc etc.

If the pre-0.3 versions dont have this error I’d like to use them…..but you cant get them form your url.

?

Offline

#19 2005-06-01 13:39:16

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [archived] waz_admin_hide_fields

The pre-0.3 versions seem to have the same error, I tried them all

Offline

#20 2005-08-04 19:25:09

Buddy Bradley
Member
From: Peterborough, UK
Registered: 2004-07-01
Posts: 12
Website

Re: [archived] waz_admin_hide_fields

I’ve just tracked down the same error I was having to this plugin. I can see why it’s happening – because the page is rendered and then the CSS display property is updated afterwards by adding inline styles, the browser tries its best to re-arrange the words in the Body textarea but gets it a bit wrong.

I don’t think that having id’s added to the TxP code would change that happening, either – you’d just be replacing one type of style with another. Any Javascript-related solution is going to suffer from the same problem.

Commenting out those fields isn’t hard though – they’re in include/txp_article.php, around line 396 (where it starts “//— textile help ———————”).

Last edited by Buddy Bradley (2005-08-04 19:29:51)

Offline

#21 2005-11-17 17:36:41

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [archived] waz_admin_hide_fields

Did anyone get this working correctly?

Offline

#22 2005-11-26 17:17:31

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [archived] waz_admin_hide_fields

Tinyfly,
It didn’t work for me in 4.01 or 4.02

Matthew


Offline

#23 2005-11-26 17:56:11

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

Re: [archived] waz_admin_hide_fields

Nope… 2.02

Offline

#24 2006-02-03 04:40:19

wazdog
Archived Plugin Author
From: Japan
Registered: 2004-05-26
Posts: 11

Re: [archived] waz_admin_hide_fields

Unfortunately, I accidentally deleted this from my server, and don’t have any backup copies.

I’ve also stopped using/supporting it, so if anyone has a copy, wants to make it available, and support it, feel free…

Offline

Board footer

Powered by FluxBB