vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBQuiz 1.0 (https://vborg.vbsupport.ru/showthread.php?t=39719)

Dark_Wizard 06-11-2002 06:28 PM

Hmmm...getting this error trying to take the quiz:

Fatal error: Unsupported operand types in /home/domain/public_html/gw/forums/quiz.php on line 350

Sigon 06-11-2002 06:30 PM

I did the first step over again and nothing. This is reaaaaaly annoying me. :(

TalkHardRandy 06-11-2002 06:31 PM

I'm getting the same error as Dark_Wizard - quizes are created, but when you click on the "Take This Quiz" button... boom!

Any ideas?

Sigon 06-11-2002 06:32 PM

You can see my blank page here: http://forums.lotronline.com/quiz.php
The templates did not install correctly.

TWTCommish 06-11-2002 06:33 PM

dm: can you attach your install_quiz.php file to a post here? Maybe it got messed up somehow...

Dark_Wizard: I think you're running a different version of PHP than I am. Use the attached quiz.php file in place of your current quiz.php file, and I think it should do the trick.

TWTCommish 06-11-2002 06:35 PM

Can someone having problems with their templates please upload their install_quiz.php file? It should work...I've had several people try it out.

-=dm=- 06-11-2002 06:35 PM

ok here ya go :)

removed

TalkHardRandy 06-11-2002 06:36 PM

I uploaded that new quiz.php, same error...

Sigon 06-11-2002 06:37 PM

Gone

bandersen 06-11-2002 07:02 PM

This is cute... I will install soon!

Harryli 06-11-2002 07:27 PM

I have setup a testquiz, but if I hit "Take this quiz" I get "Error: invalid quiz specified."... see at

http://www.schatzjagd.org/Forum/quiz...zid=1&taking=1

TWTCommish 06-11-2002 08:02 PM

I stand correged, Sigon: you should probably remove that post. It's making this page of the thread lag like CRAZY.

TalkHardRandy: same error on the same line? Either way can you post the line in question, as well as 3 lines before and after it? I want to make sure we're dealing with the same thing here.

Harryli: sounds like you didn't add any questions to your quiz. :)

NOTE: to those of you having trouble with the templates...I'm 99% sure that the script is working exactly as intended...however, it assumes that you don't have multiple style sets in place. If you do, well, let me know...so I can confirm that that is indeed the problem, and offer up a fix.

-=dm=- 06-11-2002 08:08 PM

I have 2 styles on my vB.

Harryli 06-11-2002 08:09 PM

Hm, just proved it and did:

choose "Add questions", Added a Questions (some letters) and "1" Answer, for Quiz "neu". Then I tried to modify this, choosing "Qui, Questions, modify, Quiz "neu", and ... no questions found... ???

TalkHardRandy 06-11-2002 08:23 PM

Okay... error is:
Quote:

Fatal error: Unsupported operand types in /usr/local/plesk/apache/vhosts/talkhardonline.com/httpdocs/quiz.php on line 350
Okay here are the lines with 350 in red:

while ($answer = $DB_site->fetch_array($answers)) {
$color = ($color_num++ % 2) ? '{secondaltcolor}' : '{firstaltcolor}';
$answer[answertext] = bbcodeparse($answer[answertext]);
eval("\$answerbits .= \"".gettemplate("quiz_answerbit")."\";");
}

$question_number = $HTTP_POST_VARS["question"];
$answer_count = $DB_site->num_rows($answers);
$num = $HTTP_POST_VARS["question"] + 1;

eval("dooutput(\"".gettemplate("quiz_question")."\ ");");
exit();

Any ideas?

Hard_one 06-11-2002 08:45 PM

Code:

Database error in vBulletin 2.2.5:

Invalid SQL: SELECT quizid, quiztitle, description, timestamp, userid, catid, imagename
                                FROM quiz
                                WHERE approve = 1
                                ORDER BY timestamp DESC
                                  LIMIT
mysql error: You have an error in your SQL syntax near '' at line 5

mysql error number: 1064

Date: Tuesday 11th of June 2002 11:23:15 PM
Script: http://xxxx.xxx/quiz.php
Referer:

can anyone help please ?

Sigon 06-11-2002 08:47 PM

I have multiple styles. m8 we reeeeeealllly need this fixed.

-=dm=- 06-11-2002 08:55 PM

ok I have just tried it on a new board everything working perfect :)
it was the multiple style which was causing the problem.

how can I fix this on my public board?

-=dm=- 06-11-2002 08:58 PM

Hard_one I think u have to go to the
--> admin cp --> vBulletin Options-->Quiz Options-->at the bottom save changes.
I got this error and I did that :)

TWTCommish 06-11-2002 09:00 PM

I'm afraid I don't understand what you're saying, Harryli.

Hard_one: I don't mean to sound rude, but if you'd read the instructions, you wouldn't have run into that problem. :) db is correct.

As for the templates: I'll get to work on that tonight. The solution should be rather simple.

-=dm=- 06-11-2002 09:16 PM

TWTCommish
hmm...I dont see this window...
http://www.movieforums.com/upload/vb...dquestions.jpg

