vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Test Your Members' Knowledge Before Allowing Them to Post in Certain Forums (https://vborg.vbsupport.ru/showthread.php?t=93388)

amykhar 07-31-2005 10:00 PM

Test Your Members' Knowledge Before Allowing Them to Post in Certain Forums
 
This mod is an addon to the Inferno Quiz System You must have that mod installed and working to use this.

What it does: It requires users to achieve a minimum score on a specified quiz to post in a forum.
Example: You have a PHP discusssion forum for advanced coders. You don't want novices bothering your members with trivial questions. So, you require anybody who wishes to post in that forum to achieve a minimum score of 70% on an advance PHP quiz that you created using Inferno Quiz.

How to install it: Import the Product. Done. No template edits, nothing else to do.

How to use it: In your admincp forum manager, edit the forum(s) you wish this to use this mod for. Enter a Quiz ID and the minimum acceptable score. Save the forum. You're done.

You can easily require users to pass different quizzes to be able to post in different forums. If a user has not taken the quiz, he is directed to do so. If he has failed the quiz, he sees an error message.

I don't expect many of you will use this. I'm not even using it. But, the idea hit me and it was fun to throw together.

Amy

amykhar 08-01-2005 07:58 PM

p.s. If you want your users to have to pass the quiz before they can even read in your forum, copy the plugin code from newthread_start and create new plugins using forumdisplay_start and showthread_start as the hooks with the same source code.

I haven't tested that, but it should work.

Neutral Singh 08-02-2005 01:17 AM

gr8 concept!! May come real handy in really big forums. You are on a roll Amy.

Kru 08-02-2005 11:08 AM

I installed it but if I click on edit forum there is nothing where I can enter a Quiz ID or anything?

Azhrialilu 08-03-2005 11:57 AM

I love this idea and can definitely put it to use :D Nice one, Amy!

amykhar 08-03-2005 12:23 PM

Quote:

Originally Posted by Kru
I installed it but if I click on edit forum there is nothing where I can enter a Quiz ID or anything?

Kru, let me double check that all of the plugins are in the product.

BluPhoenix 08-04-2005 04:38 AM

Oh cool, I can use this for my Adult Section and try and recreate that old "Lesuire Suit Larry" feel to getting access *g*

Brinnie 08-04-2005 05:22 AM

Quote:

I don't expect many of you will use this. I'm not even using it. But, the idea hit me and it was fun to throw together.
Was thinking the same... But it sounds so cool, I'm considering a way I can work it in. :p

Azhrialilu 08-04-2005 08:01 AM

Just to show an example of where it works... on a metaphysical/paranormal site I run, we have areas for more advanced things. Using as an example, the craft of the witch, for beginners we have an area where they can read up and ask questions on absolutely everything you need to get started, but we also have an area for those people who have been part of the Craft for many years. Now it's very hard sometimes to know how much someone really knows, so this is where Amy's idea comes in extremely useful to me! We can now add a "quiz" that people have to pass - holding the limited knowledge needed tob e able to access the forum.

Kru 08-04-2005 01:40 PM

Quote:

Originally Posted by amykhar
Kru, let me double check that all of the plugins are in the product.

Ok, thank you. I really like the idea of this hack and it can be useful for my forum www.mirzone.net . :)

Tell me if you have any idea why it doesn't work for me, please.

amykhar 08-04-2005 02:09 PM

Kru, Try it now. I accidentally added one of the plugins to a different product with a smiliar name. Download the new xml file and install the product. It should work now :)

Sorry about that one.

Amy

Azhrialilu 08-04-2005 06:47 PM

I've just downloaded it and installed it, and getting the same problem... no option in edit forum :)

amykhar 08-04-2005 07:18 PM

The problem seemed to be in the import of the product file. It did not work right. I redid the product on RC2 and have uploaded it here for you. I successfully uninstalled my product and installed this one; so cross your fingers.

Amy

Azhrialilu 08-04-2005 07:30 PM

I tried it on RC1 without success, got an error message flash up.. unfortunately too quickly to read LOL... am going to upgrade to RC2 in the morning, so will retry then :D

Edited to say:-

Ignore me... I'm getting tired... just did it again and works perfectly!!!! :D

Azhrialilu 08-04-2005 07:34 PM

grrr lol back again... when I try to save a forum without any quiz ID, I now get an error:-

MySQL Error : Unknown column 'quizid' in 'field list'
Error Number : 1054

amykhar 08-04-2005 07:36 PM

Drats. Back in a bit.

amykhar 08-04-2005 07:42 PM

ok. Try now. If it makes you all feel any better, I just accidentally wiped out 3 days of work because a product had a similar name.

Azhrialilu 08-04-2005 07:44 PM

Quote:

Originally Posted by amykhar
ok. Try now. If it makes you all feel any better, I just accidentally wiped out 3 days of work because a product had a similar name.

:eek: not at all!!!! In fact, now I just feel guilty :(


Edited to say:-

WOOHOO!!! you are so awesome! :D worked wonderfully.

Kru 08-04-2005 08:44 PM

Perfect works, now. Thank you very much. :)

