1
Cuidiu
Event Guide Module - How To Hack
  • 2006/5/20 5:51

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


In the Event Guide, I would like to cc: the admin when someone reserves/registers for an event. The person reserving the event gets a confirmation email. I'd like the admin/webmaster to also get the same confirmation email. I have looked around a bit in the files but can't figure out where I could add the admin as another email recipient. It appears that reserv.php is the file to hack but that's as far as I've gotten. Would someone please help?

TIA,

Cuidiu
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

2
zyspec
Re: Event Guide Module - How To Hack
  • 2006/5/20 12:48

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Exactly which module (and version) are you using? A link to where the module may be downloaded would help.

3
Cuidiu
Re: Event Guide Module - How To Hack
  • 2006/5/20 14:02

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Here you go. Event Guide
Sorry, meant to add that the newest version I'm aware of is Here.
Thanks.
Quote:
zyspec wrote:
Exactly which module (and version) are you using? A link to where the module may be downloaded would help.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

4
Cuidiu
SOLVED Re: Event Guide Module - How To Hack
  • 2006/5/21 3:53

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


I found my answer. I'm sure there's probably a better way to do this but the end result works so that's what I'll go with. I simply declared a variable at the top of reserv.php and then I added it to an array like so:
$xoopsMailer->setToEmails( array($email, $email2) );
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

5
nobu
Re: SOLVED Re: Event Guide Module - How To Hack
  • 2006/5/21 7:38

  • nobu

  • Just popping in

  • Posts: 11

  • Since: 2002/7/9 2


Quote:

Cuidiu wrote:

$xoopsMailer->setToEmails( array($email, $email2) );


There is following code in "reserv.php".

$xoopsMailer->setToGroups($notify_group);

That mean of send email to "Admin Group for Notification" for copy of reservation. Usualy, only add user to the group that user email address $email2.

By the way, I am not recommand register meny user in the group, because many copy of email to send makes delay time when reservation. (xoopsMailer not efective for copy sending)

6
Cuidiu
Re: SOLVED Re: Event Guide Module - How To Hack
  • 2006/5/21 7:47

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Hi nobu,
I understand what you are saying but as I explained in my post on your forum, this feature is not working for me. I have tested countless times and posted what preferences I have enabled. It simply will not send a copy of the confirmation to the admin. All the other copies go out fine for cancellations, notifications of events but not for reservation confirmation. Otherwise, I would not have manually edited the code.

Quote:

nobu wrote:
There is following code in "reserv.php".

$xoopsMailer->setToGroups($notify_group);

That mean of send email to "Admin Group for Notification" for copy of reservation. Usualy, only add user to the group that user email address $email2.

By the way, I am not recommand register meny user in the group, because many copy of email to send makes delay time when reservation. (xoopsMailer not efective for copy sending)
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

7
nobu
Re: SOLVED Re: Event Guide Module - How To Hack
  • 2006/5/21 10:43

  • nobu

  • Just popping in

  • Posts: 11

  • Since: 2002/7/9 2


Umm, It's looks XOOPS 2.2.4 incomatiblity with 2.0.x.
need to bug report to XOOPS 2.2 core developer, not working seToGroups method:

$xoopsMailer->setToGroups($notify_group);

8
nobu
Re: SOLVED Re: Event Guide Module - How To Hack
  • 2006/5/21 16:00

  • nobu

  • Just popping in

  • Posts: 11

  • Since: 2002/7/9 2


Quote:

nobu wrote:
Umm, It's looks XOOPS 2.2.4 incomatiblity with 2.0.x.
need to bug report to XOOPS 2.2 core developer, not working seToGroups method:

$xoopsMailer->setToGroups($notify_group);


No, That is bug in eguide-2.0b2d, I'm sorry.

Fix for this:

eguide/reserv.php:line 518

if(x.reserved,x.reserved,o.reserved) reserved, notify

add under line part.

9
Cuidiu
Re: SOLVED Re: Event Guide Module - How To Hack
  • 2006/5/21 22:56

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Thank you, nobu. It works fine now with no hack needed.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

Login

Who's Online

441 user(s) are online (383 user(s) are browsing Support Forums)


Members: 0


Guests: 441


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