Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2006-12-19 19:06:51

LeeUmm
Member
From: Hamilton, Ontario
Registered: 2005-04-22
Posts: 91
Website

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

Works great. I can confirm that both hiding the advanced options as a whole and hiding certain elements within it work fine when using the tiny_mce plugin with txp 4.0.4.

Thanks for the effort.

Offline

#62 2007-02-07 19:46:30

blueprint
Member
From: Netherlands
Registered: 2006-03-05
Posts: 43
Website

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

Strange thing: the patch works fine for my site at the ISP (Unix environment); on my home computer (XP) it doesn’t work. I made a clean, new install of TXP and installed the patch as the first plugin. But it didn’t work. Does anybody have a clue???

Offline

#63 2007-02-07 20:42:09

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

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

Blueprint check the source of the page.

Towards the end you should be seeing something like
document.getElementById("advanced").previousSibling.style.display="none";
printed out. See if it’s the same between your ISP and your home computer. The hiding is all done on the client so the server environment shouldn’t affect it.

Last edited by hakjoon (2007-02-07 20:43:25)


Shoving is the answer – pusher robot

Offline

#64 2007-02-08 20:25:16

blueprint
Member
From: Netherlands
Registered: 2006-03-05
Posts: 43
Website

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

Thnx for the suggestion; it triggered my mind that it wasn’t handled on the server, but that it is client code.
In order to compare the code of both my ISP site and my XP site I made sure that I had turned off the same options. And when I did that the plugin worked on my XP site.
And after some research I found that the option: Write: Toggle off Textile Help was the origin of my problem>
I have the hak_tinymce plugin installed, and in Preference I have turned Textile off. Turning the option Write: Toggle off Textile Help off in the hide in admin gave the result that the whole plugin didn’t work. So the solution was quiet simple: turning Write: Toggle off Textile Help on in the hide in admin.
However, it is a bit of a quirky plugin.

Last edited by blueprint (2007-02-08 20:27:13)

Offline

#65 2007-02-08 20:36:03

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

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

The javascript in the plugin is not very defensive. It doesn’t check if the element exists before trying to apply a property to it. Doing that to a not existent element normally cause Javascript to just error out.

Please no one take this as an attack on Yura’s code. The implementation of this plugin is quite brilliant and not something I would have ever come up with.

Last edited by hakjoon (2007-02-08 20:36:36)


Shoving is the answer – pusher robot

Offline

#66 2007-02-09 21:22:56

lreynolds
Member
From: Burlington, ON, Canada
Registered: 2007-02-09
Posts: 30
Website

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

The plugin is working for me, but it won’t expand the left menus, or remove any of the advanced options. I’ve tried the patched version, and tried checking and unchecking the toggle ones. I’m using 4.04. Anyone have any ideas?

Thanks,

Offline

#67 2007-02-10 11:21:54

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

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

renobird,
there are some tricks to this plugin, sometimes you need to make sure you have the right combination of boxes ticked or other oddities. For instance, you need to have some article categories for categorization to show up. I think this is because of TXP not the plugin persay.

M


Offline

#68 2007-05-12 16:43:25

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

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

If I have more than 10 custom fields they are not displayed as option for hiding in this plugin.

Offline

#69 2007-05-12 18:46:05

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,596
Website

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

If I have more than 10 custom fields they are not displayed as option for hiding in this plugin.

txp caters for a maximum of 10 custom fields. If you’ve hacked txp to manage more, you’ll need to adapt the plugin accordingly. Check the function ied_getCustomFields near the end of the plugin code. There it says while ($i < 10). You’ll need to change that to cater for more custom fields. Similarly in function ied_hide_in_admin_main($message='') there’s also a line reading for ( $i=1; $i<=10; $i++ ).


TXP Builders – finely-crafted code, design and txp

Offline

#70 2007-06-30 14:57:41

johan_vm
Member
From: Antwerp, Belgium
Registered: 2005-04-24
Posts: 30
Website

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

lee wrote:

Hi Yura,

it seems the write tab has been changed since you updated you plugin, it now has a more label and a create new label, would you consider adding these to the plugin so they can be hidden?

Many thanks, Lee.

Great plugin!
It really helps simplifying TXP for end users.

I was also wondering if this will be implemented in the future…
(removing the more label)


Dutch Ruby on Rails news and articles: OnRails

Offline

#71 2007-06-30 15:03:45

johan_vm
Member
From: Antwerp, Belgium
Registered: 2005-04-24
Posts: 30
Website

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

Inspired wrote:

The plugin can now hide any of the four categories in the Organise tab and any of the fields in the Image tab edit mode (thumbnail, replace image, category, caption etc.).

Additionally it now gives you option to have “Textile Help”, “Advanced Options” and “Recent Articles” in the Write tab be opened by default (as well for any of the user levels or for all).

I’ve encountered a problem:

I am using TXP 4.0.4 and ied_hide_in_admin 0.1.6
(I haven’t installed any other plugins yet, as I just started working on a clean TXP install).

“ied_hide_in_admin” works fine generally, but I am unable to hide any of the images related stuff:
  • Image: Replace image
  • Image: Upload thumbnail
  • Image: Create thumbnail
  • Image: Image name
  • Image: Category
These 2 can stay visible:
  • Image: Alt text
  • Image: Caption

Too bad… I really like the minimalism of this plugin…

Any chance a solution exists?
Thanks in advance!


Dutch Ruby on Rails news and articles: OnRails

Offline

#72 2007-07-02 15:45:59

Inspired
Plugin Author
From: Kiev, Ukraine
Registered: 2005-01-28
Posts: 87
Website

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

Hi guys!

Sorry, I dropped out from textpattern life for quite some time, that’s not because I don’t love you, I love you all very much :) and wish I can pay some time soon to update the stuff and make you happy.


Plugin Composer — admin plugin to write your own plugins

Offline

Board footer

Powered by FluxBB