Thanks to battye, I now have the dynamic timer fully functioning, along with inability to cheat! If anyone wants to know more, full details can be found here.
I'm in process of "tweaking" certain areas but I'm a little stuck on outputting php code to templates. I still only know the basics like installing MOD's, SQL changes, etc. I'm more clued on HTML and CSS than anything and it's always been a time issue with learning php is great detail. (Give me AMOS Pro on Amiga though and I'll be well away.... not used now though lol).
I'm a stickler for holding members in key areas trying to eliminate any need for "browser back" options because there isn't an option within a page. Hope I'm making sense! Anyhow, when results of a Quiz is displayed (quiz_result_body.tpl, you get two options at the bottom of page where you can choose to return to Quiz index page or your forum index page. These options are missing if you click on "Quiz Statistics" (displayed at top right).
The code in quiz_result_body.tpl is:
Code: Select all
<tr>
<td width="100%" class="row1" align="center" valign="middle" height="100%" colspan="2">
<span class="gen">
<br />
{L_RETURN_INDEX}<br />
{L_RETURN_QUIZ}
<br /><br />
</span>
</td>
</tr>
Of course, I am aware that I could use plain old HTML and do the following in quiz_statistics_body.tpl:
Code: Select all
<tr>
<td width="100%" class="row1" align="center" valign="middle" height="100%" colspan="2">
<span class="gen">
<br />
<a href="http://<website>/forum/index.php">Click here to return to forum index</a><br />
<a href="http://<website>/forum/quiz.php">Click here to return to Quiz index page</a>
<br /><br />
</span>
</td>
</tr>
I know it's the following two lines I need (within quiz.php), but where?
Code: Select all
"L_RETURN_INDEX" => sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>'),
"L_RETURN_QUIZ" => sprintf($lang['Quiz_click_return_quiz'], '<a href="' . append_sid("quiz.$phpEx") . '">', '</a>'),