Hi to all...

I'm exploring the possibilties of this great module and would like to ask for a feature:

I need to Hide, for a specif role, the default setting "None, use the original size" in "ImageCache Preset" select-form (inside the Pop-up).

This for avoiding user to attach too large image in the body text area.

Also a code modding could be usefull!

Thanks!
Bye

CommentFileSizeAuthor
#3 imagefield_assist.module.txt70.96 KBDret

Comments

Dret’s picture

Found a solution: adding the a conditional control to the .modules code even for default "None, use the original size".

;)

franz’s picture

Could you please post a patch of your modifications?
That is a very useful feature!

Dret’s picture

StatusFileSize
new70.96 KB

In Attach you can find (renamed in .txt) the patched version of my imagefield_assist.module file.

If You search for "DRET" inside the file You can find all modification I made to the original code and the comments by side.

A consideration: I'm not so skilled in PHP and Drupal API... probably there are best ways to reach for the same targets!

The modifications inlcude:

1) Removing "None, use the original size" for no Advanced user
2) Hiding Lightbox Check for ALL user and consider it "Always checked"
3) Revoving the "title" from IMG Tag (W3c standard respect)
4) (for personal use) Removing Title/Image description under the Image (but not in "alt" of Img Tag)

All this modification are in purpuse to make easier the insert-image process for end-not-so-skilled-users!

Bye!

Anonymous’s picture

can be done with form api as well.

franz’s picture

Status: Active » Fixed

1) There is now a check for the permission 'use original size'. (in the dev version).
3) Removed the title.

as for the 4), it's a shame, this should be themeable

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.