Hello,
Maybe this is not the perfect forum to post my question, but i'll do it anyway and mods are welcomed to move it elsewhere.
Since simpleviewer doesnt really fulfill everything i need, i decided to take advantage only of the XML file the module generates,
for the purpose of getting number of files and all filenames within specific gallery. Next step would be generating correct paths, making
it possible to display correct gallery on the basis of the iD number provided at the end of simpleviewer XML link.
i'm not using any CMS, or anything like that, my site is pure PHP coded.
currently i have implemented some lightbox effect gallery (so, no flash), and that suits me perfectly for displaying images, and users
would need to log in to gallery to manage their images.
now my question is: how to make G2 stop preventing me accessing my image files using a url similar to this:
/gallery/g2data_fgdgdh/albums/username/album/image.jpg ?
This throws me an error saying i dont have permission to access the file or something like that.
is there any other way to get the image shown? i want to pull the image name out of the XML file in order to have them all displayed.
hope the above is clear enough to everyone and that someone will be able to help me out!
Thanks in advance!
Posts: 6136
Would something like mediaBlock work?
Or even actually embedding yoursite?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 5
i'm new to gallery, so i took a look at mediaBlock. it seems that it only shows thumbnails and, when clicked, leads the user to the gallery.
what i want to do is simply use paths to user images located in their album folders (within gallery folder), then show them on, lets say,
a user page. then, i want to change links of the thumbnail images, so that upon clicking, user is not taken to GALLERY to view full image,
but to have the big image opened by the lightbox.
so, all i actually need is the ability to pull out images from gallery's directories on the server, using image paths in my site's code.
for now, gallery DOES NOT allow any access to images stored within its folder.
if you know a way for doing this, please post again! thanks
Posts: 6136
Well, mediaBlock can be made to generate whatever url you want
http://www.flashyourweb.com/forum/viewtopic.php?forum=26&showtopic=1485&highlight=lytebox
and
http://www.flashyourweb.com/staticpages/index.php?page=jQuery_mediaBlock&g2_itemId=32
but otherwise the item's pathComponent contains the server path.
And in gallery admin you can set new file permissions.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 5
this example with litebox is what i'm looking for. and inserting the "rel" attribute in the existing link
is exactly what i wanted to do to enable opening big images using litebox (i implemented prettyGallery)
is there any way to have image descriptions displayed in this litebox version? that would be awesome
Posts: 6136
Well if your litebox uses the title attribute, then it would be something like:
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 5
man, thanks a lot. that helped - now the title is displayed on my images.
i also tried using getSummary instead of getTitle but then nothing showed.
Do you think the script will be compatible with gallery 3?
Posts: 6136
Nope
You can try $item->getSummary()
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 5
hmm, its a big shame it wont be compatible with gallery3. if thats no secret: what are the reasons?
maybe you're just waiting for the official release (hopefully)?
anyways, great job, i'm very thankful.
Posts: 6136
Gallery3 has no external API yet. And when it does (3.1.x?) it won't be the same.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6136
BTW my minislideshow is ready for G3
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2