View Single Post
  #394  
Old 07-04-2006, 11:26 PM
oz_moses oz_moses is offline
 
Join Date: Oct 2004
Location: Sydney
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ZT, another quality hack from Inferno - installed no wuckas.
Just one query for you - is it possible to have a single-selection drop-down?

Quote:
Originally Posted by craiovaforum
request: add the posibility to create a question without an answer and after a while the admins could insert the correct answer and all the stats should be updated. I'm using this hack for the WC matches (like a betting service with prizes) and obviously I don't know the answers before (match results). This could be usefull for this kind of "competitions".
Exactly what I'm thinking craiovaforum, this would be an awesome modification to allow the quiz hack to be used as a tipping engine for sports matches, and I've got it working for me.. though kind of dodgily I'll happily admit.

Here's the changes I've made to facilitate this:
- disabled the PM's upon quiz completion (via commenting out the PM sections of /admincp/admin_quiz.php and /quiz.php)
- modified the 'quiz_thanks' template from 'Thank you for taking the quiz, your results have been PM'ed to you, check your Inbox to see them.' to 'Thank you for submitting your tips. Results will be posted next week.'
- Created a quiz, but left the 'correct answer' blank for each question
- The quiz is set to close the day before game day

- allow the users to take the quiz.. questions such as 'pick the result: wallabies, draw, all blecks' and 'who will score first try? Tuqiri, Latham, any other Wallaby'

- after the game I then 'Control Quiz Questions' and edit each question to input the now correct answer

- I then need to 'Moderate Quiz Results' and click 'Edit' followed by 'Update' for each user. It would be really nice if there were a query I could run that does a bulk update of all results.. but this is working for now.

- Finally I check all users who have 0% as I could have missed them.

Hope this helps,
Moses.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01055 seconds
  • Memory Usage 1,766KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete