Yessir. It shows up in Site Admin/Modules, and also in the Site Admin left bar as it did before. Am trying to recall where it was managed... from permissions or in the theme management, but it is in neither one of these.
Tx for the reponse. This is of lower priority of course, but I kinda miss the coolness of this module.
valiant wrote:
is it still in your modules dir?
parki
Joined: 2005-12-06
Posts: 18
Posted: Wed, 2005-12-07 03:35
Is there a way to translate all the strings contained in this module ?
Now only some of them are translated.
nicokaiser
Joined: 2004-10-04
Posts: 118
Posted: Wed, 2005-12-07 14:29
Which strings aren't translated?
The module uses the G2 localization system, so everyone can build a .po file (I'm uploading a new version with nl_NL and fr_FR strings in a few minutes).
The mail text is adjustable in the admin interface...
parki
Joined: 2005-12-06
Posts: 18
Posted: Wed, 2005-12-07 15:33
I downloaded the nl_NL.txt file here, renamed it to nl_NL.po and copied it to the po directory of the ecard module. Do I need to do somehting else to get the translations to show up ?
Default language is set to Nederlands (Dutch).
Arjen
Joined: 2003-06-09
Posts: 47
Posted: Fri, 2005-12-09 16:23
Parki, you will need to run the following command in your po directory:
gmake install
parki
Joined: 2005-12-06
Posts: 18
Posted: Wed, 2005-12-14 03:11
I don't have shell access so I made a php file:
<?php
exec('gmake install',$ret);
?>
But after running this nothing happened.
I also tried replacing gmake with GNUmakefile but again, nothing happened.
Can someone else please execute this and post the resulting files here ?
Thanks !
jmacdoug2005
Joined: 2005-05-29
Posts: 95
Posted: Sat, 2005-12-17 02:25
I have a bit of a problem. I have installed and activated e-card. It was successful and the e-card config is available in the sidebar in admin screen. My issuse is that the e-card option does not show up in my item actions drop down menus? Any insight on this one?
BTW-I actually had the e-card thing working just fine on an old G2 installation.
Thanks
Jeff
jmacdoug2005
Joined: 2005-05-29
Posts: 95
Posted: Sat, 2005-12-17 17:02
Forget it, it works. My oops.
Howerver, is there a way to create a module like ecard that sends a link to a particular album instead? With or without login requirements?
Jeff
Centrium
Joined: 2005-12-21
Posts: 10
Posted: Wed, 2005-12-21 20:54
Hi All
This is my first post on the Gallery website, and thought I would share some feedback that Ive had regarding the ecard module. I have managed to customise the module so that I can send multiple emails at once. I dunno how popular or if this has been done yet, but just thought I would let everyone know. I am still testing it, but so far have been able to send 2 cards at once to different address.
Got to run at the moment, but will come back and share my findings!!!
Cent
lightpainter
Joined: 2005-11-25
Posts: 64
Posted: Thu, 2005-12-22 11:38
Hi,
Thanks Niko for building this module- a great addition!
When I send a card, it is sent from gallery@ 'my web host server name' and not the smtp name entered in gallery config, or the email address provided by the sender. Is there any way to get around this? Any replies directly to the ecard will bounce as the mailbox does not exist.
The other problem is that the ecard gets a very high spam rating from my ISP's spam trap, where they all end up (I thought it wasn't sending until I thought to check there). I don't know if there is anything that can be done to remedy this, but as more ISPs use spam traps, it would be a shame if the ecards got swallowed up... This is the trap message:
Yip I dont think it would be too difficult to put in. I'll have a look at this and let you know how I get on.
Centrium
Joined: 2005-12-21
Posts: 10
Posted: Thu, 2005-12-22 11:49
Oh yea and also thanks Niko for building the module in the first place, its excellent.
Centrium
Joined: 2005-12-21
Posts: 10
Posted: Thu, 2005-12-22 12:59
Lightpainter,
I noticed that you can do this without changing any code, I managed to put in the from field in the eCard site admin section, a valid email address, or if you leave it blank, will use the senders email address as the form field. As a result when you send the card it is sent from that email address which should get around your problems regarding SPAM.
Hope this Helps (or makes sense)
lightpainter
Joined: 2005-11-25
Posts: 64
Posted: Thu, 2005-12-22 14:33
Centrium,
Thanks for that- problems solved! I did look at that config page, but I didn't grasp the significance of that field.
There are somes problems with the footer and the header when you add your code.
You can't add code with style css ou css code and you can't add javascript code.
i tested this two technics and nothing :
<body style='background: #008000; text: #000; font-family: verdana; font-size: 8px;'>my text</body>
and with :
<link href="http://www.xxx.fr/xxx/xxx.css" rel="stylesheet" type="text/css">
and the last with
Quote:
<style type="text/css">
<!--
body {
background-color: #E9E9E9;
}
-->
</style>
I would like to share some of my modification of the module. If you would like the Recipient's click on the photo and direct thru the Gallery 2.0 , you can just make some small modification on a file under /ecards/templates/message.tpl
hi
i just uploaded ecard module and installed it.
but when i view my gallery nothing shows me?
must i edit something or do something to edit this feature?
thanks
CDK
morton
Joined: 2005-09-19
Posts: 52
Posted: Tue, 2006-01-03 04:31
nico
I know that this a test version, but I have decided to include it as an available option in the Gallery I have on a website I manage. I have had a couple of my members request something of this nature so we should be able to get you some real good feed back.
Just a few items I noticed:
Probably should include either a log or notice to the Gallery Admin of when a ecard is sent. Nothing fancy something like what Registration does. This way the Admin can watch for abuse of the system.
I've seen some later comments about the desire for more than one email at a time in the "to". Personally, I like the one-at-a-time approach you took. This eliminates the SPAM tendancy or at least minimizes it.
Last for this post. It would be nice if you could have the ability to place permissions on it such as the shopping cart. This way you could only allow registered user's to have this option. Little more control for the Admin.
I am attempting to look at how to code these features and will pass it on if I get anything. Just starting using G2 so by no means a pro, but a very good way to learn.
morton
Joined: 2005-09-19
Posts: 52
Posted: Tue, 2006-01-03 04:45
CDK,
Did you log on as Admin and under site maintenance install ecard as a module? It will not show up until you do this and activate it.
CDK
Joined: 2005-12-31
Posts: 3
Posted: Wed, 2006-01-04 17:16
morton wrote:
CDK,
Did you log on as Admin and under site maintenance install ecard as a module? It will not show up until you do this and activate it.
yes i did this
i can only see the ecard in admin when i use the drop down menu.
all visitors can't see any ecard option
any ideas?
morton
Joined: 2005-09-19
Posts: 52
Posted: Wed, 2006-01-04 23:49
CDK: Do you have anyother "Commercial" modules such as shopping cart installed and activatied?
morton
Joined: 2005-09-19
Posts: 52
Posted: Wed, 2006-01-04 23:54
Where I'm going here is that I have turnbulm's checkout cart installed on my G2. When you have more than one such modules installed you have to go all the way down to the image (photo) and you will see a pick list below the photo which states "item action". eCard will be one of those. I assume this is where you do not see it?
Also, check your Group Permissions and make sure "Everybody" has [core]view items permissions. Bet this is where it is if you don't that set.
Regards, morton
flying-frog
Joined: 2004-03-06
Posts: 9
Posted: Sun, 2006-01-08 12:53
A really usefull module, but I'm trying to translate it in French, and I don't understand how I must do it... I created fr_FR.po (in /modules/ecard/po/ file)... but the displayed text stay in English...
Where am I wrong please?
LFrank
Joined: 2005-02-19
Posts: 1023
Posted: Tue, 2006-01-10 07:32
Is there a way to add a "bcc" to the Webmaster? I recently found a lot of eCards being sent from my site and would like to know if there's a Spammer trying to abuse the mail functionality. Or at least a logging function to see what was sent to whom ...
Hi and good Morning,
in the last few days I´ve installed the eCard-module by Nico Kaiser - but i have got some problems
The email send to my account is broken - like shown here:
joerg kihm (j.kihm(at)web.de) has sent you an eCard:
dztiutzdijustdz
--
This eCard was sent with Gallery 2.0 - Your photos on your website
--ecard43ccba6d3c09a
Content-ID: <43ccba6d45cd5@localhost>
Content-Disposition: attachment; filename="FF_SAP_0001.JPG"
Content-Type: image/jpeg; name="FF_SAP_0001.JPG"
Content-Transfer-Encoding: base64
I´ve installed the version 0.0.6 from siriux.net and today the brand new 0.0.7 - result is the same.
Here´s the server-data:
Gallery-Version = 2.0.2 Kern 1.0.0.2
PHP-Version = 4.3.6 apache2handler
Webserver = Apache/2.0.49 (SuSE Linux 9/Server4You)
Datenbank = mysql 4.0.15
Werkzeuge = ArchiveUpload, Exif, ImageMagick, NetPBM, SquareThumb, Thumbnail, Gd
Betriebssystem = Linux vs137034 2.4.20-021stab028.17.777-enterprise #1 SMP Tue Jul 19 19:31:27 MSD 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051111 Firefox/1.5
Hope anybody can help - i´m biting my nails ;-)
greets Jörg
ste11
Joined: 2006-01-17
Posts: 1
Posted: Wed, 2006-01-18 00:00
Hello..
I would like to replace the image link in the email message with a link to the image album so that the ecard receipient get directed to the album of the image instead of the picture.
How do I need to modify the line in message.tpl: <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$itemId`"}">
I tried to replace $itemId with $theme.parent.Id or $theme.parent[2].id but this did not work. Any suggestions that may help?
Thanks
alan4573
Joined: 2006-02-05
Posts: 1
Posted: Sun, 2006-02-05 23:04
Send photos as eCards
Incompatible module!
Core API Required: 6.0 (available: 7.1)
Module API Required: 2.0 (available: 3.0)
I upgraded to 2.1 (Jese Mullans nightly snapshot)now get this - anybody got any ideas? It worked fine on 2.02.
I wanted the album password fuinction in 2.1 which incidentally is superb.
Cheers
technobilder
Joined: 2003-02-09
Posts: 214
Posted: Sat, 2006-02-11 17:22
Would it be possible to add "last sent eCards" to the ecard or statistics module?
So that it's viewable whicheCard is sent most and possibly who wrote which text (in case of spam or other abuse).
mindless
Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2006-02-19 21:14
I've updated the eCard module for Gallery 2.1, attached.
Something that would be nice in the future: add a small or regular image in the preview. I have had people ask if the picture was sent because it does not show up on the preview.
Thank you for your hard work.
nicokaiser
Joined: 2004-10-04
Posts: 118
Posted: Thu, 2006-03-02 14:51
Here is a new release of the Gallery 2 eCard module:
* Supports but also requires Gallery 2.1
* Now uses PEAR::Mail_mime to assemble HTML mails (better templates and the output is much less broken than before)
* The preview page includes the image (smallest derivative found)
* The eCard feature can be turned on and off per album using the G2 permission system
Hi, thank you for the update Nico, however, I'm getting problems viewing the image from Gmail, Mindless version had a similar problem a couple of times when I tested today but then I could view the image in Gmail in his version with no problem, I've seen others having these sporadic issues. Thunderbird on Linux and Yahoo mail are working normally.
I'm thinking on trying with PHPMailer, any special reason for choosing PEAR::Mail_mime?
Regards!
Update: I just reinstalled Mindless version and it sent one ecard fine to Gmail but in the second one the image was not correctly included, there is some problem there. I'm reviewing the message content to see if I can help with some ideas or code.
Hi, in studying ecard/module.inc I found methods getSiteAdminViews() and getConfigurationView(), both are used to show the ecard.AdminEcard view, my questions are: what is the difference between these two methods and are both of them needed?
Alexis: You are totally right. I'll change this...
struxure
Joined: 2006-03-14
Posts: 2
Posted: Tue, 2006-03-14 20:29
Hi all...nice module..however, it seems that module download for G2.0 and the new G2.1 (008) version is the same (siriux.net/files/g2-module-ecard.zip)....so i can't use ecard now on my 2.0.4 install since i get an error asking for API 7.0 instead of mine 6.8...who can help me?
However, the new version is much much better (and I recommend upgrading to G2.1 anyway).
Nico.
struxure
Joined: 2006-03-14
Posts: 2
Posted: Thu, 2006-03-16 10:49
Thanks Mindless en Nico....I know 2.1 is better, but i use the checkout module (email and paypal), and there is not (a good) module for 2.1 yet, so i have to stick with 2.0 a little longer.. Thanks for the quick response!!
Greets from Holland, Struxure
jumper
Joined: 2005-05-17
Posts: 11
Posted: Fri, 2006-03-31 06:07
Hello,
Anybody have any ideas to add support for gallery items that aren't originally uploaded as (gif, jpg, png) format. The ecard thing is cool but it doesn't work for pdf. I think I might be able to modify this to get it to work for me.
Quote:
function getItemLinks($items, $wantsDetailedLinks, $permissions) {
$links = array();
foreach ($items as $item) {
//if (isset($wantsDetailedLinks[$itemId])) {
if (GalleryUtilities::isA($item, 'GalleryPhotoItem')) {
if (!isset($permissions[$item->getId()]['ecard.send'])) {
continue;
}
$params['view'] = 'ecard.SendEcard';
$params['itemId'] = $item->getId();
$params['return'] = 1;
$links[$item->getId()][] =
array('text' => $this->translate('Send as eCard'),
'params' => $params);
}
//}
}
I tried commenting out this
Quote:
if (GalleryUtilities::isA($item, 'GalleryPhotoItem'))
but I get this error
Quote:
Fatal error: Call to undefined function: getwidth() in /Library/WebServer/Documents/gallery2/modules/ecard/classes/EcardHelper.class on line 57
I think that if I can get call the resized version then it might work, but I don't know how to do that. Any help would be cool.
Thanks
Gallery version = 2.1-rc-2a core 1.0.34
PHP version = 4.3.2 apache
Webserver = Apache/1.3.29 (Darwin) PHP/4.3.2
Database = mysql 4.1.9-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, Thumbnail, ImageMagick
Acceleration = none, none
Operating system = Darwin jeremy.local 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug 5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC Power Macintosh
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
mindless
Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-03-31 17:01
probably you need to load the jpeg derivative of the pdf.. the pdf item itself doesn't have a width, but if you have imagemagick+ghostscript then you could have a jpeg version of the first page.
or, you could modify ecard to not try to include an <img> tag for non photos.
jumper
Joined: 2005-05-17
Posts: 11
Posted: Fri, 2006-03-31 22:33
Thanks Mindless,
I was thinking that was what I needed to do but I am unsure about how to go about this. Is there any resource for finding out how to load the jpg derivative? I poked around but have not found anything yet. I should mention that I don't really know php and am taking a stab at it.
Thanks
jumper
Joined: 2005-05-17
Posts: 11
Posted: Sat, 2006-04-01 02:30
Okay,
I am flailing blindly here. I tried looking at the slidshow module for inspiration. It didn't work. I really don't understand how all this stuff is pieced together. It seems like I should be doing something with this.
Quote:
list ($ret, $childIds) = GalleryCoreApi::fetchChildItemIds($item);
list ($ret, $childItems) = GalleryCoreApi::loadEntitiesById($childIds);
list ($ret, $resizedImages) = GalleryCoreApi::fetchResizesByItemIds($childIds);
$images[] = $resize;
I tried to plug this into what I am doing but it mostly just errors on me. I think its because I am not understanding how to do what I want.
Any kind souls have any guidence?
Thanks
mindless
Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2006-04-01 15:40
i haven't looked at ecard code, but don't you have a single item for the ecard? i'd think you'd use either the fetchResizesByItemIds or fetchPreferredsByItemIds core api with just the item id of that one item.
jumper
Joined: 2005-05-17
Posts: 11
Posted: Sat, 2006-04-01 22:30
mindless,
Awesome, that totally worked! Here is what i did.
replace this in ecardhelper.class
Quote:
list ($ret, $resizes) = GalleryCoreApi::fetchResizesByItemIds(array($itemId));
with this
Quote:
list ($ret, $resizes) = GalleryCoreApi::fetchPreferredsByItemIds(array($itemId));
And it seems to work....
Now, because i commented out this
Quote:
if (GalleryUtilities::isA($item, 'GalleryPhotoItem')) {
It shows up on every page for every item, even albums. So i will have to figure that out but it is a step in the right direction.
Thanks for your help.
mindless
Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2006-04-01 23:28
change GalleryPhotoItem to GalleryDataItem to get every item that has a data file.
Posts: 32509
is it still in your modules dir?
Posts: 397
Yessir. It shows up in Site Admin/Modules, and also in the Site Admin left bar as it did before. Am trying to recall where it was managed... from permissions or in the theme management, but it is in neither one of these.
Tx for the reponse. This is of lower priority of course, but I kinda miss the coolness of this module.
Posts: 18
Is there a way to translate all the strings contained in this module ?
Now only some of them are translated.
Posts: 118
Which strings aren't translated?
The module uses the G2 localization system, so everyone can build a .po file (I'm uploading a new version with nl_NL and fr_FR strings in a few minutes).
The mail text is adjustable in the admin interface...
Posts: 18
I downloaded the nl_NL.txt file here, renamed it to nl_NL.po and copied it to the po directory of the ecard module. Do I need to do somehting else to get the translations to show up ?
Default language is set to Nederlands (Dutch).
Posts: 47
Parki, you will need to run the following command in your po directory:
gmake install
Posts: 18
I don't have shell access so I made a php file:
<?php
exec('gmake install',$ret);
?>
But after running this nothing happened.
I also tried replacing gmake with GNUmakefile but again, nothing happened.
Can someone else please execute this and post the resulting files here ?
Thanks !
Posts: 95
I have a bit of a problem. I have installed and activated e-card. It was successful and the e-card config is available in the sidebar in admin screen. My issuse is that the e-card option does not show up in my item actions drop down menus? Any insight on this one?
BTW-I actually had the e-card thing working just fine on an old G2 installation.
Thanks
Jeff
Posts: 95
Forget it, it works. My oops.
Howerver, is there a way to create a module like ecard that sends a link to a particular album instead? With or without login requirements?
Jeff
Posts: 10
Hi All
This is my first post on the Gallery website, and thought I would share some feedback that Ive had regarding the ecard module. I have managed to customise the module so that I can send multiple emails at once. I dunno how popular or if this has been done yet, but just thought I would let everyone know. I am still testing it, but so far have been able to send 2 cards at once to different address.
Got to run at the moment, but will come back and share my findings!!!
Cent
Posts: 64
Hi,
Thanks Niko for building this module- a great addition!
When I send a card, it is sent from gallery@ 'my web host server name' and not the smtp name entered in gallery config, or the email address provided by the sender. Is there any way to get around this? Any replies directly to the ecard will bounce as the mailbox does not exist.
The other problem is that the ecard gets a very high spam rating from my ISP's spam trap, where they all end up (I thought it wasn't sending until I thought to check there). I don't know if there is anything that can be done to remedy this, but as more ISPs use spam traps, it would be a shame if the ecards got swallowed up... This is the trap message:
X-Spam-Level: *****
X-Spam-Status: hits=5.288 tests=EXTRA_MPART_TYPE,HTML_40_50,HTML_IMAGE_ONLY_06,HTML_MESSAGE,MIME_BASE64_ILLEGAL,MIME_MISSING_BOUNDARY version=2.64+local
...
X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
-----------------------------
www.lightpainter.co.uk
Posts: 10
Yip I dont think it would be too difficult to put in. I'll have a look at this and let you know how I get on.
Posts: 10
Oh yea and also thanks Niko for building the module in the first place, its excellent.
Posts: 10
Lightpainter,
I noticed that you can do this without changing any code, I managed to put in the from field in the eCard site admin section, a valid email address, or if you leave it blank, will use the senders email address as the form field. As a result when you send the card it is sent from that email address which should get around your problems regarding SPAM.
Hope this Helps (or makes sense)
Posts: 64
Centrium,
Thanks for that- problems solved! I did look at that config page, but I didn't grasp the significance of that field.
Cheers, and have a good Christmas.
-----------------------------
www.lightpainter.co.uk
Posts: 35
hello,
There are somes problems with the footer and the header when you add your code.
You can't add code with style css ou css code and you can't add javascript code.
i tested this two technics and nothing :
<body style='background: #008000; text: #000; font-family: verdana; font-size: 8px;'>my text</body>
and with :
<link href="http://www.xxx.fr/xxx/xxx.css" rel="stylesheet" type="text/css">
and the last with
impossible to add css or user similar code
Someone knows the solution ?
Posts: 2
eCard module for Gallery 2.0 from siriux.net
Dear brother,
First of all , I would like to thanks the author to develop the eCard module for Gallery2.0
http://siriux.net/news/2005/10/22/ecard-module-for-gallery-20/
I would like to share some of my modification of the module. If you would like the Recipient's click on the photo and direct thru the Gallery 2.0 , you can just make some small modification on a file under /ecards/templates/message.tpl
just change this
{*<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$itemId`"}">*}
<img src="cid:{$imageId}" border="0" style="padding: 2em 0;" />
{*</a>*}
to
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$itemId`"}">
<img src="cid:{$imageId}" border="0" style="padding: 2em 0;" />
</a>
that's simple Thanks !
for more information, please view my demo at
http://www.marriage.com.my/photo/
Clemence @ PCball.com
Posts: 10
Thank for sharing that, does this mean that the pic sent in the email, will now include a link to the gallery website??
Cheers
Cent
Posts: 3
hi
i just uploaded ecard module and installed it.
but when i view my gallery nothing shows me?
must i edit something or do something to edit this feature?
thanks
CDK
Posts: 52
nico
I know that this a test version, but I have decided to include it as an available option in the Gallery I have on a website I manage. I have had a couple of my members request something of this nature so we should be able to get you some real good feed back.
Just a few items I noticed:
Probably should include either a log or notice to the Gallery Admin of when a ecard is sent. Nothing fancy something like what Registration does. This way the Admin can watch for abuse of the system.
I've seen some later comments about the desire for more than one email at a time in the "to". Personally, I like the one-at-a-time approach you took. This eliminates the SPAM tendancy or at least minimizes it.
Last for this post. It would be nice if you could have the ability to place permissions on it such as the shopping cart. This way you could only allow registered user's to have this option. Little more control for the Admin.
I am attempting to look at how to code these features and will pass it on if I get anything. Just starting using G2 so by no means a pro, but a very good way to learn.
Posts: 52
CDK,
Did you log on as Admin and under site maintenance install ecard as a module? It will not show up until you do this and activate it.
Posts: 3
yes i did this
i can only see the ecard in admin when i use the drop down menu.
all visitors can't see any ecard option
any ideas?
Posts: 52
CDK: Do you have anyother "Commercial" modules such as shopping cart installed and activatied?
Posts: 52
Where I'm going here is that I have turnbulm's checkout cart installed on my G2. When you have more than one such modules installed you have to go all the way down to the image (photo) and you will see a pick list below the photo which states "item action". eCard will be one of those. I assume this is where you do not see it?
Also, check your Group Permissions and make sure "Everybody" has [core]view items permissions. Bet this is where it is if you don't that set.
Regards, morton
Posts: 9
A really usefull module, but I'm trying to translate it in French, and I don't understand how I must do it... I created fr_FR.po (in /modules/ecard/po/ file)... but the displayed text stay in English...
Where am I wrong please?
Posts: 1023
Is there a way to add a "bcc" to the Webmaster? I recently found a lot of eCards being sent from my site and would like to know if there's a Spammer trying to abuse the mail functionality. Or at least a logging function to see what was sent to whom ...
Gallery version=2.0.2+ core 1.0.10
PHP version=5.1.1 apache2handler
Webserver=Apache/2.2.0 (Win32) DAV/2 PHP/5.1.1 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7
Database=mysql 5.0.16-nt-log
Gallery-URL=http://lf-photodesign.de
Posts: 1
Hi and good Morning,
in the last few days I´ve installed the eCard-module by Nico Kaiser - but i have got some problems
The email send to my account is broken - like shown here:
I´ve installed the version 0.0.6 from siriux.net and today the brand new 0.0.7 - result is the same.
Here´s the server-data:
Gallery-Version = 2.0.2 Kern 1.0.0.2
PHP-Version = 4.3.6 apache2handler
Webserver = Apache/2.0.49 (SuSE Linux 9/Server4You)
Datenbank = mysql 4.0.15
Werkzeuge = ArchiveUpload, Exif, ImageMagick, NetPBM, SquareThumb, Thumbnail, Gd
Betriebssystem = Linux vs137034 2.4.20-021stab028.17.777-enterprise #1 SMP Tue Jul 19 19:31:27 MSD 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051111 Firefox/1.5
Hope anybody can help - i´m biting my nails ;-)
greets Jörg
Posts: 1
Hello..
I would like to replace the image link in the email message with a link to the image album so that the ecard receipient get directed to the album of the image instead of the picture.
How do I need to modify the line in message.tpl:
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$itemId`"}">
I tried to replace $itemId with $theme.parent.Id or $theme.parent[2].id but this did not work. Any suggestions that may help?
Thanks
Posts: 1
Send photos as eCards
Incompatible module!
Core API Required: 6.0 (available: 7.1)
Module API Required: 2.0 (available: 3.0)
I upgraded to 2.1 (Jese Mullans nightly snapshot)now get this - anybody got any ideas? It worked fine on 2.02.
I wanted the album password fuinction in 2.1 which incidentally is superb.
Cheers
Posts: 214
Would it be possible to add "last sent eCards" to the ecard or statistics module?
So that it's viewable whicheCard is sent most and possibly who wrote which text (in case of spam or other abuse).
Posts: 8601
I've updated the eCard module for Gallery 2.1, attached.
Posts: 3
Something that would be nice in the future: add a small or regular image in the preview. I have had people ask if the picture was sent because it does not show up on the preview.
Thank you for your hard work.
Posts: 118
Here is a new release of the Gallery 2 eCard module:
* Supports but also requires Gallery 2.1
* Now uses PEAR::Mail_mime to assemble HTML mails (better templates and the output is much less broken than before)
* The preview page includes the image (smallest derivative found)
* The eCard feature can be turned on and off per album using the G2 permission system
http://siriux.net/news/2006/03/02/gallery-2-ecard-module-008/
Posts: 56
Hi, thank you for the update Nico, however, I'm getting problems viewing the image from Gmail, Mindless version had a similar problem a couple of times when I tested today but then I could view the image in Gmail in his version with no problem, I've seen others having these sporadic issues. Thunderbird on Linux and Yahoo mail are working normally.
I'm thinking on trying with PHPMailer, any special reason for choosing PEAR::Mail_mime?
Regards!
Update: I just reinstalled Mindless version and it sent one ecard fine to Gmail but in the second one the image was not correctly included, there is some problem there. I'm reviewing the message content to see if I can help with some ideas or code.
Alexis Bellido - Ventanazul web solutions
Posts: 118
I don't know PHPMailer and I consider PEAR modules as mature and stable. But if there are problems I'll have a look at PHPMailer ;-)
I also see the Gmail issue, which can be fixed by replacing
$mime = new Mail_mime();
by
$mime = new Mail_mime("\n");
in SendEcard.inc.
Can you test it? I really hope it does not have any side effects...
Posts: 56
Hi Nico, Gmail is working now with that change, thanks!
PHPMailer was just a suggestion, I haven't tried it yet.
I'll keep testing and let you know.
Regards!
Alexis Bellido - Ventanazul web solutions
Posts: 56
Hi, in studying ecard/module.inc I found methods getSiteAdminViews() and getConfigurationView(), both are used to show the ecard.AdminEcard view, my questions are: what is the difference between these two methods and are both of them needed?
Regards!
Alexis Bellido - Ventanazul web solutions
Posts: 56
Nico, I got some comments about the code in your latest version:
In EcardHelper.class, line 90:
$value = $array[$key];I don't see where this variable is being used in the method replaceKeywords(), maybe it can just be deleted because is no longer used?
In SendEcard.inc, lines 41 and 231, is it ok by Gallery guidelines including view and controller classes in the same file?
Regards!
Alexis Bellido - Ventanazul web solutions
Posts: 118
Alexis: You are totally right. I'll change this...
Posts: 2
Hi all...nice module..however, it seems that module download for G2.0 and the new G2.1 (008) version is the same (siriux.net/files/g2-module-ecard.zip)....so i can't use ecard now on my 2.0.4 install since i get an error asking for API 7.0 instead of mine 6.8...who can help me?
Greets, Struxure
Posts: 8601
It does look like Nico overwrote the download link with the 2.1 version.. maybe post a comment at:
http://siriux.net/news/2005/10/22/ecard-module-for-gallery-20/
and ask for the 2.0 version..
Posts: 118
mindless is right. But I uploaded the old version again:
http://siriux.net/files/g2-module-ecard-0.0.7.zip
However, the new version is much much better (and I recommend upgrading to G2.1 anyway).
Nico.
Posts: 2
Thanks Mindless en Nico....I know 2.1 is better, but i use the checkout module (email and paypal), and there is not (a good) module for 2.1 yet, so i have to stick with 2.0 a little longer.. Thanks for the quick response!!
Greets from Holland, Struxure
Posts: 11
Hello,
Anybody have any ideas to add support for gallery items that aren't originally uploaded as (gif, jpg, png) format. The ecard thing is cool but it doesn't work for pdf. I think I might be able to modify this to get it to work for me.
I tried commenting out this
but I get this error
I think that if I can get call the resized version then it might work, but I don't know how to do that. Any help would be cool.
Thanks
Gallery version = 2.1-rc-2a core 1.0.34
PHP version = 4.3.2 apache
Webserver = Apache/1.3.29 (Darwin) PHP/4.3.2
Database = mysql 4.1.9-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, Thumbnail, ImageMagick
Acceleration = none, none
Operating system = Darwin jeremy.local 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug 5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC Power Macintosh
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Posts: 8601
probably you need to load the jpeg derivative of the pdf.. the pdf item itself doesn't have a width, but if you have imagemagick+ghostscript then you could have a jpeg version of the first page.
or, you could modify ecard to not try to include an <img> tag for non photos.
Posts: 11
Thanks Mindless,
I was thinking that was what I needed to do but I am unsure about how to go about this. Is there any resource for finding out how to load the jpg derivative? I poked around but have not found anything yet. I should mention that I don't really know php and am taking a stab at it.
Thanks
Posts: 11
Okay,
I am flailing blindly here. I tried looking at the slidshow module for inspiration. It didn't work. I really don't understand how all this stuff is pieced together. It seems like I should be doing something with this.
I tried to plug this into what I am doing but it mostly just errors on me. I think its because I am not understanding how to do what I want.
Any kind souls have any guidence?
Thanks
Posts: 8601
i haven't looked at ecard code, but don't you have a single item for the ecard? i'd think you'd use either the fetchResizesByItemIds or fetchPreferredsByItemIds core api with just the item id of that one item.
Posts: 11
mindless,
Awesome, that totally worked! Here is what i did.
replace this in ecardhelper.class
with this
And it seems to work....
Now, because i commented out this
It shows up on every page for every item, even albums. So i will have to figure that out but it is a step in the right direction.
Thanks for your help.
Posts: 8601
change GalleryPhotoItem to GalleryDataItem to get every item that has a data file.