Jump to content

clientsummary.tpl Show security Answer


astralinterne

Recommended Posts

Hello,

I'd like to add the "security answer" of the master account owner directly on the first page of the clientsummary.tpl instead of having to click on "Profil Tabs" to see the answer.

 

I entered this code down to the "Phone Number" label. (In clientsummary.tpl)

 

<tr><td>{$_ADMINLANG.fields.securityanswer}</td><td>{$clientsdetails.securityanswer}</td></tr>

 

This way I can see a new row with the word "Security Answer" in it. That is perfert but the answer isn't showing right to the label. It's empty.

Maybe the part {$clientsdetails.securityanswer} is wrong? Someone can help?

 

Excuse my English.

Link to comment
Share on other sites

Hello,

 

The Security answer isn't part of smarty; so you will need to pull it from the database. We are pulling their security question and answer and adding it to their Admin side Summary page. We also have it bold red text as it is required for account verification.

 

We are displaying the Security Question and their answer.

 

<tr class="altrow"><td style="color: #BE2105;"><strong>Secuity Question</strong></td><td style="color: #BE2105;"><strong>{php} 
$result = mysql_query("SELECT tbladminsecurityquestions.question,
tblclients.securityqans FROM tblclients, tbladminsecurityquestions WHERE
tblclients.id=".$this->_tpl_vars['clientsdetails']['userid']." AND tblclients.securityqid =
tbladminsecurityquestions.id");
while($row = @mysql_fetch_array( $result )) {
 $question = decrypt($row['question']);
}
if (!$question) {
 echo 'NO QUESTION - please update!';
}else{
 echo $question;
}
{/php}</strong></td></tr>
<tr><td style="color: #BE2105;"><strong>Secuity Answer</strong></td><td style="color: #BE2105;"><strong>{$clientsdetails.securityqans}</strong></td></tr>
<br />
<div class="errorbox"><strong> TEXT IN RED (BOLD) - MUST BE VERIFIED!</strong></div>

Edited by rodeoXtreme
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