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
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)

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.
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)

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) );
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)

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)
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)

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.
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)

Login

Who's Online

175 user(s) are online (121 user(s) are browsing Support Forums)


Members: 1


Guests: 174


Runeher2

more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits