The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

An extra Field In 'Create Account'

Discussion in 'General Discussion' started by PhsyCon, May 8, 2003.

  1. PhsyCon

    PhsyCon Member

    Joined:
    May 8, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    This has been puzzling me for sometime..

    I wanted to create an extra text feild in WHM Admin Create Account form so that I can enter an email of the account, and it will write it to .contactemail on their virtual host account dir..

    I've had a look through /scripts and i've found the script that creates the user account, dirs etc.. so writing the file is sorted out, i just need to know how to pass the email feild over.. and how to actually find the file to code the text box in!


    ANY Help appreciated..

    My ultimate aim is to automatically email the user upon account creation.
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    If your ultimate aim is to automatically email the user upon account creation, why not look at whmautopilot.com, thier script has the mailing portion built in.
     
  3. PhsyCon

    PhsyCon Member

    Joined:
    May 8, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Well yeah - I could, but i just want that feature, nothing else.

    I have written a custom script to email the user, which will be called from the adduser script at the end..
     
  4. PhsyCon

    PhsyCon Member

    Joined:
    May 8, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Any more ideas?
     
  5. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    the place to add the textfield i belive is in /usr/local/cpanel/whostmgr/docroot/wwwacct
    you could then modify wwacct to pass the
    the right $ARGV (this is assuming that whm calls /scripts/wwwacct with values of what entered in the textfield which i think is what it does but not entirely sure you could verify this with a couple of print commands)
     
  6. PhsyCon

    PhsyCon Member

    Joined:
    May 8, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I've tried modifying this.. but it doesn't show up on the create account form
     
  7. PhsyCon

    PhsyCon Member

    Joined:
    May 8, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I can see it links to /scripts2/wwwacctform but when i try doing a locate wwwacctform nothing shows up
     
  8. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Anything in /scripts2 is virtual - It is part of the encrypted portions of cpanel
     
  9. PhsyCon

    PhsyCon Member

    Joined:
    May 8, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I wasn't hoping for that lol..

    So theres no way of changing it unless i write my own form.. to query the cpanel module
     
  10. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Unfortunatly from what I can see yep.
     
  11. PhsyCon

    PhsyCon Member

    Joined:
    May 8, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Ok.. well thanks for your help.. once i've created the form i may aswell let others use it.. so i'll probably put it up later..


    Thanks again.
     
Loading...

Share This Page