Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    5

    Default Display Domain Script Question

    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. #2
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  3. #3
    Member cpanelinfoseeker's Avatar
    Join Date
    Oct 2002
    Location
    NE Illinois
    Posts
    319

    Default

    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
    Last edited by cpanelinfoseeker; 11-18-2006 at 04:41 PM. Reason: must be in public_html directory under your Skeleton Directory

  4. #4
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,093
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    4

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Which Parked Domain or Addon Domain will display domain typed?
    By devGOD in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-07-2011, 08:22 AM
  2. Script to Display the current Server Load
    By chican0 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-02-2005, 07:13 PM
  3. Very minor question about TOP command (Display MB instead of K)
    By noimad1 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-26-2005, 06:46 PM
  4. installed script - online display..
    By Devil Inside in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-29-2004, 06:30 PM
  5. How to create PHP script for display Bandwidth Traffic?
    By hahawhoami in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 10-18-2003, 03:22 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube