I created a folder for my images on sites/default/files/myalbum and managed to display the list of the albums and pics that I have on that folder (Site configuration › Brilliant gallery > Manage galleries) but then when I replaced the Path to main gallery folder: to Picassa album RSS link and go to Site configuration › Brilliant gallery > Manage galleries, I get an error saying:
warning: Invalid argument supplied for foreach() in /../sites/all/modules/brilliant_gallery/brilliant_gallery.module on line 366.
How do I fix this problem? And also, when I pasted the RSS link on the Path to main gallery folder field the URL seems cut off at a certain point. Will this be a problem or could this be the problem? I need help.
Comments
Comment #1
bubbletea commentedComment #2
bubbletea commentedComment #3
nsummy commentedDo not replace your gallery link in the brilliant configuration with the picasa link. If your pics are in the myalbum folder, it should say "myalbum" without the quotes. You only use the picasa link when putting the tag in your node. Example: [bg|http://picasaweb.google.com/data/feed/base/user/nsummy/albumid/530942250...
Comment #4
nsummy commentedComment #5
bubbletea commentedI put back the myalbum (sites/default/files/myalbum) on the Path to main gallery folder field so I got a list of album and a pic in it going (Site configuration › Brilliant gallery > Manage galleries). I get stuck though when I have to use the [bg|path] (Picasa link). What I did was I created an input format with the following settings:
Name: BG Input Format
Roles: anonymous, authenticated, admin
Filters: Brilliant Gallery Tag, Lightbox filter, Lightbox modal filter, Lightbox slideshow filter, Line break converter
Then, I configured Administer › Site configuration > Brilliant gallery settings. On Administer › Site building > Blocks, I have BG displaying on the content area (using Garland theme at the moment). Finally, I created a page Create content > Page, which has Title, Menu link, and Body. Now in the Body area, I plugged in [bg|path] (Picasa link).
Now if you remember I still have the myalbum from sites/default/files/myalbum, which has only one pic at the moment for testing. Now this 'myalbum' shows on the page (with a black thumbnail for some reason and not even clickable) but I can't get the [bg|path] (Picasa link) show up on the page. I know I'm doing it wrong. Pardon me but this is my first attempt with Drupal. Any guidance to set BG up from the beginning to actually using it on a page would be very much appreciated.
Comment #6
bubbletea commentedDid some research and finally got the test album (sites/default/files/myalbum) working flawlessly the only problem I'm having now is that it seems like it's not fetching the Picasa album.
When I use:
[bg|samplealbum] - displays perfectly on the page
[bg|] - doesn't display. Page is empty
I followed this discussion -> http://drupal.org/node/368583 but still can't get the Picasa images display.
Comment #7
bubbletea commentedCorrection:
Comment #8
nsummy commentedI'm not sure I can be of much help. I have abandoned this module as I have had the same exact problem as you as have others. There does not seem to be a solution
Comment #9
nsummy commentedComment #10
mennonot commentedIn case it isn't clear from this thread, the solution to this error:
warning: Invalid argument supplied for foreach() in /../sites/all/modules/brilliant_gallery/brilliant_gallery.module on line 366is to just list the name of the directory you created at sites/default/files/. Do not include any slashes. So if you're directory is this sites/default/files/albums, then the field should just have "albums" (without the quotes).
There's got to be a more graceful way of handling this error as well as better documentation of exactly what they expect from you.
Comment #11
blade003 commentedThere seems to be some confusion on how to configure the Path to the main gallery folder.
The normal syntax in most module configurations will be to configure an image path as such ..... sites/default/files/images but Brilliant Gallery uses Drupal's "File system path: " as a prefix hence you ONLY need to enter the actual directory itself (create one if it doesn't exist). I have given an example on how it should be done below:
* Drupal's "File System Path" = sites/default/files
* Brilliant Gallery's "Path to the main gallery folder" = /images (make sure you create the folder called images)
--- IMPORTANT NOTE: - Remove any prefix in the file path for BG to recognise it otherwise it won't work
Hope this helps!!!
Comment #12
vacilando commentedDuplicate of #360030: The correct syntax for the image path!!! - SOLVED!!!.