DragonPrime - LoGD Resource Community

Game Administration, Installation and Configuration => The Idea Place => Topic started by: trapeur on September 16, 2006, 04:50:00 PM



Title: SEND EMail to translators
Post by: trapeur on September 16, 2006, 04:50:00 PM
I want to find a module to send an email to all my translator or moderators of the site.

+ ;D


Title: Re: SEND EMail to translators
Post by: Nightborn on September 17, 2006, 12:48:38 AM
Well, Talisman pointed you to the right edge...

Quote
Pyewacket had a module on her server which was an MoTD for superusers, with a link from the grotto.  Something like that would be good for making announcements without having them disappear in the normal chatter.

Don't know what the module was called though...

You could try:
http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=62

This sends out YOMs.

If you want to have emails, you need to change

Code:
$sql = "SELECT name FROM ".db_prefix("accounts")." \
INNER JOIN ".db_prefix("module_userprefs")."
ON userid = acctid
WHERE modulename = 'supermessage'
AND setting = 'position'
AND value >= '3'";

(example query from the module)

to add the email address to your select like

Code:
$sql = "SELECT name,emailaddress FROM ".db_prefix("accounts")." \
INNER JOIN ".db_prefix("module_userprefs")."
ON userid = acctid
WHERE modulename = 'supermessage'
AND setting = 'position'
AND value >= '3'";

and then change
Code:
            while($row = db_fetch_assoc($result)){
require_once("lib/systemmail.php");
            systemmail($row['userid'],$subject,$body);
}

to

Code:
            while($row = db_fetch_assoc($result)){
            mail($row['emailaddress'],$subject,$body);
}

You have to change these in some places (note that the first change is only an example, you only need to add the "emailaddress" to the sql query.


Title: Re: SEND EMail to translators
Post by: Pyewacket on September 17, 2006, 08:29:42 AM
the module Talisman mentioned is Sichae's Grotto MoTD.
http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=54. Very handy module indeed.

© 2018 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines