New module - eCard

dwdallam

Joined: 2006-11-19
Posts: 394
Posted: Fri, 2011-01-07 01:37
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2011-01-07 04:14

It works for me, although it looks like you will have to learn some css to get the other modules out of the way or reorder some of the block in the sidebar.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
dwdallam

Joined: 2006-11-19
Posts: 394
Posted: Fri, 2011-01-07 04:48

It works, it's just not integrated into the sidebar like it should be. It's not showing up as a block for me, but a separate entity, like the facebook like button, at the bottom of the blocks. Can it be integrated into the sidebar in its own block?

I've attached a screen shot so I can change my site back again.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Fri, 2011-01-07 16:16

I found the issue and will fix later today in git:

1. In views\ecard_block.html.php, find:

<a href="<?= url::site("ecard/form_send/{$item->id}") ?>" id="g-send-ecard"
class="g-dialog-link g-button ui-state-default ui-corner-all">
<span class="ui-icon-ecard"></span>

Change to:

<a href="<?= url::site("ecard/form_send/{$item->id}") ?>" 
class="g-dialog-link g-button ui-state-default ui-corner-all">
  <span class="ui-icon-ecard"  id="g-send-ecard"></span>

2. In helpers\ecard_block.php, find:
$block->css_id = "g-send-ecard";

Change to:
$block->css_id = "g-sendecard";

That should take care of it for you.
--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
dwdallam

Joined: 2006-11-19
Posts: 394
Posted: Tue, 2011-01-11 08:22

Yep, you got it. Any chance you can take the gray background off the text though? Thanks!

Just noticed one more thing. The text size does not seem to be obeying the theme css in Firefox 36x but is ok in IE8. It's smaller in Firefox than the theme's sidebar text.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Tue, 2011-01-11 12:40

The background is controlled by your theme's CSS.

I'm using the stock wind theme and the size is fine in IE8 and FF 3.6.13.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Tue, 2011-01-11 17:19

great module, just installed it and tested it..
here are some ideas and thoughts:

- I've seen someone asked before for the option to send in a future date.. any news about that?
- The second thing, I need the option to send to more than one email using a comma just like emails..
- there could be an option saying "send a copy to yourself"
- another option could be "email me when %toname views this card"
- an option for the webmaster to limit the number of characters sent.
- an option for a simple rich text: font size, color, alignment.. etc.
- there could be an option to remember the sender's details, so he/she won't have to retype it each time..
- the last idea I thought of could be something like a rectangle at the bottom that has the top ten emails that the sender sends to them cards.. so the sender could just use the checkbox beside each name to be added to the "send to" field.

that's it :)

p.s. the top priority for me now is the option to be able to send to more than one person.

Thanks in advance,

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Tue, 2011-01-11 18:44
wise_mike wrote:
- I've seen someone asked before for the option to send in a future date.. any news about that?

Not yet. It's on my list.

wise_mike wrote:
- The second thing, I need the option to send to more than one email using a comma just like emails..
- there could be an option saying "send a copy to yourself"

I'll add these, too.

wise_mike wrote:
- another option could be "email me when %toname views this card"

The ecard is not stored on the server, so there is no way to track when it is viewed.

wise_mike wrote:
- an option for the webmaster to limit the number of characters sent.

This can be done.

wise_mike wrote:
- an option for a simple rich text: font size, color, alignment.. etc.

I'm not a big fan of this, since not all clients support it, and those that do don't support it uniformly.

wise_mike wrote:
- there could be an option to remember the sender's details, so he/she won't have to retype it each time..

If you are logged in, it will pre-populate your information. If you are a guest, it will not.

wise_mike wrote:
- the last idea I thought of could be something like a rectangle at the bottom that has the top ten emails that the sender sends to them cards.. so the sender could just use the checkbox beside each name to be added to the "send to" field.

That's not a bad idea. I'll see what it would take (obviously some database work).

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Tue, 2011-01-11 18:50

On further investigation, the multiple recipients is easy from an address standpoint, but there is also the "To Name" field, and users would have to make sure to get the names and addresses properly sequenced (don't want

to get a message saying "Hello, Alice"). I could do away with the 'name' field altogether, if that's not objectionable.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
dwdallam

Joined: 2006-11-19
Posts: 394
Posted: Tue, 2011-01-11 22:30

I'm wondering why there is a background behind the text that only shows in this module?

dmolavi wrote:
The background is controlled by your theme's CSS.

