Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Calling random images  (Read 11015 times)

0 Members and 1 Guest are viewing this topic.

Smell

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Calling random images
« on: March 15, 2006, 06:04:06 pm »

Hy there!

I've made a php script that displays random images from a coppermine gallery in another php page in the same server. But i got problems with calling these images names when files use latin characters. In the database, its collation is set as "latin1_swedish_ci". An example:

My script calls (Resulting error 404):
thumb_011%7E18.jpg

Coppermine calls (Image OK):
thumb_011%257E18.jpg

Plz, how can i solve that? i tried applying "utf8_encode" in the image variable and that didn't work...

This is not a standalone coppermine installation, it's into cpgnuke, but i don't believe it's a problem as soon as my script can read images paths from the database.
 
I know this is not exactly a coppermine related question, but maybe there's someone here that has tried to do the same and experienced this problem before.

Any help is very welcome.  :D

Txs so much!  ;)
« Last Edit: March 17, 2006, 08:31:55 am by GauGau »
Logged

Nibbler

  • Guest
Re: Calling random images
« Reply #1 on: March 15, 2006, 06:07:31 pm »

Try urlencode / urldecode
Logged

Smell

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Calling random images
« Reply #2 on: March 15, 2006, 06:47:41 pm »

Txs brov! "urlencode" seems to have solved some problems, but stresses like "á â ã" are still dead.

Some newest examples:

It calls...
thumb_sem+t%EDtulo20.jpg
thumb_sem+t%EDtulo7.jpg

Rather than...
thumb_sem%20t%EDtulo20.jpg
thumb_sem%20t%EDtulo7.jpg

Txs for the patience!  ;)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Calling random images
« Reply #3 on: March 16, 2006, 09:19:04 am »

cpgnuke goes unsupported
Logged

Smell

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Calling random images
« Reply #4 on: March 16, 2006, 11:58:55 am »

cpgnuke goes unsupported

Sorry brov, but are the cpgnuke coppermine database and standalone coppermine database so different as that? cuz this script just reads the table cms_cpg_pictures.  :(

Well, sorry anyway.  :-[
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Calling random images
« Reply #5 on: March 17, 2006, 12:15:58 am »

we have no idea if or how they differ, as we don't know the nuke port. Read the sticky threads on this sub-board.
Logged

Smell

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Calling random images
« Reply #6 on: March 17, 2006, 02:47:10 am »

we have no idea if or how they differ, as we don't know the nuke port. Read the sticky threads on this sub-board.

huuumm hehe i got it now..  :D txs!  ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.