Jump to content

Recommended Posts

Hi Everyone,

 

I'm continuing my epic quest to get all the client area account details tabs on one page.

 

I need to retrieve the list of security questions via php so i can assign them to the correct smarty variable from clientareadetails.tpl

 

Something like this would go in the tpl file:

{php}
$securityquestions = $whatever_php_is_needed_to_get_the_questions;
$this->assign('securityquestions', $securityquestions;
{/php}

 

As WHMCS is not open source I can't find out how to retrieve things via php, I assume there is some sort of get function for retrieving things, or would it involve writing my own database query? So really I have two questions:

 

1. How do I retrieve the security questions from the database and

2. How do I go about finding out how to add to WHMCS using php (I know it's possible because people write 3rd party plugins!)

 

Thanks in advance :-)

Edited by ralphonz
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.

×
×
  • 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