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!

Hostname in login theme?

Discussion in 'General Discussion' started by shenzy, Jan 28, 2019.

  1. shenzy

    shenzy Well-Known Member

    Joined:
    Apr 27, 2008
    Messages:
    73
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    Chile
    cPanel Access Level:
    Root Administrator
    Hello,
    In a custom login template I would like to add a variable that shows the hostname of the current server. Is this possible to do? .
     
  2. shenzy

    shenzy Well-Known Member

    Joined:
    Apr 27, 2008
    Messages:
    73
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    Chile
    cPanel Access Level:
    Root Administrator
    found it, it was simple ... I just have to add:

    [% SERVER_NAME %]
     
  3. shenzy

    shenzy Well-Known Member

    Joined:
    Apr 27, 2008
    Messages:
    73
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    Chile
    cPanel Access Level:
    Root Administrator
    :( nop. [% SERVER_NAME %] show the same url used to acces .. and i need the hostname.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,466
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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