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: Help me : Path Of Pictures  (Read 3102 times)

0 Members and 1 Guest are viewing this topic.

alirezaok

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Help me : Path Of Pictures
« on: September 27, 2004, 07:41:11 am »

hi
i have a qusetion
i use of picture gallery for path to pictures but paths should not change.
in other mean in www.domain.com/gallery/albums/userpics/10001/thumb_filmfestival.jpg
www.domain.com/gallery/albums/userpics/10001/ should not changes because i use this address in my script but each picture has diffrent name and no problem for changing name of pictures
as example:

i store name of pictures in database
ID name
1  book.jpg
2  home.jpg

and i use of this script
<img src=gallery/albums/userpics/10001/[last name from database]>

do the paths of pictures that i will upload will change?
is anyway to paths  of pictures will not change?

Thanks
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Help me : Path Of Pictures
« Reply #1 on: September 27, 2004, 07:56:29 am »

Actually, using 'userpics' is incorrect. If you upgrade to a newer version of CPG, you will no longer be able to batch load photos in that folder.
Logged

Nibbler

  • Guest
Re: Help me : Path Of Pictures
« Reply #2 on: September 27, 2004, 01:05:41 pm »

You have normal http uploaded pics in userpics - that's exactly what it is designed for. The paths to uploaded files will not change after upload even if you move the pics around between albums and categories.
Logged

alirezaok

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Help me : Path Of Pictures
« Reply #3 on: September 27, 2004, 05:07:55 pm »

no my target is not it.

if i want add new name of pic to my database do path of new pic is diftrent with last path pic?

is any way each time i add new pic to gallery, path does not changing?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Help me : Path Of Pictures
« Reply #4 on: September 29, 2004, 11:45:54 pm »

I'm not sure if I understand correctly, but if you want to have the path that will always show the last pic added, then it is this;

Quote
http://www.your_site.com/your_gallery/displayimage.php?album=lastup&cat=0&pos=0
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 18 queries.