Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Require Admin activation of new accounts
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Require Admin activation of new accounts

 Post Reply Post Reply Page  12>
Author
gomjabbar View Drop Down
Newbie
Newbie


Joined: 11 December 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote gomjabbar Quote  Post ReplyReply Direct Link To This Post Topic: Require Admin activation of new accounts
    Posted: 11 December 2003 at 7:25am
Is there a way to send an email to an admin to approve and active new accounts when they are registered?
Back to Top
kl8ton View Drop Down
Newbie
Newbie


Joined: 23 April 2003
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote kl8ton Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 7:50am
I would be interested in this too.  If you check my post I just put out there you will see why I would be interested in this, the admin could tell who the people are and then assign permissions accordingly.  Great idea!
Back to Top
india View Drop Down
Senior Member
Senior Member


Joined: 21 November 2003
Status: Offline
Points: 499
Post Options Post Options   Thanks (0) Thanks(0)   Quote india Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 8:07am

Open register.asp and change the code in red

Code:

'******************************************
  '***     Send activate email    ***
  '******************************************

                 'Inititlaise the subject of the e-mail that may be sent in the next if/ifelse statements
                 strSubject = "" & strTxtWelcome & " " & strTxtEmailToThe & " " & strMainForumName

                 'If the members account needs to be activated or reactivated then send the member a re-activate mail a redirect them to a page to tell them there account needs re-activating
                 If (blnEmailActivation = True AND strMode = "new") OR blnAccountReactivate = True Then

                          'Send an e-mail to enable the users account to be activated
                          'Initailise the e-mail body variable with the body of the e-mail
                          strEmailBody = strTxtHi & " " & decodeString(strUsername)
                          strEmailBody = strEmailBody & vbCrLf & vbCrLf & strTxtEmailThankYouForRegistering & " " & strMainForumName & "."
                          strEmailBody = strEmailBody & vbCrLf & vbCrLf & strTxtUsername & ": - " & decodeString(strUsername)
                          strEmailBody = strEmailBody & vbCrLf & strTxtPassword & ": - " & strPassword
                          strEmailBody = strEmailBody & vbCrLf & vbCrLf & strTxtToActivateYourMembershipFor & " " & strMainForumName & " " & strTxtForumClickOnTheLinkBelow & ": -"
                          strEmailBody = strEmailBody & vbCrLf & vbCrLf & strForumPath & "/activate.asp?ID=" & Server.URLEncode(strUserCode)

                          'Send the e-mail using the Send Mail function created on the send_mail_function.inc file
                          blnSentEmail = SendMail(strEmailBody, decodeString(strUsername), decodeString(strEmail), strMainForumName, "you@domain.com", strSubject, strMailComponent, false)


where the email address is yours so you get the confirmation emails

Back to Top
india View Drop Down
Senior Member
Senior Member


Joined: 21 November 2003
Status: Offline
Points: 499
Post Options Post Options   Thanks (0) Thanks(0)   Quote india Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 8:08am
Thanks Micheal for the code
Back to Top
gomjabbar View Drop Down
Newbie
Newbie


Joined: 11 December 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote gomjabbar Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 9:27am
The code change didn't work.  The mail is still sent to just the user registering.  Any ideas?
Back to Top
kl8ton View Drop Down
Newbie
Newbie


Joined: 23 April 2003
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote kl8ton Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 9:30am

This did not work for me.  I changed the:

 decodeString(strForumEmailAddress)

to "me@domain.com" and the email address entered during the registration process still gets the activate email.  Am I missing something?

Back to Top
india View Drop Down
Senior Member
Senior Member


Joined: 21 November 2003
Status: Offline
Points: 499
Post Options Post Options   Thanks (0) Thanks(0)   Quote india Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 10:13am

Oops. Sorry this code was by micheal.
anyways, plz try changing this

(strEmailBody, decodeString(strUsername), decodeString(strEmail), strMainForumName, "you@domain.com", strSubject, strMailComponent, false)

TO strEmail
to your email address.

meanwhile, i'll try 2 find out a way

Back to Top
kl8ton View Drop Down
Newbie
Newbie


Joined: 23 April 2003
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote kl8ton Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 11:07am
Is there a way to put in the stored admin email address instead of manually typing in an address?  I am looking at the report_post.asp because those end up going to the forum admin....can we use the same variable?    I really need to get this working today and am trying to help.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.