I'm using the stock wind theme and the size is fine in IE8 and FF 3.6.13.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Wed, 2011-01-12 01:04
dmolavi wrote:
On further investigation, the multiple recipients is easy from an address standpoint, but there is also the "To Name" field, and users would have to make sure to get the names and addresses properly sequenced

well, there are some suggestions for that..
- there could be a drop-down menu or a textbox saying: "How many people would you like to send this card to?", and beside it a small box to write a number, or a drop-down menu with numbers from 1-10 or to 20.. after the user writes the number or chooses it, the script reloads multiplying the 2 fiels "name" and "to email" more than once each couple of them under the other..
- also the name could be optional so if the user just types emails it would still be deliverd..

the second option could be:
the name and email fields would be on the same line, and under it there is a button saying "add receiver" and when the user click on it, it reopens another 2 fileds of the name and email under the previous ones.. and so on..

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Wed, 2011-01-12 01:53

The option to include yourself on the card is now in my repo and should be pulled shortly, and available at GalleryModules.com as well. It is version 6 of the module.

I will try to get in the fixed-length text field tonight, as well.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Wed, 2011-01-12 02:07

I have a basic check in the textarea for the length, at 255 chars. There is no realtime JS counter showing the number of chars left yet, but I should be able to get that in, as well. This is version 7.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Thu, 2011-01-13 15:31

great job.. thanks a million..

I guess no need to show the chars. left in realtime.. just give the webmaster an option to limit it with a certain characters.

Another idea I just got could be the option to block certain words from the comment area, so no one abuses it.. just a thought..

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Thu, 2011-01-13 15:33
wise_mike wrote:
great job.. thanks a million..

I guess no need to show the chars. left in realtime.. just give the webmaster an option to limit it with a certain characters.

Another idea I just got could be the option to block certain words from the comment area, so no one abuses it.. just a thought..

See http://gallery.menalto.com/node/100243 (re: displaying chars in realtime). I've got the enforcement down via JS, just not the display.

I've also added a configuration option to the admin setup for the max length. Hopefully I'll be able to commit this tonight.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Thu, 2011-01-13 15:47

As far as censoring the message contents, I'm not going to touch that one. If someone wants to write up a module that does that, I can extend the functionality here if they provide hooks.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Thu, 2011-01-13 20:48

I've made the commit and submitted a pull request. As soon as it's been pulled, I'll update GalleryModules.com.
--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Mon, 2011-01-17 09:12

A thought about an option..... possible for the administrator to toggle/select between sending the sized version of an image vs. the thumb version of the image?

Further thought would be to allow the user to select the sized vs. the thumb to send...

The thumb version of an image is useful when sending to cell phone and similar devices.

Just a thought.

Great module.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Mon, 2011-01-17 15:09
drhiii wrote:
A thought about an option..... possible for the administrator to toggle/select between sending the sized version of an image vs. the thumb version of the image?

Further thought would be to allow the user to select the sized vs. the thumb to send...

The thumb version of an image is useful when sending to cell phone and similar devices.

Just a thought.

Great module.

That's a really good idea. I'll make it user-selectable. Hopefully I can get it in by the end of the week; I'll post a followup once I've completed it.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Mon, 2011-01-17 16:10

Wow, that was easy :) I have the code working. I just need to commit it when I get home.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
vallu

Joined: 2009-06-04
Posts: 25
Posted: Mon, 2011-01-17 17:51

Nice work :) I have a question/option suggestion: Is it possible to locate eCard module below the image. When user clicks "Send an eCard" the send form could open up as a comment form (Comment module).

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Mon, 2011-01-17 19:28

@vallu - that was the approach I had first, but it was easier to get it working as a dialog. I'll see what it takes to get it working like that now, since I'm more familiar w/ the framework, and maybe make it an admin option.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Mon, 2011-01-17 22:36

Hey, cool deal. Wish other things were that well received. I just thought it would be an interesting feature.

Well done!

dmolavi wrote:
Wow, that was easy :) I have the code working. I just need to commit it when I get home.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Tue, 2011-01-18 09:11

Ok, I will confess to another 'wish list' as an extension for this wonderful eCard module.

In addition to being able to send either a sized or a thumb representation of an image which is fab.... I was thinking about being able to watermark the sized version which would then support the idea of advertising. All images coming out of a particular site could contain a watermark as in "The ABC123 Gallery" and of course the linkable image that is sent via email that already directs people back to the site too.

So I got to thinking.... being able to use the email message body to further advertising of each image that goes out, easy as pie now via the settings for eCard. Cool.

