Hello

I've noticed a strange behavior of IMCE, which is used as a file manager with FCKEditor, when Acrylic theme is enabled for the site.
With all other themes that I tested, IMCE has options Upload, Thumbnails, Delete, Resize, Send to FCKEditor. However, when Acrylic is enabled, only two of the options remain, Upload and Send to FCKEditor. Persistent in all major browsers...
Does anybody happen to know?

Comments

gjangelo’s picture

Are you logging in as the same user for both themes? IMCE has granular permissions so it is possible that one user (admin) has all permissions by default; and another user has only upload permissions and has to be granted other permissions.

Other than that, Did you view the rendered HTML of the IMCE pop-up in both themes? Are they identical? It could be some CSS in the Acrylic theme that is suppressing items with #op-item-delete & #op-item-resize ids.

_teseo_’s picture

For Garland them, html source for this option wich not appears, is:

...
<div id="ops-wrapper">
  <div id="op-items">
    <ul id="ops-list" class="tabs secondary">
      <li id="op-item-upload">
        <a href="#" name="upload">Upload</a>
      </li>
      <li id="op-item-thumb">
        <a href="#" name="thumb">Thumbnails</a>
      </li>
      <li id="op-item-delete">
        <a href="#" name="delete">Borrar</a>
      </li>
      <li id="op-item-resize">
        <a href="#" name="resize">Resize</a>
      </li>
    </ul>
  </div>
<div id="op-contents">
  <div id="op-content-upload" class="op-content">
  <div id="op-content-thumb" class="op-content">
  <div id="op-content-resize" class="op-content">
</div>
</div>
...

For Acrylic theme, is:

...
<div id="ops-wrapper">
  <div id="op-items">
    <ul id="ops-list" class="tabs secondary">
      <li id="op-item-upload">
        <a href="#" name="upload">Upload</a>
      </li>
    </ul>
  </div>
<div id="op-contents">
  <div id="op-content-upload" class="op-content">
  </div>
</div>

Some idea?

_teseo_’s picture

I've a fix by dsms and ufku:

Found out that acrylic and other artisteer themes change button markup from input to button.
In your template.php

find
function acrylic_button($element) {

and change into
function acrylic_button($element) {
if (arg(0) == 'imce') return theme_button($element);