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!

How can I put up a cPanel icon that accesses a (local) home directory file?

Discussion in 'cPanel Developers' started by jols, Mar 8, 2013.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    168
    I know how to develop then install a custom icon in cPanel, which will then link to a single file on the server.

    But what about making a link for the icon which will open a file that is within that specific cPanel/account owners public_html directory?

    I would gather that this is possible with some sort of address link, like:

    <a href=$userID/www/filehere.html>img src="icon.jpg"></a>

    ... but I'm really green at this kind of development work, and after searching around all day, I can't quite figure out how to come up with a link that is just and only for that specific account owner.

    Anyone?

    Thanks very much!
     
  2. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    168
    Okay, getting closer. Apparently, when creating the custom icon via the following:

    cPanel Plugins | cPanel, Inc.

    ... I would need to insert the account user variable in the Plugin URL Access: field. Something like:

    /usr/local/cpanel/base/frontend/x3/$user/public_html/filehere.html

    Sorry, my knowledge of working with cPanel system variables is non-existent.

    Any help?
     
  3. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    168
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