Jump to content

Admin template syntax


BryanB

Recommended Posts

I'm trying to do something like:

 

if admin = John then do x

 

on /whmcs/admin/clientsummary.tpl

 

but it looks like the {$admin_username} variable is not available on that template page.... How can I identify who the admin user is on the clientsummary.tpl page? I'll even use PHP if smarty syntax wont work but not sure how...

 

I never understood why smarty variables aren't available on all templates? {$admin_username} is available in the header but not in the clientsummary.tpl page.

Link to comment
Share on other sites

Hi Bryan

not sure which variable is available in cartsummary template, but you can always check that manually - just put {debug} into template and you will see popup window with all available variables and their values.

 

Indeed. That's what I've done but {$admin_username} is not available on client_summary.tpl so I'm wondering what to do in order to determine what admin user is logged in while on cart_summary.tpl... I don't see any other admin user variables.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated