Quantcast
Channel: WHMCS Community Forums
Viewing all articles
Browse latest Browse all 13458

retrieving security questions

$
0
0
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:
Code:

{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 :-)

Viewing all articles
Browse latest Browse all 13458

Trending Articles