coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: alirezaok on September 27, 2004, 07:41:11 AM

Title: Help me : Path Of Pictures
Post by: alirezaok 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
Title: Re: Help me : Path Of Pictures
Post by: Tranz 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.
Title: Re: Help me : Path Of Pictures
Post by: Nibbler 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.
Title: Re: Help me : Path Of Pictures
Post by: alirezaok 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?
Title: Re: Help me : Path Of Pictures
Post by: Casper 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;

Quotehttp://www.your_site.com/your_gallery/displayimage.php?album=lastup&cat=0&pos=0