1
davidtillyer
extGallary (Photo Gallary) HELP

Im using this module and it's GREAT however there are things on this that I can not get to work.

When you go into the phont and enlarge it, it will allow you to send an "ECard". I click on this http://www.MYSITE.com/modules/extgallery/public-sendecard.php?id=38

I fill out all the info Name, Email to address etc and the "Security check" letter/numbs hit submit and it seems to go, but where I do not know I never get the pic and I have tried to to MANY email accounts.

Where dose it go and what do I have to do to get this to work?
Kind Regards
David

2
christian
Re: extGallary (Photo Gallary) HELP
  • 2006/11/24 11:08

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


Hi David,

Have you look this thread ?

Cheers

3
davidtillyer
Re: extGallary (Photo Gallary) HELP

Hi Thank you, for that tip. Where do I find this:

Find this line (I think it's line 86):
//$this->send($ecard);

and change it to

$this->send($ecard);
Kind Regards
David

4
davidl2
Re: extGallary (Photo Gallary) HELP
  • 2006/11/24 11:30

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Quote:

davidtillyer wrote:
Hi Thank you, for that tip. Where do I find this:

Find this line (I think it's line 86):
//$this->send($ecard);

and change it to

$this->send($ecard);


In the link given its:

Quote:
modules/extgallery/class/publicecard.php

5
davidtillyer
Re: extGallary (Photo Gallary) HELP

Hi can I just download the "publicecard.php" file edit it and upload it again and it should work?
Kind Regards
David

6
davidtillyer
Re: extGallary (Photo Gallary) HELP

I Have down loaded that php file and I can not find that line in the code and threr is not 86 lines of code there. Below is all I have in that php file can you please show me what I need to change.

(!defined("XOOPS_ROOT_PATH")) {
die("XOOPS root path not defined");
}

include_once 'ExtgalleryPersistableObjectHandler.php';
include_once 'extgalleryMailer.php';

class ExtgalleryPublicecard extends XoopsObject
{

var $externalKey = array();

function ExtgalleryPublicecard()
{
$this->initVar('ecard_id', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('ecard_cardid', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('ecard_fromname', XOBJ_DTYPE_TXTBOX, 0, false);
$this->initVar('ecard_fromemail', XOBJ_DTYPE_EMAIL, '', false, 255);
$this->initVar('ecard_toname', XOBJ_DTYPE_TXTBOX, '', false, 255);
$this->initVar('ecard_toemail', XOBJ_DTYPE_EMAIL, '', false, 255);
$this->initVar('ecard_greetings', XOBJ_DTYPE_TXTBOX, 0, false);
$this->initVar('ecard_desc', XOBJ_DTYPE_TXTAREA, 0, false);
$this->initVar('ecard_date', XOBJ_DTYPE_INT, 0, false);
$this->initVar('ecard_ip', XOBJ_DTYPE_TXTBOX, 0, true);
$this->initVar('uid', XOBJ_DTYPE_INT, 0, false);
$this->initVar('photo_id', XOBJ_DTYPE_INT, 0, false);

$this->externalKey['photo_id'] = array('className'=>'publicphoto', 'getMethodeName'=>'getPhoto', 'keyName'=>'photo', 'core'=>false);
$this->externalKey['uid'] = array('className'=>'user', 'getMethodeName'=>'get', 'keyName'=>'user', 'core'=>true);
}

function getExternalKey($key) {
return $this->externalKey[$key];
}

}

class ExtgalleryPublicecardHandler extends ExtgalleryPersistableObjectHandler {

function ExtgalleryPublicecardHandler(&$db)
{
$this->ExtgalleryPersistableObjectHandler($db, 'extgallery_publicecard', 'ExtgalleryPublicecard', 'ecard_id');
}

function createEcard($data) {

$photoHandler = xoops_getmodulehandler('publicphoto', 'extgallery');

$ecard = $this->create();
$ecard->setVars($data);
$ecard->setVar('ecard_date',time());
$uid = is_a($GLOBALS['xoopsUser'], "XoopsUser") ? $GLOBALS['xoopsUser']->getVar('uid') : 0;
$ecard->setVar('uid',$uid);
$ecard->setVar('ecard_cardid',md5(uniqid(rand(), true)));

if(!$this->insert($ecard, true)) {
return false;
}
//$this->send($ecard);

$criteria = new Criteria('photo_id',$ecard->getVar('photo_id'));
$photoHandler->updateCounter('photo_ecard',$criteria);
}

function send(&$ecard) {

$photoHandler = xoops_getmodulehandler('publicphoto', 'extgallery');
$photo = $photoHandler->get($ecard->getVar('photo_id'));

$mailer = new extgalleryMailer('included');

$mailer->setEcardId($ecard->getVar('ecard_cardid','p'));
$mailer->setSubject(sprintf(_MD_EXTGALLERY_ECARD_TITLE, $ecard->getVar('ecard_fromname','p')));
$mailer->setToEmail($ecard->getVar('ecard_toemail','p'));
$mailer->setToName($ecard->getVar('ecard_toname','p'));
$mailer->setFromEmail($ecard->getVar('ecard_fromemail','p'));
$mailer->setFromName($ecard->getVar('ecard_fromname','p'));
$mailer->setGreetings($ecard->getVar('ecard_greetings','p'));
$mailer->setDescription($ecard->getVar('ecard_desc','p'));
$mailer->setPhoto($photo);
$mailer->send();
}

function getEcard($ecardId) {
$criteria = new Criteria('ecard_cardid',$ecardId);
$ecard = $this->getObjects($criteria);
if(count($ecard) != 1) {
return false;
}
return $ecard[0];
}

}

?>
Kind Regards
David

7
davidl2
Re: extGallary (Photo Gallary) HELP
  • 2006/11/28 13:18

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Or you could simply go to the authors site and download the new version which fixes this problem.

8
blueteen
Re: extGallary (Photo Gallary) HELP
  • 2006/11/28 13:37

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


in the code you post, I can see :

//$this->send($ecard);

just after :
if(!$this->insert($ecardtrue)) {
return 
false;
}


but i think (as davidl2 said), that's will be better to use the last version (1.0.1) :

http://www.zoullou.net/modules/news/article.php?storyid=15
This is a bug fix release (eCard, photo resizing...)

update your module !

9
davidl2
Re: extGallary (Photo Gallary) HELP
  • 2006/11/28 13:53

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


And unless memory fails me... I think there is something displayed in this module to tell you of new releases?

10
blueteen
Re: extGallary (Photo Gallary) HELP
  • 2006/11/28 13:59

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


correct !
in admin page of extgallery :

Quote:

You are running eXtGallery with the latest updates for stability and security.

Login

Who's Online

368 user(s) are online (285 user(s) are browsing Support Forums)


Members: 0


Guests: 368


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits