Display Domain Script Question

dyverse

Member
Sep 30, 2006
5
0
151
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?
 

PWSowner

Well-Known Member
Nov 10, 2001
2,948
4
343
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.
 

cpanelinfoseeker

Well-Known Member
Oct 25, 2002
325
3
168
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
 
Last edited:

brianoz

Well-Known Member
Mar 13, 2004
1,146
7
168
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!
 

1337Host

Registered
Nov 20, 2006
4
0
151
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.