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

jols

Well-Known Member
Mar 13, 2004
1,110
3
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!
 

jols

Well-Known Member
Mar 13, 2004
1,110
3
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?