Welcome, Guest. Please Login or Register.
May 14, 2025, 04:19:13 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  New applicant, e-mail to admin « previous next »
Pages: [1] Reply Ignore Print
Author Topic: New applicant, e-mail to admin  (Read 638 times)
Topspliff
Noobie
*
Posts: 12


Ozric Tentacles

WWW
New applicant, e-mail to admin
« on: June 24, 2003, 06:29:05 AM »
Reply with quote

Hi all

I have just installed the application mod, so that members have to be approved by admin, this works brilliantly, but I have a question.

Is there a way, that rather than logging into the forum, to check for new applicants, instead that I am e-mailed when a  new applicant applies.

This would be realy helpfull.

Any help greatly appreciated.

Cheers Alan   ;D
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:New applicant, e-mail to admin
« Reply #1 on: June 24, 2003, 06:42:20 AM »
Reply with quote

Why don't you ask in the thread after this feature ?
Logged

Topspliff
Noobie
*
Posts: 12


Ozric Tentacles

WWW
Re:New applicant, e-mail to admin
« Reply #2 on: June 24, 2003, 12:09:12 PM »
Reply with quote

Hi Daniel

Don`t know what you mean, please help

Alan
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:New applicant, e-mail to admin
« Reply #3 on: June 24, 2003, 04:05:02 PM »
Reply with quote

he meant for mod-specific questions, it's better to ask in the mod's topic itself

anyway, about the applicant mod, yes it's possible
open Register2.php, search for   $yytitle = $txt['apply16'];
   template_header();
add before   sendmail($webmaster_email,"New forum applicant: $member[user] ($member[email])\n\nAdmin center:$scripturl?action=viewApplicant", $webmaster_email); (untested)
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Topspliff
Noobie
*
Posts: 12


Ozric Tentacles

WWW
Re:New applicant, e-mail to admin
« Reply #4 on: June 24, 2003, 06:48:02 PM »
Reply with quote

Hi Spaceman

I have tried the code with no success, is the following code how it shold look, or have I gone wrong somewhere.



$memIP = $REMOTE_ADDR;
   $request = mysql_query("
      INSERT INTO {$db_prefix}application (userName,emailAddress,hideEmail,message,time,IP)
         VALUES ('$member[user]','$member[email]','$hideemail','$member[message]',".time().",'$REMOTE_ADDR')") or database_error(__FILE__, __LINE__);
   print mysql_error();

               sendmail($webmaster_email,"New forum applicant: $member[user] ($member[email])\n\nAdmin center:$scripturl?action=viewApplicant", $webmaster_email);
               $yytitle = $txt['apply16'];
   template_header();

   echo '
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td>
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
   <tr><td class="titlebg">' . $txt['apply16'] . '</td></tr>';
   echo "   <tr><td class=\"windowbg\">$txt[apply14] <b>$member[user]</b> $txt[apply15]</td></tr></table>";
   echo '</td></tr></table>';

Your help would be greatly appreciated.

Alan
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:New applicant, e-mail to admin
« Reply #5 on: June 24, 2003, 08:40:38 PM »
Reply with quote

try to register a test account
see if u're getting any error messages...
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  New applicant, e-mail to admin « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.032 seconds with 20 queries.