Author Topic: E-mail this page button.  (Read 3733 times)

0 Members and 1 Guest are viewing this topic.

Offline mp3o

  • album.pl User
  • *
  • Posts: 7
  • Karma: +0/-0
E-mail this page button.
« on: December 04, 2002, 16:28:23 »
Is it possible to change the e-mail this page feature to just a email this picture option?  I like this feature but sometimes I don't want everybody being able to see the other pictures in the album.  When I e-mail the page they are able to access other pictures through the links, and I just wanted them to see one picture not my whole album.

How would I be able to do this?
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: E-mail this page button.
« Reply #1 on: December 04, 2002, 16:47:25 »
Couple questions:

1. Are you using flatfile authentication? (I.E. authentication_type=1)

2. Does the e-mail URL have the username/password in it?

If so, I'd say that's a bug and I should fix it.  ;D

Thanks
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline mp3o

  • album.pl User
  • *
  • Posts: 7
  • Karma: +0/-0
Re: E-mail this page button.
« Reply #2 on: December 04, 2002, 17:21:53 »
Response to questions:  :)

Q. - Are you using flatfile authentication? (I.E. authentication_type=1)  

A. - Yes

Q. - Does the e-mail URL have the username/password in it? If so, I'd say that's a bug and I should fix it.  

A. - The E-mail message the person receives is as follows:

I thought you might be interested in this:
http://www.yourserver.com/cgi-bin/album.pl?photo=Cow/Cow001.jpg

My question is could we get that link to be a direct link to the picture instead of it being a link to the photo page.  If it was just a link to the picture(I.E. http://www.youerserver.com/album/Cow/Cow001.jpg) Then we wouldn't have to worry about them accessing other pictures in the album by using the navigation links.

I don't know... maybe I'm making this harder than it is, but on my photo album anybody can look at the pictures and would only need a password to upload.

Hope I made myself clear and understandable.  :)
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: E-mail this page button.
« Reply #3 on: December 04, 2002, 18:27:03 »
Ok, I get it... You can do that now. Just edit album_footer.tml, and change this:

Code: [Select]
<a href="mailto:?subject=####STRING=235#### ####URLONLY####&amp;body=####STRING=236#### ####URLONLY####">

To this...

Code: [Select]
<a href="mailto:?subject=####STRING=235#### ####OBJECTURL####&amp;body=####STRING=236#### ####OBJECTURL####">

Protected albums will still remain protected either way, which is good. :)

Hope that helps!
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline mp3o

  • album.pl User
  • *
  • Posts: 7
  • Karma: +0/-0
Re: E-mail this page button.
« Reply #4 on: December 04, 2002, 18:59:17 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: E-mail this page button.
« Reply #5 on: December 05, 2002, 03:27:37 »
Cool, glad it helped. And if album.pl helps you learn CGI/PERL, that's great! I learned the same way - by poking around with other people's scripts...

Cheers
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »