Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Custom Client template on registration

Discussion in 'General Discussion' started by VefeindLTD, Feb 6, 2019.

  1. VefeindLTD

    VefeindLTD Member

    Joined:
    Jan 26, 2019
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Iceland
    cPanel Access Level:
    Root Administrator
    Hi.

    I have a custom html template that I have as a default index for the domain name customers at registration.

    What I want to do is display the domain name at that template, how can I do that.

    Thanks :)
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,476
    Likes Received:
    507
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @VefeindLTD

    Can you explain better what you're trying to do? I'm not entirely certain I understand. If you're referencing a default webpage template you can customize that by going to WHM>>Account Functions>>Web Template Editor -> Default Website Page
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. VefeindLTD

    VefeindLTD Member

    Joined:
    Jan 26, 2019
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Iceland
    cPanel Access Level:
    Root Administrator
    Yes sorry for that.

    I have a custom under construction html template that I have added to cpanel3-skel/public_html

    This template will be default index when client register at my server and this template will be the first index at the domain.

    When the client visit his domain, the client will see

    "This domain.com is hosted at domain company LTD
    The website is under construction. Coming Soon"

    What I would like to do is display the Client domain name at the index template.
     
  4. dalem

    dalem Well-Known Member PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,909
    Likes Received:
    127
    Trophy Points:
    368
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    add to index.php

    <?
    echo $_SERVER['HTTP_HOST'];
    ?>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. VefeindLTD

    VefeindLTD Member

    Joined:
    Jan 26, 2019
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Iceland
    cPanel Access Level:
    Root Administrator
    ohhh man thank you Dalem. This is awesome.

    One more question, how can I make the domain name bigger and bolder.

    Thanks :)
     
  6. VefeindLTD

    VefeindLTD Member

    Joined:
    Jan 26, 2019
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Iceland
    cPanel Access Level:
    Root Administrator
    No need to reply, I found out how.

    Thanks
     
  7. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,476
    Likes Received:
    507
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @VefeindLTD

    It sounds like you're all set, let us know if you have any other questions or concerns! Thanks @dalem for helping out!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice