Only quiz moderators can submit quizzes
Moderator: CricketMX Forum Moderators
Let me start off by saying thanks for such a great mod. I installed this a few days ago and everything works great except one part. No matter who I add to the Quiz Moderator list they can not create quizes. Only site admins can. Am I doing something wrong? I checked the database and the names are in the Quiz moderator table.
Are you entering user id's? Sounds like you might be entering their usernames.
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Yeah, that's the problem. Enter their user id numbers. Like: 4,76,21,53,11,100,21 .... etc
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Fantastic
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
If you try putting your own user ID in there, what happens when you try to access quizzes?kikkotm wrote:I tried to ban some users to not partecipate to quizzes but it doesn't work.
I insert user's id like 40,34,45..but
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
I tried with an user ID (i was going on phpbb database to search the exactly id)
I write 40 (the number), I tried to acced with the User Numbero 40, but I could do the test.
I tried also with 39 (the number on the forum list) but the result was the same!!
I write 40 (the number), I tried to acced with the User Numbero 40, but I could do the test.
I tried also with 39 (the number on the forum list) but the result was the same!!
Try this.
Open functions_quiz.php and FIND:
REPLACE WITH
Does that fix it?
Open functions_quiz.php and FIND:
Code: Select all
function quiz_permissions()
{
global $board_config, $lang, $userdata;
if($board_config['Quiz_Register_Play'] == ON) // If this is OFF, basically it means Guests can play quizzes.
{
if(!$userdata['session_logged_in'])
{
return message_die(GENERAL_MESSAGE, $lang['Quiz_must_be_registered']);
}
}
if($board_config['Quiz_Post_Count_Play'] == ON)
{
if($userdata['user_posts'] < $board_config['Quiz_Post_Requirement'])
{
return message_die(GENERAL_MESSAGE, sprintf($lang['Quiz_post_requirement_not_met'], intval($board_config['Quiz_Post_Requirement'])));
}
}
}
Code: Select all
function quiz_permissions()
{
global $board_config, $lang, $userdata;
$users = explode(',', $board_config['Quiz_Banned']);
for( $o = 0; $o < count($users); $o++ )
{
if( intval($userdata['user_id']) == intval($users[$o]) )
{
message_die(GENERAL_MESSAGE, "You cannot play quizzes");
}
}
if($board_config['Quiz_Register_Play'] == ON) // If this is OFF, basically it means Guests can play quizzes.
{
if(!$userdata['session_logged_in'])
{
return message_die(GENERAL_MESSAGE, $lang['Quiz_must_be_registered']);
}
}
if($board_config['Quiz_Post_Count_Play'] == ON)
{
if($userdata['user_posts'] < $board_config['Quiz_Post_Requirement'])
{
return message_die(GENERAL_MESSAGE, sprintf($lang['Quiz_post_requirement_not_met'], intval($board_config['Quiz_Post_Requirement'])));
}
}
}
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)