Closed (fixed)
Project:
Image Browser
Version:
6.x-2.x-dev
Component:
Plugin: WYSIWYG API
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2009 at 23:18 UTC
Updated:
23 Dec 2009 at 19:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
jdelaune commentedLine 241 of imagebrowser.module. Good feature request though. If you want to create a patch where you can set a filepath in the imagebrowser admin settings and the variable get used on this line then feel free and I'll commit it :)
Comment #2
Golem07 commentedThanks a lot for the info - sufficient for what I need :)
I'd love to commit patches... but unfortunately PHP looks exactly like chinese to me :(
Comment #3
yachuu commentedI've done everything for adding filepath to imagebrowser admin site. It's working but only when this directories of filepath exist, so I want to apply some code to check theirs existance and create them if don't exist. But I don't really know how to do this (i'm not familiar with drupal API). I try several functions but neither of them works.
If you tell me i try to prepare patch (preparing patches is thing i need learn too ;) maybe you can give me some useful links/tutorials/instructions etc.)
Comment #4
jdelaune commentedhttp://api.drupal.org/ is your best place. Some of these functions might help: http://api.drupal.org/api/group/file/6
And here's how to create a patch: http://drupal.org/patch/create
Cheers
Comment #5
yachuu commentedi've already try functions:
file_check_directory
file_check_path
file_create_path
file_create_filename
and some other combinations with:
file_exists
mkdir
and neither of them (or combinations) work in way i want to.
probably i do something wrong - i will try again
Comment #6
yachuu commentedI've done this, please look and try how it works :)
Images path can be assign to each role.
Css file path is global. It doesn't depend on role, I think this is only solution since styles for every role are stored in one file.
I've also done some changes in README.txt file to make it a little more clear :) and to suggest users set defaults in admin pages
PS. I don't know if I've done patch file properly. If not tell me what is wrong