Member
Member
n20capri2   20-02-2014, 16:25
#1

Displaying a random image from an .alb album inside a folder with spaces in the name...

Here is the code I'm using:
`

Administrator
Administrator
acrylian   20-02-2014, 16:57
#2

I cannot answer offhand but although spaces should work I would recommend to not use them (as with special chars). My-dog-Nucci looks far better than My%20dog%20Nucci anyway :-)

Member
Member
n20capri2   20-02-2014, 17:26
#3

I agree but I have images from that gallery linked around and if I change the folder name they all get broken.

I thought I had this happen before and I fixed it but I can't for the life of me figure out what I did. haha

Administrator
Administrator
acrylian   20-02-2014, 19:27
#4

The linking issue is a valid concern of course. Maybe try the direct object model with $randomImage->getFullImageURL() instead of getURL($randomImage). (Funny side info: I had to look up if getURL() is one of ours actually, I think I never used it myself…:-)).

Member
Member
n20capri2   24-02-2014, 00:15
#5

Can't seem to get that to work either...Oh well...Lesson learned lol

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.