forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: toeknee on January 05, 2006, 06:52:53 pm

Title: Permalinks?
Post by: toeknee on January 05, 2006, 06:52:53 pm
Hi,

 I've got an instance of gallery that is being used for a competition.  I've been looking for a while but I can't find a way to give the entrants a permanent link for them to pimp-out to try and get more votes.  I thought it was creating them, but then they changed when I uploaded more photos...

Does anyone know of a way to get a permalink?

Thanks in advance,

Tony B
Title: Re: Permalinks?
Post by: Nibbler on January 05, 2006, 07:05:43 pm
It's in pic info. It looks like http://www.yoursite.com/coppermine/displayimage.php?pos=-123
Title: Re: Permalinks?
Post by: toeknee on January 05, 2006, 08:45:51 pm
So I just had to click all the way in?  One more click and I would've been sorted...

Thanks :D
Title: Re: Permalinks?
Post by: toeknee on January 05, 2006, 08:47:32 pm
Actually, that's not quite what I want...  ::)

That page has no ability to vote for the image,  I would like to have the page that you can vote for the image be the same one that the permalink is pointing to.

Any ideas?

Thanks again,

Tony B
Title: Re: Permalinks?
Post by: Nibbler on January 05, 2006, 11:45:21 pm
It's a link to a standard page. It makes no difference if you use that link or browse to it through an album.
Title: Re: Permalinks?
Post by: toeknee on January 06, 2006, 01:09:56 pm
That doesn't have the ability to vote on it...

I really need to be able to allow the viewers to vote the picture from a permalink.

Any ideas?

Cheers,
Title: Re: Permalinks?
Post by: ecto on January 06, 2006, 01:31:09 pm
You mean like http://www.yoursite.com/coppermine/ratepic.php?pic=228&rate=5 ?
Title: Re: Permalinks?
Post by: toeknee on January 06, 2006, 02:10:51 pm
So, that rates it a 5?

I'd like http://haircrazy.biz/displayimage.php?album=1&pos=1 (http://this page) but with a permanent link to the photo...

I wouldn't want people automagically voting at 5 when they haven't even seen the photo.

Any more ideas?

Cheers,

TonyB
Title: Re: Permalinks?
Post by: Nibbler on January 06, 2006, 02:34:17 pm
I can rate the pic when using both

http://haircrazy.biz/displayimage.php?album=1&pos=1

and

http://haircrazy.com/displayimage.php?pos=-10

You don't seem to actually be running standalone coppermine, which is the only version we support here.
Title: Re: Permalinks?
Post by: toeknee on January 06, 2006, 02:43:07 pm
Ah sorry, my bad...

So, how do I find out that pos=-10 relates to a particular picture, and can I just check that this won't change when I add more photos?

Cheers.
Title: Re: Permalinks?
Post by: ecto on January 06, 2006, 02:53:20 pm
If you click the (i) above and left of the image, the "File information" area will display below the photo. There you have "URL" (e.g. http://haircrazy.com/displayimage.php?pos=-10). That is a "permalink". It won't change even if you move the image around, and even if you delete that image and add new ones, the new ones will never have the same id (number).
Title: Re: Permalinks?
Post by: toeknee on January 06, 2006, 02:59:54 pm
Cheers,

That's just what I needed.

Thanks loads.

Tony B