custom package items TOKENS on user pages

interfasys

Verified User
Joined
Oct 31, 2003
Messages
1,821
Location
Switzerland
Da introduced the custom package items a while ago
http://www.directadmin.com/features.php?id=479
but it seems that those items are not available as tokens for us to use on user pages.

That would let us show some extra HTML like links for those users that have special features enabled.

Could this be implemented?

Also, it seems that the token doesn't work in domain_create_post.sh

I tried with
if [ "$myvar" = "ON" ]; then
 
Last edited:
It seems this is working
|*if myvar|

The problem is that some items can be configured as lists and something like this doesn't work
|*if myvar = something|

So, I'm maintaining my feature request :)
 
Last edited:
Did you get this to work in user/* part of skins?

It seems this is working
|*if myvar|

The problem is that some items can be configured as lists and something like this doesn't work
|*if myvar = something|

So, I'm maintaining my feature request :)
 
I have a reply from DA Support Team.

Quote:
I don't think the custom variables that are set in the user.conf would be loaded into tokens.
However, you can make an API call using the session_key (HTTPSocket class) to call to just CMD_API_SHOW_USER_CONFIG, to dump their config.

This is a most horrible way I can think of :(
 
Back
Top