New Zenner
- Join Date:
- Jul 2016
- Location:
- China
- Posts:
- 23
- Plugin Contributions:
- 0
back link of 'ask a question success page' will be not right in same conditions
When I add a Captcha plugin in V157a, every thing works ok.
Just the bakc link of 'ask a question success page' always to be home page.
After alot of testing, I found that the back link of 'ask a question success page' will be affected in case the 'ask a question post page' have some thing like
<img id="captcha" src="captcha.php" onClick="this.src='captcha.php?nocache='+Math.random()" style="cursor:pointer" alt="<?php echo CAPTCHA_REFRESH; ?>" title="<?php echo CAPTCHA_REFRESH; ?>" />
it seems that the src="captcha.php" inside the page will affect the zen_back_link fucntion. so why not make change on the
\includes\templates\YOUR_TEMPLATES\templates\tpl_ask_a_question_default.php
search the code
<div class="mainContent success"><?php echo TEXT_SUCCESS; ?></div>
<div class="buttonRow"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
And replace with
<div class="mainContent success"><?php echo TEXT_SUCCESS; ?></div>
<div class="buttonRow"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $pid) . '">' . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>