1
Roby73
Contact 1.8
  • 2012/7/21 0:10

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


I try this very useful module for the option department... but the mail of the single dep. do not work.

i modify the function in class/contact.php as follows:

le="color: #000000"><?php function Contact_ToEmails($department) { $list_user=array();$list_mail=array(); $departments = xoops_getModuleOption('contact_dept','contact'); foreach( $departments as $vals ) { $vale = explode( ',', $vals ); if($department==$vale[0]) $mail=$vale[1]; } return $mail; }


in this mode seem to be work correctly

2
Cesagonchu
Re: Contact 1.8

Thank you Roby73!

3
voltan
Re: Contact 1.8
  • 2012/7/21 4:18

  • voltan

  • Theme Designer

  • Posts: 724

  • Since: 2006/12/5


Thank you Roby73, I will add your changes in module.

Thanks

4
voltan
Re: Contact 1.8
  • 2012/7/21 4:50

  • voltan

  • Theme Designer

  • Posts: 724

  • Since: 2006/12/5


I add your codes whit some changes, Please help me to check it

thanks

http://xoops.svn.sourceforge.net/viewvc/xoops/XoopsModules/contact/branches/voltan/v1.8/

5
Roby73
Re: Contact 1.8
  • 2012/7/22 0:28

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


Thanks Voltan!!!

In my server
le="color: #000000"><?php return $admin_mail . ','. $department_mail;
don't send none mail....

One question, if $department is null, return only mail $admin_mail with end '.' ?

or is better:
le="color: #000000"><?php return $admin_mail . ','. $department_mail; } else { return $admin_mail; }


Now use the module in active website, departement is very useful for me.
Sorry for my very bad english