durangod Posted July 16, 2014 Share Posted July 16, 2014 Could i use a hook to check for if(loggedin) under normal php not smarty from same domain but ouside of whmcs, or is that API Issue - i have html shell around whmcs - i have sale and other popups which advertise to visitors when they on on the site as well as support help auto requests for help or feedback. But some of those are already clients going to their account and even sitting on the portal page the popup comes. So i dont want those popups to be shown if the client is logged in. I can check for loggedin on the whmcs side and toss in an if() here and there to handle that. but what about the html/php shell around whmcs. Someone could log in and then visit the front page of the domain and sit there long enough to get a popup and i dont want my clients to have to be resold or get those at all. Is that doable via hook or does that have to be API. I guess i could just do some quick js, thats possible, but i wanted to ask to see anyone has done this... thanks. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted July 16, 2014 Share Posted July 16, 2014 hello durango, is you HTML/PHP files in the same directory with WHMCS? 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted July 16, 2014 Author Share Posted July 16, 2014 (edited) yeah same domain... html is xxxx.com and whmcs is xxxx.com/whmcs so its just a different folder i have already taken care of the whmcs side with an if() statment that calls two dif versions of the js file if they are logged in so only normal support widgets load. but i have not yet done the html side. i guess i could always just use DOM sessionStorage.setItem as i did in a dif project to check for loggedin and pass it over to the htlm side. Its not a secured data type so that var would not need to be secured, it would show on the source view. Edited July 16, 2014 by durangod 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.