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.

Display Domain Script Question

Discussion in 'General Discussion' started by dyverse, Nov 15, 2006.

  1. dyverse

    dyverse Member

    Joined:
    Sep 30, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Ok I have seen this on one other site I dont know if it was using cPanel but I would think its still Possible, ok say I have a user sign up and since there account is automaticly created

    is there anyway to create a welcome page automaticly that would say this is the future home of

    there domainname.com?
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    You need to use a postwwwacct script that will run after account creation. Check my WHM/cPanel scripts link in my sig. I have a postwwwacct script that does that. You need to be the server owner to use postwwwacct scripts.
     
  3. cpanelinfoseeker

    cpanelinfoseeker Well-Known Member

    Joined:
    Oct 25, 2002
    Messages:
    325
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    NE Illinois
    cPanel Access Level:
    Root Administrator
    Add an "index.shtml" page to your Skeleton Directory (public_html) and it will be in the customers directory when you create the account. Give them instructions to remove your file when they create theirs.
    This line will echo the url name they entered the site with:

    <h2 ALIGN="CENTER">http://<!--#echo var="HTTP_HOST" --></h2>

    I have a future site line on top and my service advertised below the line. It gets put on every new account automatically, and best of all, it has no cost!

    Ron
     
    #3 cpanelinfoseeker, Nov 18, 2006
    Last edited: Nov 18, 2006
  4. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    If you create a directory called cpanel3-skel in the reseller home directory the contents are copied into an account when it's created. We use this approach with a PHP script which works out the sitename and displays a welcome message. It also displays an ad for sites registered through us and a generic welcome message for sites registered by our resellers (so as not to take business away from them).

    We put this in a .phtml file, which is interpreted by PHP (had to tweak httpd.config to do this) but doesn't get in the way of fantastico installs.

    I like the .shtml approach, that's pretty cool and I hadn't seen it before. You could also use it with the cpanel3-skel approach. In fact, that's probably the simplest method for you unless you can write PHP!
     
  5. 1337Host

    1337Host Registered

    Joined:
    Nov 20, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I have used a similar concept for a Google Ads system, the included page would be remotely called from another domain and I then keep an exemption list of domains which the script is rendered inert for.

    Great for newly created accounts, and I can alter the content of all of the current sites with one file.
     
Loading...

Share This Page