PDA


View Full Version : Weird Problem with crandom.php


Glenshadow
12-05-2005, 08:02 PM
Hello all,

I am running into a weird problem with crandom.php and I can't seem to figure out why.

I am running VBulletin 3.50, VBadvanced 2.x, and Coppermine 1.42 stable.

For some reason crandom.php will fail getting an image out of the gallery if the folder it resides in is named like 12-5-05-whatever.

Basically I have my albums sorted by date and then the event.... so if for example I had pictures from Christmas I would name the folder: 12-25-05-christmas.

This folder then get's uploaded into my /albums/holidays/ folder on my site, then I go into Coppermine and add them to where ever.

The path of the image would be: domain.com/pics/albums/holidays/12-25-05-christmas/image1.jpg

At this point crandom.php does it's job and pulls the image into the area on main page, but it doesn't pull correctly... instead it will try to pull the image from: domain.com/pics/albums/holidays/12-25-05/image1.jpg

For some reason it drops the -christmas from the folder name and I have no earthly clue as to why. I didn't mod the crandom file at all except what was found in the thread on crandom.php from this site.

It doesn't make sense... it's not a issue with the number of characters in the folder name because there are long ones that work just fine. It also doesn't seem to be much of an issue with dashes in the folder name because I can have a folder called: whatever-you-want-to-call-it , and images come out of there just fine !

I am lost.... any ideas ?

I can pull my crandom.php and post it if need be... but it did the same thing with the one posted right in the thread.

KW802
12-05-2005, 08:12 PM
It'd be best to post this in the original module thread.

Glenshadow
12-05-2005, 08:27 PM
Sorry.... can you move it for me please ?

Glenshadow
12-05-2005, 08:44 PM
Actually I just posted in the thread.. can you delete this thread please.