PHP Block Visibility snippet based on Quiz results for two quizzes and restricted to specific URL
Posted by omd on April 4, 2011 at 2:41am
Hi Everyone,
I am trying to show a block on a quiz results page. I want my users to take two separate quizzes and then show them a results page where the can see their scores for each quiz and a block with suggested reading based on the results of the two scores.
I am trying to write a block visibility snippet with the following logic:
if score for quiz node id 222, for current user, is greater than or equal to 50
and if score for quiz node id 228, for current user, is greater than or equal to 50
and if url = content/myresultspage
then return true