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)
-   -   Inferno Quiz v2.2 (https://vborg.vbsupport.ru/showthread.php?t=83130)

Mark.B 10-02-2006 10:39 AM

I am using 3.6.1 and I can approve, reject, open and close quizzes without any problems.

amykhar 10-02-2006 02:58 PM

Quote:

Originally Posted by Icehawk002
Inferno Quiz 2.2 vb 3.6.1

When a quiz image is uploaded it appears in admin and is present in the quiz image folder on server, but when viewing quizzes the images are dreaded red x boxes.

Help anyone?

your problem is addressed within the thread.

somasimple 10-03-2006 10:54 AM

Hello All,

Is there a tutorial that tells how to write the questions/XML file?

Thanks.

OrangeFlea 10-03-2006 11:41 AM

Amy, did you figure out how to address the apostrophe bug issue (when creating quizzes)? I can set up quizzes just fine while keeping them in mind, but I'm 100% sure that the members from the forum will be confused.

amykhar 10-03-2006 12:19 PM

The apostrophe bug was fixed somewhere in either this thread or the 3.0 one. If I recall correctly, I posted it in the 3.0 version thread.

Paul M 10-03-2006 02:32 PM

Quote:

Originally Posted by Icehawk002
Inferno Quiz 2.2 vb 3.6.1

When a quiz image is uploaded it appears in admin and is present in the quiz image folder on server, but when viewing quizzes the images are dreaded red x boxes.

Quote:

Originally Posted by amykhar
your problem is addressed within the thread.

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[]. :cool:

Mark.B 10-03-2006 02:47 PM

Quote:

Originally Posted by amykhar
The apostrophe bug was fixed somewhere in either this thread or the 3.0 one. If I recall correctly, I posted it in the 3.0 version thread.

Have to confess, I can't find it. I've looked extensively through both threads, and also searched in the threads for "apostrophe" and "quotes" to no avail.

OrangeFlea 10-03-2006 05:04 PM

Quote:

Originally Posted by Mark.B
Have to confess, I can't find it. I've looked extensively through both threads, and also searched in the threads for "apostrophe" and "quotes" to no avail.

An updated file was provided in the 3.0 thread, with the fix, but that was for 3.0.

murrtex 10-03-2006 05:07 PM

this versiyon works fine on 3.6.1. I use...

somasimple 10-04-2006 05:29 AM

Quote:

Originally Posted by somasimple
Is there a tutorial that tells how to write the questions/XML file?

Forget!

BTW, the "export a quiz" doesn't work on 3.6.1 version. It brings the login window continuously. :tired:

OrangeFlea 10-06-2006 12:33 AM

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.

ZAG 10-06-2006 08:35 AM

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.

Mark.B 10-06-2006 09:30 AM

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.

OrangeFlea 10-06-2006 10:24 AM

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?

Mark.B 10-06-2006 11:17 AM

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.

OrangeFlea 10-08-2006 06:00 PM

I might as well uninstall the hack, if that's the case. It's a pretty significant bug. Oh well.

49er 10-09-2006 12:33 AM

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[]. :cool:

Hi, how do i go about fixing this, as i have the same problem.

Thanks :)

MotMann 10-09-2006 11:40 AM

Does it work on vB 3.6 ?

49er 10-09-2006 02:02 PM

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!

Paul M 10-09-2006 02:08 PM

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

ZAG 10-09-2006 02:26 PM

Quote:

Originally Posted by teepeg
This didn't work for me!

Sure you have a version 3.6.x?
Your Profile says 3.5.2 !

49er 10-09-2006 09:33 PM

Quote:

Originally Posted by ZAG
Sure you have a version 3.6.x?
Your Profile says 3.5.2 !

Ahh Sorry, Yes i have 2 forums, and i am talking about the 3.6.1 version. :surprised:

49er 10-09-2006 09:34 PM

Quote:

Originally Posted by Paul M
Search quiz.php for $vboptions and replace it with $vbulletin->options

Thats Good, Thank You. ;) Except the one on line 164 as this gave me an error.

Paul M 10-09-2006 10:55 PM

Ah, the one in the global - that one could just be removed.

OrangeFlea 10-13-2006 06:23 AM

Sigh, I've created too many quizzes to just delete this, but I desperately need a fix to this apostrophe issue for 3.5.