So then I got to think more.... dangerous now.... what advantage would there be to pushing a Tweet out at the same time? Meaning, every time an eCard is pushed out, possibly submitting a Tweet to a Twitter account at the same time? Mebbe more fuss than it is worth. But being able to broadcast to another conduit via the single action of an eCard.... ??? Just a thought. I have an application that creates a Tweet every time a Poll is created, and it significantly advances traffic back to the site via that single event. The author of the application slurped down the APIs for Twitter, added it to his app, and it has become one of the best features of the Poll app.

Am I overthinking stuff?

Anyway, the eCard module has excellent functionality towards reaching out and touching people.

dmolavi wrote:
Wow, that was easy :) I have the code working. I just need to commit it when I get home.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Tue, 2011-01-18 14:59

The thumb vs resize option is in my fork and should be pulled soon.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Tue, 2011-01-18 15:03
drhiii wrote:
Ok, I will confess to another 'wish list' as an extension for this wonderful eCard module.

In addition to being able to send either a sized or a thumb representation of an image which is fab.... I was thinking about being able to watermark the sized version which would then support the idea of advertising. All images coming out of a particular site could contain a watermark as in "The ABC123 Gallery" and of course the linkable image that is sent via email that already directs people back to the site too.

So I got to thinking.... being able to use the email message body to further advertising of each image that goes out, easy as pie now via the settings for eCard. Cool.

So then I got to think more.... dangerous now.... what advantage would there be to pushing a Tweet out at the same time? Meaning, every time an eCard is pushed out, possibly submitting a Tweet to a Twitter account at the same time? Mebbe more fuss than it is worth. But being able to broadcast to another conduit via the single action of an eCard.... ??? Just a thought. I have an application that creates a Tweet every time a Poll is created, and it significantly advances traffic back to the site via that single event. The author of the application slurped down the APIs for Twitter, added it to his app, and it has become one of the best features of the Poll app.

I'm ok w/ sending the watermarked image, and making it an admin choice, but tweeting is outside the scope of an ecard.
--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Tue, 2011-01-18 16:57

I understand. At least we can use our imagination now and then.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Fri, 2011-01-21 12:39

The thumbnail vs resized option was just pulled and is available at gallerymodules.com.

I'm still trying to figure out how to access non-watermarked images if the original is watermarked, or the other way around.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Fri, 2011-01-21 13:53
drhiii wrote:
I was thinking about being able to watermark the sized version which would then support the idea of advertising. All images coming out of a particular site could contain a watermark as in "The ABC123 Gallery" and of course the linkable image that is sent via email that already directs people back to the site too.

if the image is watermarked, the module will send the image (either resized or thumbnail) with the watermark automatically. I don't believe there is a way to send a non-watermarked version of the image (as it would require doing the resize on the fly).

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Fri, 2011-01-21 14:36

I retract my last statement. I've got the code working now where the user can send the non-watermarked image if the admin permits them to do so. I will commit this to my fork later today and submit the pull request.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Fri, 2011-01-21 20:50

I've committed the code and submitted a pull request. Hopefully it'll be in the official repo soon.
--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Sat, 2011-01-22 06:50

This is quite a feat. To provide all of these variations is I have no doubt NOT for the feint of programming heart. What you have described is a substantial piece of work. Well done.

dmolavi wrote:
I retract my last statement. I've got the code working now where the user can send the non-watermarked image if the admin permits them to do so. I will commit this to my fork later today and submit the pull request.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Tue, 2011-02-22 11:38

Hi dmolavi,

Thanks a lot for making most of my wishes here all come true.. like the comma to send to more than one person, send a copy to yourself and the number of characters.

The scheduler for sending in future dates would be great, and I noticed that you are checking with the "Task Scheduler module" author how to implement that..

I have now to questions:
1- how to make the "Message" filed not mandatory? (make it optional)
I tried to change the word "required" to "optional" at the ecard.php

Quote:
->rules("optional")
->error_messages("optional", t("You must enter a message"));

but it didn't work.. it was just a test.. I don't know the exact command.

2- why does the eCard module send a copy of the image file and not hot-link the file?
and if I want that, how to make it?

Thanks

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Tue, 2011-02-22 12:51

@wise_mike
1. I believe that if you want a field to be optional, you just leave out the "rules" attribute, and the associated error_messages attr.
2. Many people block hot-linking on the server side, and some mail clients don't display hot-linked images unless you explicitly allow it. Why would you want the image hot-linked as opposed to sent inline with the message?

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Tue, 2011-02-22 16:07

thanks for the prompt reply and your comments..

