Search…

X3 Photo Gallery Support Forums

Search…
 
MikeR
Experienced
Topic Author
Posts: 216
Joined: 29 Sep 2006, 09:58

sendpic-feature (email) and altimage

24 Apr 2007, 03:37

Hi Karl, ImageVue team and imagevue Users,

I'm using the sendmemail feature with the fourth possibility (example 4 in https://www.photo.gallery/support/docs/602) : the image displays directly in the e-mail (No need to click any link). It works well.

I put in sendpic.html the line :

<a href="[gal_url]/[path]"><img src="[gal_url]/[path]"/></a>

But the image displayed in the email is too big so I use the altimage option in config.ini (altimage=small).

Is it possible to change the image source (<img src="[gal_url]/[path]"/>) to use the small version of the image saved in content/level1/level2/small/

Thanks for help
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

25 Apr 2007, 02:47

mmm ... I guess that would require some php script to separate the path with the filename so you can add your "small/" folder into it. I have passed this topic to my partner ...
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

25 Apr 2007, 04:03

But ofcourse, for a quick hack you can change template to just

[gal_url]/small/[path]

this will load image from www.siteurl.www/gallery/small/groupfolder/imagefolder/image.jpg

if you want image to be loaded from /gallery/group/images/small/image.jpg then you will have to change code a bit.

Download https://www.photo.gallery/downloads/sendpic5.zip and you will have new variables available in template:
Code
[img_path]	content/Groupfolder/Imagefolder				Only Path to image
[img_file]	image.jpg									Only Image name
Then you can make something like [gal_url]/[img_path]/small/[img_file]
firedev.com
 
MikeR
Experienced
Topic Author
Posts: 216
Joined: 29 Sep 2006, 09:58

25 Apr 2007, 09:01

Thanks a lot for your answer

1/ I try first solution : I didn't change my old sendpic.php and I've just change in sendpic.html

<img src="[gal_url]/[path]"/> to <img src="[gal_url]/small/[path]"/>

Ok it's works well

:D

2/ 2nd solution :

I replace old sendpic.php with new provided in sendpic5.zip
I change sendpic.html :

<img src="[gal_url]/[path]"/> to <img src="[gal_url]/[img_path]/small/[img_file]
"/>

But it's doesn't work, I receive an text email (html code) without pic like this :

Can you help ?

Content-type: text/html

Message-Id: <20070425114636.322E98465@60gp.ovh.net>
Date: Wed, 25 Apr 2007 13:46:36 +0200 (CEST)
<!--
You can edit this template as you like. Use the following dynamic parameters to build your e-mail:

- The name of the receiveer filled in from the form.

- The name of the sender filled in from the form.

- The e-mail address of the sender filled in from the form.

- The e-mail address of the receiver filled in from the form.
....

<STYLE TYPE="text/css">

body { font-family:Georgia, "Times New Roman", Times, serif; font-size:13px; color:#666666; padding: 20px; line-height: 17px; }

A{color:#669900;text-decoration: none;}

A:hover{color:#6C909D;text-decoration: underline;}

</STYLE>
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

25 Apr 2007, 09:41

Not sure what the problem is, just tried myself, received email just fine with all vars set correctly:
Code
TEMPLATE VARIABLES AVAILABLE:
2painz	 		Name entered
pain@imagexxxx.com	Email
painz
pain@pain.com

https://www.photo.gallery/test/upload	Url and path to gallery folder
content/Humanity/Automobile/diapo_529.jpg	Path to image relative to gallery folder
content/Humanity/Automobile	Only Path to image
diapo_529.jpg	Only Image name


etc..
Can I have url to your gallery please?
firedev.com
 
MikeR
Experienced
Topic Author
Posts: 216
Joined: 29 Sep 2006, 09:58

05 Jun 2007, 07:32

Sorry for the late answer

I use :

the sendpic.php (new file find in sendpic5.zip)
the sendpic.html with this code

<a href="[gal_url]/fr.php?directimage=[path]"><img src="[gal_url]/[img_path]/small/[img_file]"/></a>

You can test it at :

http://www.michelrajkovic.fr/stockfr/ in the first gallery "01-Paysages France/Grand Bornand"

In the email I received there's not link but directly the html code (Content-type: text/html

Message-Id: <20070605112742.349B454D68@60gp.ovh.net>
Date: Tue, 5 Jun 2007 13:27:42 +0200 (CEST)
)


Thanks for the help
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

16 Aug 2007, 15:08

PM ftp l/p please.
firedev.com