Skin tokens in plugin

ItsOnlyMe

Verified User
Joined
Apr 3, 2009
Messages
124
Location
Netherlands
Hi,

I can't seen to figure out how to get the skin tokens to work in plugins. I have written a plugin that needs to be visible if a user has access to a function like SSH, if the user has access to that, then the link to the plugin page needs to be visible. I can get it working when i edit the enhanced theme/skin it zelf with:

Code:
|*if USERSSH="ON"|
	<a href="/CMD_PLUGINS/MY_PLUGIN_NAME">MY PLUGIN NAME</a>
|*endif|

But when i add this to the plugins/MY_PLUGIN_NAME/hooks/user_txt.html it does not accept this. Is there a way to get this working without changing the original template it self?

Kind regards,
 
Last edited:
Hello,

Probably hide/show with JavaScript then? Or with PHP, but it will require using exec() with a wrapper in order to get permissions to read user.conf.

Or open a ticket with Directadmin developers suggesting this for future release: https://tickets.directadmin.com/
 
Back
Top