garrynewman 08-04-2005 10:05 PM

I get missing phrases...

'quiz_not_taken'

Were we meant to add these ourselves?

Kru 08-05-2005 05:26 AM

Quote:

Originally Posted by garrynewman
I get missing phrases...

'quiz_not_taken'

Were we meant to add these ourselves?

#

Yes, after choosed a Quiz for a forum and wanted to test it I got the same error: Could not find phrase 'quiz_not_taken'. :(

turkforum 08-25-2005 07:25 AM

how can we generate a quiz?

amykhar 08-25-2005 12:46 PM

That's a question for you to ask in the Inferno Quiz support thread. It's out of scope for support for this mod, sorry.

ph03nIX 10-27-2005 12:00 PM

Quote:

Originally Posted by Kru
#

Yes, after choosed a Quiz for a forum and wanted to test it I got the same error: Could not find phrase 'quiz_not_taken'. :(

I am getting this as well.

When I try to post in the forum I have a quiz for I get "Could not find phrase 'quiz_not_taken'." And then when I fail a quiz then tried to post I get "Could not find phrase 'quiz_failed'."

Does anybody have the solution for this? :ermm:

Thanks.

Parture 10-28-2005 06:58 PM

quiz_not_taken needs to be filled in with a phrase, so go to phrase manager and create a phrase, and that solves the problem.

ph03nIX 10-29-2005 03:43 AM

Quote:

Originally Posted by Parture
quiz_not_taken needs to be filled in with a phrase, so go to phrase manager and create a phrase, and that solves the problem.

Hi,
I went to the phrase manger, add phrase and put ?quiz_not_taken? as the varname and adding a little text to the text box. Saved, then went to the forum and it still said the phrase cannot be found. Am I adding the phrase wrong or something? :o

mavherzog 12-05-2005 02:35 PM

Quote:

Originally Posted by Parture
quiz_not_taken needs to be filled in with a phrase, so go to phrase manager and create a phrase, and that solves the problem.

Specifically, I tried this with the 'quiz_failed' phrase and vB still reported that it could not be found.

Lance Carbuncle 02-09-2006 10:08 PM

Would it be difficult to make the test work as a usergroup promotion? Anyone want to do this for money?

Thanks, Lance

Frank Butcher 02-18-2006 08:25 PM

Will this work in 3.5.3 ? if not any plans to make it for 3.5 ?

amykhar 02-18-2006 10:15 PM

As far as I know it still works. Try it and see.

Krahl 03-15-2006 11:20 AM

Quote:

Originally Posted by Lance Carbuncle
Would it be difficult to make the test work as a usergroup promotion? Anyone want to do this for money?

Thanks, Lance

Wondering if this question could still be answered? I would be very interested (have a great use for this!) if we could promote into usergroups based on pass/fail.

Thanks for your time.

amykhar 03-15-2006 11:26 AM

Sure, you could do it. But, I will not be doing it as I lack the time and do not need it for myself.

ERuiz 03-17-2006 09:08 PM

Great hack! One question though. COuld it also be made, so that a person has to pass the quiz, before he/she is allowed to register on the forums?

In other words, guests need to pass the quiz, before being allowed to register on the website.

twobob 04-19-2006 09:12 PM

Quote:

Originally Posted by ERuiz
Great hack! One question though. COuld it also be made, so that a person has to pass the quiz, before he/she is allowed to register on the forums?

In other words, guests need to pass the quiz, before being allowed to register on the website.

That would be really handy! For adult content sites, a question could be put to new users to confirm whether or not they were of (say) legal drinking age ...

Is it possible to have the quiz pop up as part of the registration process? Cheers, twobob

fridayweb 05-20-2006 04:47 PM

I figured out part of the phrase dilemma. You need to add the phrases "quiz_not_taken" and "quiz_failed" to the Front-End Error Messages category in order for them to work. It will not work just adding them to GLOBAL.

Now that I have those phrases showing up, it won't display the $foruminfo[score] nor the link to the quiz. Any suggestions?

workplaybiz 07-14-2006 07:18 PM

Quote:

p.s. If you want your users to have to pass the quiz before they can even read in your forum, copy the plugin code from newthread_start and create new plugins using forumdisplay_start and showthread_start as the hooks with the same source code.

I haven't tested that, but it should work.
Can someone please do this for me? or can someone at least tell me where to find newthread_start, forumdisplay_start and showthread_start?

pkallberg21 12-30-2007 01:32 PM

I really like this mod, but would it work for vB 3.6.8, or better yet on 3.7.0?

I would greatly appreciate if you could possibly remake the mod so that it would work on the newer versions.

Thank you.

Alfa1 12-30-2007 02:16 PM

Indeed. This is a nice hack. It would be nice to see a upgrade to 3.7

Alfa1 04-15-2008 05:24 PM

Does anyone have this working on vb 3.7?

Nothing shows up in the forum manager.

Alfa1 04-25-2008 06:48 AM

Does anyone know how to get this mod working on vb 3.7?


All times are GMT. The time now is 04:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01319 seconds
  • Memory Usage 1,817KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete