The rListing module is fantasitic, it seems to be the best real estate module i have seen so far. If Clean URLs are not enabled then everything appears to work fine but when Clean URLs are enabled the only images that are displayed are the thumbnails in listing nodes. The icons (email.png, etc) don't show, the mini thumbnail in the featured listing block doesn't show and when a node thumbnail is clicked Thickbox gets stuck on the loading display. Any ideas on how to get Clean URLs working?

Comments

kenuck’s picture

Assigned: Unassigned » kenuck

Thanks for this, I'll take a look and see if I can find a fix.

cheers

nsolop’s picture

Same problem here, if you enable clean urls the Thickbox does not work anymore.

Regards,

Nicolas Solop
Buenos Aires, Argentina

nsolop’s picture

Found a workaround. The problem is at the Pathauto module. For some reason the path of the images are not passed correctly when you are viewing a node or at the featured listing block. My workaround is change the path of the nodes at the Pathauto module configuration page (/admin/settings/pathauto) from content/[title-raw] to /[title-raw].

Hope this can help!

Regards,

Nicolas Solop
Buenos Aires, Argentina

goosemoose’s picture

I don't have pathauto installed but it still doesn't work, help! If I disable clean url's then Thickbox works, otherwise it doesn't. Can't be pathauto as it's not installed. Any other ideas?

joshua.howell’s picture

I've found that the factor which usually stops thickbox from working (getting stuck on the loader without doing anything) is incorrect filepaths/sorcepaths. If the path to the image is not exact then thickbox will hang. To check if this is the case, disable clean URLs so that the images show, right click on an image and make a note of its path. then turn clean urls back on, right click the same image and check if its path matches. in some cases i had to add a "/" at the beggining of my paths to get them to work. Hope this helps.

nsolop’s picture

Hi Joshua, I can't make it work with the results of the search block. Could you provide me a copy of your listing.module if you have solved it?.

Thanks in advance.

Nicolas Solop
Buenos Aires, Argentina

joshua.howell’s picture

Hi Nicolas, I've hacked the crap out of my listing.module and made soooo many changes that i forget how i got specific things to work. I can upload the file but you would only be able to use it as a reference because if you did try to use it you would probably get a bunch or error messages because of all the changes i've made. Let me know if you still want it. What exactly were you trying to get working?

Joshua Howell

nsolop’s picture

Thanks for your response Joshua, have everything working here but the thickbox images after a search using the form. That's the only problem that I can't find a way to solve it. For some reason after the usage of the form, the result nodes miss the path of the images on the thickbox adding a /listing/ before the real path.
If you have the time please send me the listing.module file to nsolop(at)gmail.com and will compare later with the original file that I have.

Thanks in advance and sorry about my English.

Nicolas Solop
Buenos Aires, Argentina.

nsolop’s picture

Hi all, Joshua sent me the listing.module file he modified and found there what was causing the problem on mine.

this is the original line:

$images .= 'nid.'" href="'.$image->filepath.'" title="'.$description.'" height="'.$height.'" width="'.$width.'">'.$thumb.'';

and this is the line after the modification:

$images .= 'nid.'" href="/'.$image->filepath.'" title="'.$description.'" height="'.$height.'" width="'.$width.'">'.$thumb.'';

That change made it for my site.

Thanks again Joshua.

Nicolas Solop
Buenos Aires, Argentina

goosemoose’s picture

Nicolas,

What you posted worked but my unmodified original file looked different (I'm guess you stripped css out). For others, here's what the original and changed version look like. The difference is the extra /. Can we make sure this makes it into the next release? It worked perfectly for me too.

Original
$images .= 'nid.'" href="'.$image->filepath.'" title="'.$description.'" height="'.$height.'" width="'.$width.'">'.$thumb.'';

New
$images .= 'nid.'" href="/'.$image->filepath.'" title="'.$description.'" height="'.$height.'"width="'.$width.'">'.$thumb.'';

Dominic

earth’s picture

Status: Active » Fixed

http://drupal.org/node/244814#comment-877480

Think the issue has been resolved, please help verify and think we can close several threads on this issue!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

jmary’s picture

Status: Closed (fixed) » Needs review

Goosemose and nsolop I don't know what version you have because mine is :

Line 820 of listing.module :

$images .= 'nid.'" href="'.$image->filepath.'" title="'.$description.'" height="'.$height.'" width="'.$width.'">'.$thumb.'';

And this line must be modified into : (we add .base_path() in place of simply /).

$images .= 'nid.'" href="'.base_path().$image->filepath.'" title="'.$description.'" height="'.$height.'" width="'.$width.'">'.$thumb.'';

This way works even if drupal is not installed at the root directory of the web server.

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 199796)