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!

Quick Tip to make your user's life easier

Discussion in 'User Experience' started by ckizer, Mar 31, 2005.

  1. ckizer

    ckizer Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    316
    If you don't have a custom cpanel skin, you should consider adding the path to the user's home directory. Users seem to ask this question often.

    Here's how to print it back: (nice thing to add to the index.html)

    /home/<cpanel print="$user">/public_html/

    So putting that would display back in cpanel:
    /home/username/public_html/
     
  2. kosmo

    kosmo Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    403
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    All over Europe
    A user dir may also be at /home2/ or wherever, so this command will not be accuarte. This will be:
    <cpanel print="$homedir">

    kosmo
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ckizer

    ckizer Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    316
    Thanks that's much better. I didn't see that in the api.txt file anywhere....
     
  4. ckizer

    ckizer Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    316
    That command prints back /home/username
    I recommend adding (in the index.html) for the control panel theme
    "/public_html/" onto that. Often "idiot" users will forget that and just copy/paste the path listed in their control panel ;-)

    Thanks.
     
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