Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2007-10-05 03:49:16

robin746
Member
From: Ireland
Registered: 2007-09-22
Posts: 113
Website

Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin

A serious bug occurs in IE 6 and IE 7 (earlier versions won’t work anyway) due to a very long concatenated line of javascript. Solution is to insert “n.” like so:

function ied_hide_in_admin_do ($thing, $userlevel, $jsout, $jsout2='') {
	$pref=fetch('val','txp_prefs','name','ied_hia_'.$thing); 
	if (!$pref) $pref='111111';
	// HACK -- add n.
	if (is_callable('dom_attach') && $jsout2 != '') {
		echo ($pref[$userlevel]==0) ? n.$jsout2 : '';
	} else {
		echo ($pref[$userlevel]==0) ? n.$jsout : '';
	}
}

This was hell to figure out.


robin

Offline

#74 2007-10-05 04:27:07

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin

what exactly did the bug do? plugin seems to work fine for me in ie6 and 7 without that alteration.

Offline

#75 2007-10-05 11:52:41

robin746
Member
From: Ireland
Registered: 2007-09-22
Posts: 113
Website

Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin

Before the fix I got an error complaining about an illegal character at line such-and-such. If ignored, the page would not finish rendering and the save/publish button would not work.


robin

Offline

#76 2007-11-22 21:01:49

plugmas.com
Member
Registered: 2007-09-05
Posts: 65

Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin

What about hide author list admin => users tag?

Offline

#77 2008-06-29 23:26:36

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

Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin

Hi Yura,
it’s been more than a year since your last appearance here and I’m a little worried, because this is an essential plugin which – together with sed_section_fields and glz_custom_fields – really boosts up txp interface. I’m using it all the time even if it behaves strangely sometimes (see the various posts in this thread) and frankly I don’t think I could still build a site without this plugin installed (apart from hacking directly the txp code).
I hope you are still willing to mantain it, otherwise I wonder if there is somebody who wants to adopt it.
Unfortunately I’m not too familiar with javascript or jquery but if nobody wants to take the task I’ll be forced to code it myself. Which will presumibly take some years (and yes, I know I’m too optimistic).

Last edited by redbot (2008-08-20 14:13:02)

Offline

#78 2008-06-30 00:15:19

robin746
Member
From: Ireland
Registered: 2007-09-22
Posts: 113
Website

Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin

I agree redbot. In fact I’d like to be able to completely customise the user interface for writers. Such facilities would really boost Textpattern IMO. Making it easy for clients is what it’s all about.


robin

Offline

#79 2008-07-06 14:04:02

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin

All

Out of curiosity, what are the fields that you most often hide using this plugin?


Steve

Offline

#80 2008-07-06 15:00:49

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

Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin

I Always Hide:
  • Excerpt – I use rss_auto_excerpt instead
  • Use Textile – I use hak_tinyMCE on every install.
  • Keywords – I’ve just never found the need – and when I did – users never filled it in
  • URL-only title – I leave it for privs 1,2 – hidden for anyone else.
And depending on the site:
  • Category 2 – just clutter if there’s only need for 1 category assignment.
  • Override Form – Override form is great when you need it – but I hide it 75% of the time.
  • Comments

Offline

#81 2008-07-06 17:59:43

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

Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin

I Always Hide:

  • Use Textile – I use hak_tinyMCE on every install.
  • Override Form
  • Keywords
  • URL-only title

And depending on the site:

  • Both categories – I tend not to use them – I prefer custom fields (obviously with glz_custom _field + sed_section_fields)
  • Status
  • Article and link categories in the “categories” tab

I Always keep open:

  • advanced options
  • recent articles

edited: moved “override form” to items I always hide

Last edited by redbot (2008-07-06 20:57:35)

Offline

#82 2008-07-06 20:04:48

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

Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin

I hide everything but:

  • URL-only title
  • Article Image
  • Custom fields (sed kindly hides all but the pertinent fields)

…except my cocktail of plugins has never allowed this plugin to work, so I add a div with a class="hidden" inside “advanced options” that ends just before “article image” to txp_article.php then display:none that puppy, and let sed show the rest when needed.

Ugly Hack, pretty interface.

Last edited by mrdale (2008-07-06 20:13:08)

Offline

#83 2008-07-06 20:51:36

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

Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin

mrdale wrote:

…except my cocktail of plugins has never allowed this plugin to work…

Did you set “allow form override” to “no” in your preferences ?
In this case set it to “yes” and then hide it with ied_hide_in_admin. Usually this is the cause for the plugin not working…

Offline

#84 2008-07-09 02:38:47

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

Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin

Disclaimer: I haven’t done much tweaking to the TXP admin…so I might be talking out of my arse here.

There’s a lot of talk about admin redesign going on. (too lazy to find all the threads right now).
I’ve noticed that issues with with this plugin keep coming up when talking about re-arranging elements in the admin.
It’s pretty much indispensable, and it’s functionality should be in the core – however – short of that happening…

A potential solution
It seems to me that if each element in the admin had/has a unique id or class
then it wouldn’t be to difficult to use jquery to show/hide those elements – no matter how they are arranged.

Take the write status for example:
<fieldset id="write-status">

The required jquery to hide it:
$('#write-status').hide();

With this method you could customize the admin however you want, and still be able to use the same plugin.

See where I’m going with this? I haven’t totally fleshed this out, and probably haven’t done the greatest job explaining myself.
I’ll check into it more tomorrow and post a follow up, just wanted to get the idea out there.


Tom

Offline

Board footer

Powered by FluxBB