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:

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

Login

Who's Online

253 user(s) are online (134 user(s) are browsing Support Forums)


Members: 0


Guests: 253


more...

Donat-O-Meter

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

Latest GitHub Commits