However, the system has a pretty big back-end, it's possible i over-looked a bit or 2, so if you encounter errors/php errors please feel free to let me know in this thread and i'll try to get them fixed asap
v2.2 Updates: (Upgrade instructions inside ZIP)
- Several areas of code otptimized (query reduction)
- Uncached templates now cached
- Ability in main options to choose default usergroups to participate/view results to be auto filled in when adding quizzes.
Enjoy,
- Zero Tolerance
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Hey Mike - do you know of any way to equip a VB 4 site with quiz functionality?
You can wait for the update... use some flash or other scripts and some savvy to integrate them OR you could simply use the Easy forms mod and set it up so it works like a quiz system .
Could someone point in the right direction in quiz.php to fix this issue;
If a select a custom user group and add this only to a quiz it wont let you take it. I have added the user group to the main settings ect but I think it is because it is not checking for custom user groups as well as main?
Never mind I fixed it the coder forgot to query the table that holds the additional usergroups
which is "membergroupids"
Update I'm using 3.8.2 So somewhere between this mod release and I think 3.6.0 VB added the additional members table and although this mod sees them and allows you to select the additional members groups per quiz it does not query them for permissions because that table was all one at the time. I have fixed this for people who have any VB version which uses additional user groups well up to 3.8.2 maybe higher but can not test any higher here. I have added a new Var for the membergroupids table and changed the if permission statement.
Why do you want this? Well you can have a subscription only quiz with a prize, the quiz is set to only allow a certain additional member group which is auto added to any member through the subscription options voila Now the permissions work lol! And it makes it far more flexible for special events without having to change the users main group.
The new var added is
$Your_MID = $vbulletin->userinfo[''membergroupids'];
And replacing the if statement of
if (!in_array($Your_ID,$Perms['Participate']))
with
if (!(in_array($Your_ID,$Perms['Participate']) || in_array($Your_MID,$Perms['Participate'])))
Both to be done in 3 occurenceses.
Or replace your quiz.php with the one I have already modded.
NB: Rename your old one to quizold.php then upload mine as is if it does not work for you, you can just delete mine and rename your quizold.php back to quiz.php I know standard practice everyone should know but just in case