eCard adding a link to my gallery
|
PictureDoc
![]()
Joined: 2006-12-27
Posts: 8 |
Posted: Thu, 2007-03-22 21:45
|
|
Does anyone know how to add a return link in the ecard. If an ecard is sent from my gallery I would like the receipent to receive a link back to my gallery. http://www.classicshowimages.com I am running Gallery 2.2 Thank you Gallery version = 2.2 core 1.2.0 |
|


Posts: 8
Link your ecard back to your gallery, I figured out how. Simply set the default in the email plug in to text not html.
But I'd still like to see it in html if anyone knows how.
Heres a sample: http://classicshowimages.com/album/gallery2/main.php?g2_itemId=1758&g2_navId=x71440dc7
Picturedoc
Posts: 22890
Clicking the image when sent html mode will take the user to the item in your gallery.
You could add some text to that effect in the ecard admin.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 8
Thanks Dave is was not aware of that I will use this info right now.
Thanks again.
Posts: 8
Sorry for the Typo, this should have read, Thanks Dave, I was was not aware of that I will use this info right now.
Posts: 97
I use a number of links back to gallery and a few other major sections of my site in the gallery ecards module. it's easy - here how to add regular HTML links:
go to module > ecard > templates > Message.html
open file in html editor
you see the code - elements:
<p>%header%</p>
<p>%text%</p>
<img src="%image%" border="0" style="padding: 2em 0;" />
and add just below here your links - make it within a <p> tag - may be <small> fonts
hence I added:
<hr />
<p><small> - add here your HTML links with anchor text - one or several links - i have very large site and added 7 links</small></p>
hans
Kriya Yoga | Secrets of Love | Photo gallery of the Philippine island
Posts: 10
Hi there!
I want to modify the backlink in the ecard e-mail message.
Currently mine reads something like" http://www.joretha.com/gallery/main.php?g2_itemId=3049 with "http://www.joretha.com/gallery/main.php" being the url of my gallery installation and "?g2_itemId=3049" the parameter to show the correct item.
My gallery is included in my joomla! installation via a modified iframe implementation that reads url parameters. I would thus like to replace the automatically generated base url (http://www.joretha.com/gallery/main.php) with a static base url (http://www.joretha.com/index.php/portfolio/view-wedding-portfolio.html) and add the parameters (eg "?g2_itemId=3049") to the static url in the php code.
My current code scratching led me to lines 139 to 257 in the SendEcar.inc file. Does anybody know where and what to change to do what I want?
thank you
_____________________________________________
Constantly tinkering with Gallery and Joomla!
Posts: 10
OK, so I got it working with the following changs to SendEcard.inc:
//array('forceFullUrl' => true, 'forceSessionId' => false)) : ''; - original code
array('forceFullUrl' => false, 'forceSessionId' => false)) : ''; // - modified code to not show full path to gallery
and
$link = str_replace('main.php', '', $link); //- new code
// $data['link'] = $link; - original code
$data['link'] = 'http://www.joretha.com/index.php/portfolio/view-wedding-portfolio.html'.$link; // - modified code
I had to strip "main.php" from the gallery link, as my iframe already refers to main.php and only needs (for example) ?g2_itemId=3049 after the url and not main.php?g2_itemId=3049 as the gallery eCard plugin renders.
_____________________________________________
Constantly tinkering with Gallery and Joomla!