Willing to pay to have someone fix this, PM me.

amykhar 10-13-2006 11:02 AM

my code is so totally different that I can't begin to tell you what line or even what function to look for. But, to fix your apostrophe problems, all you have to do is use trim and addslashes on any text input that's going to be put in the database. Find where the quiz name or title variable is. Before it goes into the database, do something like this (appropriate variables of course)
Code:

$title = $trim(addslashesa($title));
Do the same thing for the questions, descriptions and the options - ANY text that's going to be inserted in the database.

bairy 10-13-2006 11:16 AM

Quote:

Originally Posted by amykhar
Code:

$title = $trim(addslashesa($title));

Should that not be: ?
Code:

$title = trim(addslashes($title));

Snake 10-14-2006 12:08 AM

Looks like there is a lot of bug fixes to implement. Damn! >_<

OrangeFlea 10-14-2006 03:30 AM

Quote:

Originally Posted by amykhar
my code is so totally different that I can't begin to tell you what line or even what function to look for. But, to fix your apostrophe problems, all you have to do is use trim and addslashes on any text input that's going to be put in the database. Find where the quiz name or title variable is. Before it goes into the database, do something like this (appropriate variables of course)
Code:

$title = $trim(addslashesa($title));
Do the same thing for the questions, descriptions and the options - ANY text that's going to be inserted in the database.

Code:

        $to            = $DB->query_first("select username, userid from ".TABLE_PREFIX."user where userid='{$to}'");
        $DataManager_PM =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
        $DataManager_PM->set('fromuserid', $to['userid']);
        $DataManager_PM->set('fromusername', $to['username']);
        $DataManager_PM->set('title', $title = trim(addslashes($title));
        $DataManager_PM->set('message', $message = trim(addslashes($message));
        $DataManager_PM->set_recipients($to['username'],$to['permissions']);
        $DataManager_PM->set('dateline', TIMENOW);
        $DataManager_PM->save();
        }

Thanks for the assist, Amy. I did as you have said but I get a syntax error. Is this right?

bairy 10-14-2006 04:23 PM

You missed a ) at the end of the title line:

$DataManager_PM->set('title', $title = trim(addslashes($title)));

OrangeFlea 10-15-2006 04:08 PM

Besides those two spots, what other lines need to be adjusted. I'm not finding the question submission line in the file.

Quote:

Do the same thing for the questions, descriptions and the options
Thanks for your assistance

Cornie 10-18-2006 05:56 PM

sorry for my english,

I have 3.6.2 version. Inferno Quiz is not work for this??

Error message
The following mistake has appeared: Their user group does not have to take part the authorisation in this quiz. Please, register or log in.

If somebody can help me

Cornie

OrangeFlea 10-19-2006 08:28 PM

Still having problems with the apostrophe issue. Can someone paste their quiz.php code (for vB 3.5) if they have it fixed?

Snake 10-22-2006 08:27 PM

Dump!

OrangeFlea 10-24-2006 11:11 PM

Willing to pay for someone to fix the apostrophe issue with my quiz

RobFerrari 11-14-2006 12:51 AM

I'm not getting the quiz image to appear. I upload the image and it shows in the admin cp, but when I open the quiz nothing is there. Any hints?

Also, any way to put images into the question?

Thanks,
rob

catfish_pete 11-21-2006 03:19 PM

Hi,

There’s a problem on my site, where when you answer the questions and click on “Submit” it sends you to this error page:


Fatal error:
• The text that you have entered is too long (12182 characters). Please shorten it to 5000 characters long.
Unable to proceed with save while $errors array is not empty in class vB_DataManager_PM in /includes/class_dm.php on line 763 ”

Is this to do with how long the questions/answers are? Help would be appreciated with this.

kafi 12-10-2006 09:05 AM

Inferno QUIZ is awsome :-)

Is it possible to run this quiz with different that default style? I want to use dedicated style with different colors for this...

THANKY!

Cornie 12-16-2006 05:19 PM

Can I also insert pictures in the questions? If how?

MotMann 12-16-2006 11:06 PM

Thank you Cornie ;)


All times are GMT. The time now is 07:41 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.03802 seconds
  • Memory Usage 1,848KB
  • 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
  • (9)bbcode_code_printable
  • (4)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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