I have another thought:
Have you thought of implementing the code in a way that it creates a page on the server, and the user gets a link with the card, along with the chosen background, background music, notify the sender when the receiver opens the email.. and stuff like that.. etc.
And later the send date could be implemented..

This could be an option to the webmaster, either to send the card to the email, or through a link on the server..

What do you think?

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Tue, 2011-02-22 16:16

It's a nice thought. The music I disagree with, since the user would have to upload music, or choose from music that is already available. Either way, it's messy.

Creating a page on the fly could be done, giving an ecard a unique hash that is stored in the DB with the image and other info, then created on the fly when the page (w/ the hash as a GET option) is retrieved. I can look into this, but my time right now is very limited.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
jusie

Joined: 2007-06-21
Posts: 48
Posted: Mon, 2011-04-18 18:18

Two things I have noticed...

1. When an e-card is sent, the "Reply To" address is my admin address. I've just received a reply off someone which was intended for the sender of the card. I've tried to find the piece of code that sets the "Reply To" address but can't find it - but then I am not very good with PHP. Can anyone point me towards the correct piece to edit?

2. The e-card message text seems to be missing line breaks?
In the Admin section my message text is

Quote:
Hello,
%fromname has sent you an eCard. The personal message included follows.

In the e-mails that are sent, it appears as

Quote:
Hello, *name of sender* has sent you an eCard. The personal message included follows.

This applies to the text entered by the sender too - it all ends up in one line in the actual e-mail.
What can be done about this?

All in all, the module is fabulous. Thank you.

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Sat, 2011-04-23 04:27

re the first part of your second question of not being able to put it in two lines, simple use html tags in the "eCard settings" like:

Quote:
Hello,
<p>%fromname has sent you an eCard. The personal message included follows.</p>

but about text entered by the sender, I am not sure how to fix it.. it should be changed by allowing html in page, or even simple html as <br> or <p>, and converting any blank like to any of these tags

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Tue, 2011-04-26 04:24

I have the option to to send the webmaster a copy of the ecards, but I just started receiving replies from people, that users sent a card to them! I mean person "A", sent "B" a card from the site, and when "B" replies to the email he/she got, they get the reply to address to the webmaster! not to the original sender..

Please advise..

Thanks,

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Tue, 2011-04-26 08:48

I noticed another problem: when one just writes any word in the "To" field, without adding "@website.com" or the service of the email, the webmaster receives an email with that email address ending with "mydomain.com"!

Example:
my domain name is: mydomain.com
the sender writes his full email address, but in the "To:" field writes the word:
hi
then he/she gets the normal confirmation that the message has been sent! and while the card has been sent to "hi@mydomain.com"!!

So, what is needed is when a user does that, he gets an error to type the email in the right way..

Thanks,

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Wed, 2011-04-27 20:02

Been off (family illness) now back to reinvigorate with G3.

Installed G3 core and included this great eCard mod. Noted that there were some settings in the config screen, but I didn't see the ability to toggle from thumb or sized versions of what to send via eCard. Did this capability not make it into the latest build? Sounded like it might but don't see it now. I see the cool ability to allow users to send unwatermarked versions of an image. But not a prescribed 'thumb' vs 'full sized'. Original thought was restricting the ability for a user to send a thumb only would provide thumbs to go to things like cell phones and such vs. the sized versions.

Just askin'....

tx

dmolavi wrote:
drhiii wrote:
A thought about an option..... possible for the administrator to toggle/select between sending the sized version of an image vs. the thumb version of the image?

Further thought would be to allow the user to select the sized vs. the thumb to send...

The thumb version of an image is useful when sending to cell phone and similar devices.

Just a thought.

Great module.

That's a really good idea. I'll make it user-selectable. Hopefully I can get it in by the end of the week; I'll post a followup once I've completed it.

--
For Gallery 3 modules and themes, visit GalleryModules.com.
For PHPNuke, phpBB2, and phpBB3 integration help, visit NukedGallery.net.

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Thu, 2012-01-05 22:26

Hi,

I use this great module for over a year now, and I have two issues:

1- when a persons sends another an ecard through the module, when the receiver hits the reply button on their email to thank the sender, the email that is replied to is the webmaster's email! not the original sender's email!! Don't know why..! How can this be fixed?

2- sometimes when there is a load on the server and the php scripts are a bit slow, when someone is sending an ecard and gets a slow reply, he hits "Send Now" button more than once, and all are get sent! Is there a way to "shade" the button once it gets hit, so the user can't hit it again, till it sends..?

Thanks,