Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Inferno Quiz v2.2 Details »»
Inferno Quiz v2.2
Version: 2.2, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.0 Beta 1 Rating:
Released: 06-14-2005 Last Update: 06-14-2005 Installs: 326
DB Changes Uses Plugins Template Edits
 
No support by the author.

Port of: https://vborg.vbsupport.ru/showthrea...threadid=80780

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.

Comments
  #452  
Old 10-06-2006, 12:33 AM
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, no way can I make this thing public for member use until the apostrophe issue has been resolved. I looked into both threads, but no 3.5 solution for any of them.
Reply With Quote
  #453  
Old 10-06-2006, 08:35 AM
ZAG ZAG is offline
 
Join Date: Oct 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To fix the Export Problem in Version 3.6.x

Search "admin_quiz.php" for
PHP Code:
nRow.innerHTML '<form action=\"admin_quiz.php\" name=\"cpform\" method=\"post\"><input type=\"hidden\" name=\"do\" value=\"do_download_export\" /><div style=\"display:none\"><textarea name=\"export_output\">'+Value+'</textarea></div><div align=\"center\"><input type=\"submit\" value=\"Download Export\" class=\"button\"></div></form>' 
and replace with
PHP Code:
nRow.innerHTML '<form action=\"admin_quiz.php\" name=\"cpform\" method=\"post\"><input type=\"hidden\" name=\"adminhash\" value=\"".ADMINHASH."\" /><input type=\"hidden\" name=\"do\" value=\"do_download_export\" /><div style=\"display:none\"><textarea name=\"export_output\">'+Value+'</textarea></div><div align=\"center\"><input type=\"submit\" value=\"Download Export\" class=\"button\"></div></form>' 
You will find it at line 2314 of the original file.
Reply With Quote
  #454  
Old 10-06-2006, 09:30 AM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OrangeFlea
An updated file was provided in the 3.0 thread, with the fix, but that was for 3.0.
If I can find it, and find what was fixed, I could try and see if the same fix could be applied to to this version. But I can't find the file. I found amy mentioning the issue in that thread but couldn't find a file.
Reply With Quote
  #455  
Old 10-06-2006, 10:24 AM
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mark.B
If I can find it, and find what was fixed, I could try and see if the same fix could be applied to to this version. But I can't find the file. I found amy mentioning the issue in that thread but couldn't find a file.
It wasn't an independent file fix; he updated the whole hack to resolve the problem, so if you don't have the pre-fix version for 3.0, then you won't have a point of reference, unless you want to compare the fixed 3.0 version with this buggy 3.5 version.

Anyway, here's where Zero said he fixed it: https://vborg.vbsupport.ru/showpost....&postcount=229

Okay, might have found the issue. Compare 2.1 to 2.2:

2.1 (the fixed version for 3.0) has this line and it refers to the quote thing:

Code:
$Quest['q_question'] = parse_bbcode2(str_replace('&quot;','"',$Quest['q_question']), 0, 0, 0, 1);
2.2 (our buggy version) doesn't however:

Code:
$Quest['q_question']  = $bbcode_parser->parse(unhtmlspecialchars($Quest['q_question']));
They're both on the same line of their respected files. But there are other differences in that line as you can see, and I don't know what it will do to the hack in general if I make a direct copy/paste (I'm at work, so I can't do a backup). Can an expert coder provide some input?
Reply With Quote
  #456  
Old 10-06-2006, 11:17 AM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OrangeFlea
It wasn't an independent file fix; he updated the whole hack to resolve the problem, so if you don't have the pre-fix version for 3.0, then you won't have a point of reference, unless you want to compare the fixed 3.0 version with this buggy 3.5 version.

Anyway, here's where Zero said he fixed it: https://vborg.vbsupport.ru/showpost....&postcount=229

Okay, might have found the issue. Compare 2.1 to 2.2:

2.1 (the fixed version for 3.0) has this line and it refers to the quote thing:

Code:
$Quest['q_question'] = parse_bbcode2(str_replace('&quot;','"',$Quest['q_question']), 0, 0, 0, 1);
2.2 (our buggy version) doesn't however:

Code:
$Quest['q_question']  = $bbcode_parser->parse(unhtmlspecialchars($Quest['q_question']));
They're both on the same line of their respected files. But there are other differences in that line as you can see, and I don't know what it will do to the hack in general if I make a direct copy/paste (I'm at work, so I can't do a backup). Can an expert coder provide some input?
I'm not an expert coder, however I am *fairly* certain that change is simply to do with the different way 3.5 and 3.6 parse BBcode compared to 3.0.

I am sure that isn't the fix. I wouldn't try swapping it out, at best bbcode won't work in the quiz, at worst I suspect you'll get a functions error.

I have to say, I started off with the 3.0 version of the quiz which I installed back in February of this year, and the apostrophe bug was present then. So if he said he'd fixed it before then, he hadn't.
Reply With Quote
  #457  
Old 10-08-2006, 06:00 PM
OrangeFlea OrangeFlea is offline
 
Join Date: Aug 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I might as well uninstall the hack, if that's the case. It's a pretty significant bug. Oh well.
Reply With Quote
  #458  
Old 10-09-2006, 12:33 AM
49er 49er is offline
 
Join Date: Nov 2005
Location: UK
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
Not correctly it isn't, not anywhere I've seen anyway.

I fixed this for Icehawk today - the actual problem is that quiz.php is using the $vboptions[] variable, when it should be using $vbulletin->options[].
Hi, how do i go about fixing this, as i have the same problem.

Thanks
Reply With Quote
  #459  
Old 10-09-2006, 11:40 AM
MotMann MotMann is offline
 
Join Date: Jan 2006
Location: Germany
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it work on vB 3.6 ?
Reply With Quote
  #460  
Old 10-09-2006, 02:02 PM
49er 49er is offline
 
Join Date: Nov 2005
Location: UK
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ZAG
To fix the Export Problem in Version 3.6.x

Search "admin_quiz.php" for
PHP Code:
nRow.innerHTML '<form action=\"admin_quiz.php\" name=\"cpform\" method=\"post\"><input type=\"hidden\" name=\"do\" value=\"do_download_export\" /><div style=\"display:none\"><textarea name=\"export_output\">'+Value+'</textarea></div><div align=\"center\"><input type=\"submit\" value=\"Download Export\" class=\"button\"></div></form>' 
and replace with
PHP Code:
nRow.innerHTML '<form action=\"admin_quiz.php\" name=\"cpform\" method=\"post\"><input type=\"hidden\" name=\"adminhash\" value=\"".ADMINHASH."\" /><input type=\"hidden\" name=\"do\" value=\"do_download_export\" /><div style=\"display:none\"><textarea name=\"export_output\">'+Value+'</textarea></div><div align=\"center\"><input type=\"submit\" value=\"Download Export\" class=\"button\"></div></form>' 
You will find it at line 2314 of the original file.
This didn't work for me!
Reply With Quote
  #461  
Old 10-09-2006, 02:08 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by teepeg
Hi, how do i go about fixing this, as i have the same problem.

Thanks
Search quiz.php for $vboptions and replace it with $vbulletin->options
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07575 seconds
  • Memory Usage 2,328KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (4)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete