How I got 5.x-1.7 working

alexbiota - October 6, 2008 - 19:24
Project:Couloir Slideshow
Version:5.x-1.7
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello,

I could not get 5.x-1.7 version working with the module using the File System path. Maybe because I do have a weird system path (../site_files), maybe because I was using private download method, or maybe there is a bug.

Anyway, changing two lines of code made a workable solution. The main difference is that the actual images are stored in the module's folder.

208c208
< $imagepath= file_directory_path() . '/' . variable_get('couloir_slideshow_imagepath_'. $delta, 'couloir_slideshow'.$delta);
---
> $imagepath= drupal_get_path('module', 'couloir_slideshow') . '/' . variable_get('couloir_slideshow_imagepath_'. $delta, 'couloir_slideshow'.$delta);
284c284
<     '#description' => t("Image path relative to the configured File System Path, currently <b>/" . file_directory_path() . "</b>.")
---
>     '#description' => t("Image path relative to the Couloir Slideshow module path, currently <b>/" . drupal_get_path('module', 'couloir_slideshow') . '/' .  "</b>.")
381c381
< ?>
\ No newline at end of file
---
> ?>

#1

vince.is - October 19, 2008 - 14:13

Yeah!
It worked for me!!!
Thank you

 
 

Drupal is a registered trademark of Dries Buytaert.