Are there any plans to add an upload image and/or browse server feature to the image path inputs on admin/build/menu/imagemenu-customize/x/add page? This would cut out the task of uploading it to the server first...

Comments

johnphethean’s picture

Another great feature would be to automatically re-size the image to a thumbnail size option set on admin/build/menu/imagemenu/settings. Would anybody else use these features?
Cheers

marcus_clements’s picture

I was thinking upload would be nice. Haven't really considered a choose from server (IMCE?) but it's a possibility.

johnphethean’s picture

If you think you can plug in IMCE somehow that would be great! Any ideas how?

I'm looking into using ImageMenu as an accessibility tool, i.e. pictoral menus for people who can't read. I've used it in the site I'm developing at http://vias.e-gal.co.uk, but the current method for creating an image menu item is too convoluted and technical to hand over at the moment.

johnphethean’s picture

Found this page but don't really understand... http://ufku.com/drupal/imce/api

johnphethean’s picture

Any luck with that imce page? Is anyone gonna look into this?
Cheers,
John

johnphethean’s picture

Ok figured it out. add the following from lines 329 - 335 of imagemenu.admin.inc:

$form['menu']['imagepath'] = array(
    '#type' => 'textfield',
    '#title' => t('Image Path'),
    '#default_value' => $item['imagepath'],
    '#description' => t('The path to the image. <input type="button" value="Browse" onClick="window.open(\'/?q=imce&app=imagemenu|url%40edit-menu-imagepath\', \'\', \'width=760,height=560,resizable=1\')"'),
    '#required' => TRUE,
    '#weight' => -9,
  );

This adds a 'Browse' button to the description of the Image Path field to open IMCE. Messy but works for me for now.

marcus_clements’s picture

I've wrapped your html in a module_exists check for IMCE and added it to the image path and the mouseover image path.

Nice feature :) thanks.

This is comitted to CVS so should appear in the next nightly dev snapshot.

johnphethean’s picture

Status: Active » Fixed

Nice one cheers, look forward to seeing it in the next commit!

marcus_clements’s picture

Should be in the current dev release. Please download and test if u have time - then i can do a 6.2 release soon.

johnphethean’s picture

Seems to be working fine, nice one cheers!

Status: Fixed » Closed (fixed)

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

WishICouldDrupalPlease’s picture

IM still unable to ge tthe path to work manually or even adding this code to manually put an upload button into my Imagemenue module..

Please help..

Even if its help with inputing the correct path..

I've tried..
http://elevatingthecommunity.org/LAUL/Home.jpg
which doesnt find the file,

what should I put in the field for Image file path??