Jump to content

hook or API


durangod

Recommended Posts

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.

Link to comment
Share on other sites

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 by durangod
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