bandersen 06-11-2002 09:22 PM

I have now installed - on 2.2.5 - and everything went OK. Very cute hack!

One thing tho.... I am looking for the window with the answers too :) I only get to type the question, add how many answers I want... thats it.

TWTCommish 06-11-2002 09:22 PM

Under "Quiz Questions" click "Add" -- then pick your quiz from the dropdown menu and enter into the two boxes above how many questions you want to add, and how many answers each question should have. Hit submit and you'll get a page like that one.

-=dm=- 06-11-2002 09:26 PM

ahhh yes :) thanx

so now Im going to copy aaaalllllllll the quiz templates one by one to my public board :(

TWTCommish 06-11-2002 09:27 PM

Naw, don't do that. I'll have a mild modification for you tonight that'll save you the trouble.

zootsuit 06-11-2002 09:30 PM

Any idea about TalkHardRandy's error?

<looking on hopefully>

TWTCommish 06-11-2002 09:36 PM

Yeah, I'm pondering. I'll let ya'll know if I can figure out what's wrong.

bandersen 06-11-2002 09:44 PM

Quote:

Originally posted by TWTCommish
Under "Quiz Questions" click "Add" -- then pick your quiz from the dropdown menu and enter into the two boxes above how many questions you want to add, and how many answers each question should have. Hit submit and you'll get a page like that one.

Ohhh....yes, it's working now! I typed the question.... :cheeky:

I also got the same error as TalkhardRandy.

ceo_tfw 06-11-2002 10:00 PM

I have installed the quiz and I had both errors, one was with database error

[sql]
Invalid SQL: SELECT quizid, quiztitle, description, timestamp, userid, catid, imagename
FROM quiz
WHERE approve = 1
ORDER BY timestamp DESC
LIMIT
mysql error: You have an error in your SQL syntax near '' at line 5

mysql error number: 1064
[/sql]

and now I have a blank quiz.php

the templates did not install and I am on version 2.2.6 php
I have re-uploaded the install file and still no go, otherwize the admin functions are working great, just the templates :(

CloudSlash 06-11-2002 10:03 PM

right now we have about 10 quizes at

www.fflounge.com/board/quiz.php

Dark_Wizard 06-11-2002 10:08 PM

Quote:

Originally posted by TWTCommish
dm: can you attach your install_quiz.php file to a post here? Maybe it got messed up somehow...

Dark_Wizard: I think you're running a different version of PHP than I am. Use the attached quiz.php file in place of your current quiz.php file, and I think it should do the trick.

Tried it and same thing....also I'm using PHP 4.1.2

ceo_tfw 06-11-2002 10:29 PM

My version of php is v4.1.2

here is the install for mine

Dark_Wizard 06-11-2002 10:43 PM

Quote:

Originally posted by ceo_tfw
I have installed the quiz and I had both errors, one was with database error

[sql]
Invalid SQL: SELECT quizid, quiztitle, description, timestamp, userid, catid, imagename
FROM quiz
WHERE approve = 1
ORDER BY timestamp DESC
LIMIT
mysql error: You have an error in your SQL syntax near '' at line 5

mysql error number: 1064
[/sql]

and now I have a blank quiz.php

the templates did not install and I am on version 2.2.6 php
I have re-uploaded the install file and still no go, otherwize the admin functions are working great, just the templates :(

Go to vbulletin options then to quiz and set your options then click submit...as for the templates I can copy mine and you can install from that...

TWTCommish 06-11-2002 10:55 PM

ceo: I don't mean to be rude, but PLEASE read the instructions.txt file...it warned of that error potentially coming up, and tells you how to fix it.

I'm working on the template problem. It should only be happening to those of you not using the default template set. I'll have something shortly.

Sigon 06-11-2002 10:57 PM

I am not using the Default. But it is the only selcetable one on my forums. Maybe you could also just give us a txt file with the templates?

TWTCommish 06-11-2002 11:05 PM

Here's a new install_quiz.php file. Here's how it can help you (I hope :D): find out what the templatesetid is for your primary template set. Then, instead of going to this URL to insert the templates...

http://www.yoursite.com/forums/admin...uiz.php?step=1

...go to this one...

http://www.yoursite.com/forums/admin...step=1&setid=X

"X" of course should be replaced by the templatesetid number. Of course, you'll need the attached file in place of the old one, too. Let me know if it works. :)

Sigon 06-11-2002 11:09 PM

w00t! it works! http://forums.lotronline.com/quiz.php
THanks man!

-=dm=- 06-11-2002 11:12 PM

TWTCommish I copied one by one :D

everything working fine,No errors, I love this hack :)

Thanx alot for your time, now I?ll surf around and look for some quizzies I can add LOL

thaaaanx :)

TWTCommish 06-11-2002 11:12 PM

Woohoo! Thank goodness. LOL.

Glad you dig it. Lemme know if you run into any other problems.

TWTCommish 06-11-2002 11:13 PM

You did them by hand? I'm a little confused...didn't they have all those annoying slashes before the quotes and everything?


All times are GMT. The time now is 08:37 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.01846 seconds
  • Memory Usage 1,816KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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