The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    38
    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:
    38
    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:
    38
Loading...

Share This Page