Download & Extend

Drupal in sub dir but jcarousel block looking in root

Project:jcarousel block
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi,
First, thanks for a great module. I am hoping I can get some help with my issue.

I have my drupal (6.4) installed in a subdir of the main domain.
I have CCK and ImageField installed
I have jcarousel_block installed and showing in the nodes.
for eg. http://epro.com.au/epro/node/21

The issue I have is when the block shows there are no images in the carousel.
when I look through the source of the page it shows:

  • Only local images are allowed.
  • Only local images are allowed.
  • Only local images are allowed.

and the images are pointing to epro.com/sites/default/files/pics/EDGE_logo_Running.gif
rather than epro.com/epro/sites/default/files/pics/EDGE_logo_Running.gif

Is there something I can do to make this work?
Is the module not reading the baseURL correctly or is it something I have done?
Any assistance would be greatly appreciated.

With Regards
Wakido

Comments

#1

Hmm.... that's something i didn't tested. Let me try to fix it today and make a new release

#2

It seems that I was using

<?php
    $formatted_image
['path'] = '/' . $image['filepath'];
   
$formatted_image['thumb_path'] = '/' . $thumb_path;
?>

, which is fixed.

Now I've changed it to something like

<?php
  
global $base_url;
...
   
$formatted_image['path'] = $base_url . $image['filepath'];
   
$formatted_image['thumb_path'] = $base_url . $thumb_path;
?>

and hopefully it fixed the problem.

#3

Status:active» fixed

#4

I rolled a 1.5 release for that. Please try it.

#5

Status:fixed» closed (fixed)

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

nobody click here