SiClyUnDeCideD Posted May 26, 2009 Share Posted May 26, 2009 Hello I would like to find out: When you log in to a customers portal via the admin panel you get that "Logged in as Administrator" banner. I assume that it pops up is because of the admin users session. Can I use that to add a area using the template files of the "Product Details", that only admin users logged in this way can see it. Not the clients. Impossible? 0 Quote Link to comment Share on other sites More sharing options...
siforek Posted May 27, 2009 Share Posted May 27, 2009 Nothing is impossible, but why would you want to view "admin only" information via the client area? Why not just use the admin panel? 0 Quote Link to comment Share on other sites More sharing options...
SiClyUnDeCideD Posted May 27, 2009 Author Share Posted May 27, 2009 I am using the freeradius mod from whmcs, now in the client panel under product details i have managed to add graphing using the {$username} variable. Withing the admin templates the only client editable template is the client summary (as far as i know), now some clients have several freeradius accounts, it would be easier to put the additional info in the clients product page, rather than writing a script with a whole bunch of sql strings to get the user id from email, then all freeradius usernames from the user id. All a little waste in my view seeing as {$username} is all ready there. Sorry seem to have found myself rambling on.... 0 Quote Link to comment Share on other sites More sharing options...
SiClyUnDeCideD Posted August 15, 2009 Author Share Posted August 15, 2009 got a reply on this from Matt, Thanks "you can use {if $smarty.session.adminid} show this... {/if}" 0 Quote Link to comment Share on other sites More sharing options...
neocorps Posted April 19, 2010 Share Posted April 19, 2010 got a reply on this from Matt, Thanks "you can use {if $smarty.session.adminid} show this... {/if}" Thank you for posting that, I managed to solve my problem with it. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.