Yes, too have what I need. A link to the correct quiz would be nice, but the band-aid solution will do as well.
Here are my phrases:
PHP Code:
You have not passed the quiz, needed to enter this forum.
<br>You need to prove your knowledge first
<br><br>
<a href="quiz.php?do=Cat&id=1">Click here to take the quiz. </a>
PHP Code:
You have not taken the quiz, needed to enter this forum.
<br>You need to prove your knowledge first
<br><br>
<a href="quiz.php?do=Cat&id=1">Click here to take the quiz. </a>
ThanX TFEX.
EDIT: I saw your post too late. I am currently wrestling with this in another way: once the quiz is taken, it does not let the user take it again. Thus leaving the member shut out of the forum. (if a mistake is made with the quiz)
In relation to your problem: I cant help but notice that there is a problem with $foruminfo['score'] again.
Anyway: go to styles and templates -> search in templates
Then search for 'r_score'
You will land in the template quiz_leaderboard_row
PHP Code:
{$gData['r_score']}
quiz.php is full with references to r_score:
PHP Code:
// Insert Results
$DB->query("insert into ".TABLE_PREFIX."quiz_results
(`r_data`,`r_userid`,`r_score`,`r_forquiz`)
values
('".addslashes(serialize($Answers))."',".$vbulletin->userinfo['userid'].",$Overall,$Quiz[qid])");
PHP Code:
// Get All The Results
$Get_Results = $DB->query("
select u.username,
r.r_userid,r.r_score
from ".TABLE_PREFIX."quiz_results r
left join ".TABLE_PREFIX."user u on(u.userid=r.r_userid)
where r.r_forquiz = '{$Quiz['qid']}'
");
PHP Code:
while($Result = $DB->fetch_array($Get_Results)){
$Results[] = "<a href='quiz.php?$session[sessionurl]do=UserStat&userid={$Result['r_userid']}&id={$Quiz['qid']}'>{$Result['username']}</a>";
$Average += $Result['r_score'];
$Done++;
}