astralinterne Posted February 21, 2011 Share Posted February 21, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
rodeoXtreme Posted February 25, 2011 Share Posted February 25, 2011 (edited) 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 February 25, 2011 by rodeoXtreme 0 Quote Link to comment Share on other sites More sharing options...
astralinterne Posted March 1, 2011 Author Share Posted March 1, 2011 This is exactly what I want. Thanks you... 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.