wrong images path

uastasi - February 24, 2007 - 17:39
Project:IMCE_Gallery
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

In imce_gallery.js
remove
/kadarusman
from

<img src='/kadarusman/modules/imce_gallery/closelabel.gif' />
<img src='/kadarusman/modules/imce_gallery/prev.gif' />
<img src='/kadarusman/modules/imce_gallery/next.gif' />

otherwise those three images won't be loaded.

#1

interface79 - February 24, 2007 - 17:55

in imce_gallary.module is a wrong path too.
In

<?php
function imce_user_page_overload($user) {
...

$div .= '<form name="imce_gallery_items_add" id="imce-gallery-items-add" action="/kadarusman/?q=user/'.$user->uid.'/imce" method="post">';
?>

should be without /kadarusman.

I just installing this module and I think it's a great add-on for the drupal-community.
Thank you so much.

#2

lsabug - February 26, 2007 - 04:48

I concur about the wrong images path for imce gallery. I've uploaded photos with IMCE and they display correctly but when I add them to IMCE gallery they path is built like so:

<img src="//home/user/files/usr1/graymatters.jpg" alt="" title=""  width="110" border="1" id="img_0" name="gallery_images" />

Actually, it should probably be more like this to display (I am using private file system):

<img src="/system/files/user/graymatters.jpg" alt="" title=""  width="110" border="1" id="img_0" name="gallery_images" />

I know it's picking up the file configuration settings but it's not outputting it correctly so it can then be viewed on the page. How can it be fixed so that it doesn't use the actual files path in front of the img name but uses drupal's privacy setting of /system/files/ etc.?

thanks.
lsabug

 
 

Drupal is a registered trademark of Dries Buytaert.