How to enable ecard

longstag

Joined: 2006-03-24
Posts: 12
Posted: Fri, 2006-03-24 08:29

Hi together,

I installed the ecard module for my gallery 2.1.
I already enabled it but I still not see any ecard icon in gallery.

Sorry if this is a stupid question, but I'm a G2 newbie...

Thanks
Christian

--
http://www.longstag.com
http://pix.longstag.com

 
longstag

Joined: 2006-03-24
Posts: 12
Posted: Fri, 2006-03-24 16:27
 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2006-03-25 04:51

look in the "item actions" dropdown at the bottom of the page

 
longstag

Joined: 2006-03-24
Posts: 12
Posted: Sat, 2006-03-25 09:30

@mindless:
ok, thank you.
Is it possible to get this action into an icon? (not in dropdown menu)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2006-03-25 19:15

you have to customize your theme to do that.

 
bubs

Joined: 2006-04-01
Posts: 3
Posted: Sat, 2006-04-01 15:50

First... Thanks to whomever created this module. I've installed it and it seems to work great. I have one problem though. Currently under every thumbnail in an album there is a link to the ecard feature. I would like to remove this and only have the link displayed when viewing the image. I have not included "Item actions" in the block for Album Pages. Plus none of the other Item Actions are showing up under the thumbnails, only the "send as an ecard" link.
Hope that made sense.
Thanks.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2006-04-01 17:11

bubs, edit modules/ecard/module.inc function getItemLinks and have it only return the link when "wantsDetailed" is true.. if you don't know PHP and need more detail, let me know.

 
bubs

Joined: 2006-04-01
Posts: 3
Posted: Sat, 2006-04-01 18:36

I'm not familiar with PHP at all. I did find the file and function but not for sure how to edit it. More help would be greatly appreciated.
Thanks.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2006-04-01 23:32

in modules/ecard/module.inc in "function getItemLinks" just below the line with "foreach ($items as $item)" put this:

if (empty($wantsDetailedLinks[$item->getId()])) {
  continue;
}
 
bubs

Joined: 2006-04-01
Posts: 3
Posted: Sun, 2006-04-02 13:50

Worked. Thanks!

 
oceano

Joined: 2006-05-07
Posts: 41
Posted: Sat, 2006-06-24 15:52

Howdy

I've got the ecard feature working/sending just fine. But my design does not use the dropdown actions.

I'm trying to get a simple icon under the photo view (not album view) with the comments and slideshow icons I now have.

- Not sure about the specifics for the php since I'm more on the designer side of things...

- I've tried what mindless recommended above in the module.inc, and other variations, considered edits directly in the navigatorPhoto.tpl ....

- If it matters - I'm NOT running the commerce features on this family site.

`·.¸¸.><(((º>`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.><((((º>
Gallery version = 2.1.1 core 1.1.0.1
Default theme = PGtheme

 
sbessel

Joined: 2006-06-26
Posts: 7
Posted: Mon, 2006-07-10 01:42

I would like to do the same... 'send as E-Card' on each photo page, not on the listing page...

The code above seemed to work to delete it form the listing page, but it didn't show up elsewhere.

I would also like to imbed a link back to the picture in the email message. Any ideas?

I have only have Gallery2 running for today, so I am a bit 'new'

thanks,

Scott

 
akiwitz

Joined: 2005-07-08
Posts: 4
Posted: Wed, 2006-08-16 06:12

Hi everybody,

i have the same question as sbessel and oceano. I edited the ecard module as described by mindless, nevertheless the ecard link won't show up at the phpto page. is there a block link one can add in the photo page?

Thank you,

andré

 
Freelancealot

Joined: 2009-08-18
Posts: 36
Posted: Tue, 2009-08-25 02:41

Hi,

Did anyone get this working?

I need to get this working on my Gallery2 installation. The Send ecard link (with icon) is showing up in the flyout-sidebar (I'm using the Carbon theme). I've looked in module.inc and in the templates but just can't see where it's getting this from. There's also no block to set up for the ecard module alone, so how do I get it to display there?

I'm guessing something to do with

Quote:
function getItemLinks($items, $wantsDetailedLinks, $permissions) {
$links = array();
foreach ($items as $item) {
$itemId = $item->getId();
if (GalleryUtilities::isA($item, 'GalleryPhotoItem') &&
isset($permissions[$itemId]['ecard.send']) &&
isset($wantsDetailedLinks[$itemId])) {
$params['view'] = 'ecard.SendEcard';
$params['itemId'] = $itemId;
$params['return'] = 1;
$links[$itemId][] = array('text' => $this->translate('Send as eCard'),
'params' => $params);
}
}

in the module.inc file. But I don't know what to do with that to get the 'Send as eCard' to appear under the description on the photo.tpl. I can't even see where I would add it to the photo.tpl! :(

I've got an idea it's something along the lines of

Quote:
{g->text text="Send as eCard"}

But I know that's not right. As I assume I have to get the id of the photo in there somewhere!

Any help much appreciated.

Cheers,

Tracy

 
Freelancealot

Joined: 2009-08-18
Posts: 36
Posted: Tue, 2009-08-25 03:45

Okay...I was being a bit dumb there! I found where to add the ecard link in the photo.tpl, and I've seen a solution on another thread to put in the Send as Ecard link. This is what worked for me.

I added the bit in bold to the photo.tpl file:

Quote:
<div class="gsContentDetail">
<div class="gbBlock">
{if !empty($theme.item.title)}
<h2> {$theme.item.title|markup} </h2>
{/if}
{if !empty($theme.item.description)}
<p class="giDescription">
{$theme.item.description|markup}
</p>

{/if}
<p><a href="{g->url arg1="view=ecard.SendEcard" arg2="itemId=`$theme.item.id`"}">{g->text text="Send as Ecard"}</a></p>
</div>

Cheers,

Tracy