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)

alensaan 06-16-2002 06:11 AM

I dont know how to ran the install_quiz.php file?

alensaan 06-16-2002 06:54 AM

X-Fan

can u help

cdcopyworld 06-16-2002 08:36 AM

My quiz question are not saving:( i keep getting "Error: invalid quiz specified." when i go to take a quiz.

anyone know whats wrong?

thanks

Dean C 06-16-2002 08:55 AM

im still having problems with my templates :(...

TWTcommish - can you attach a file with all the templates as .txt files so i can add them again plz ...

thanks in advance

josh929 06-16-2002 09:07 AM

when trying to run install_quiz.php i get:
Code:

Fatal error: Call to undefined function: cpheader() in /home/somegood/public_html/forums/install_quiz.php on line 4
any ideas about what's wrong?

alensaan 06-16-2002 10:48 AM

please,
whats the procedure of runing the install_quiz.php file?

or

where i can find the information about that?

bandersen 06-16-2002 10:59 AM

You upload the install_quiz.php file according to instructions (/root/admin)... and then type in that path in your browser....

Robert Basil 06-16-2002 09:06 PM

Quote:

Originally posted by Mist
im still having problems with my templates :(...

TWTcommish - can you attach a file with all the templates as .txt files so i can add them again plz ...

thanks in advance

I agree, I am having the exact same problem.

Can someone give us a text file with the templates so we can add them by hand?

bandersen 06-16-2002 09:23 PM

Perhaps it's possible to open the intall_quiz.php in an editor and cut/paste the template from there......

Quote:

Originally posted by Sportbikeworld


I agree, I am having the exact same problem.

Can someone give us a text file with the templates so we can add them by hand?


Boofo 06-16-2002 09:27 PM

I went ahead and un-installed this hack until someone can find a fix for it. :)

Shokkka 06-16-2002 10:29 PM

how do u "un install" it???

in my vb options theres the "vbquiz" thing 6 times wtf...

TWTCommish 06-16-2002 11:09 PM

Shokkka: sounds like you ran one of the steps of the installation script way too many times. :)

Roxie 06-16-2002 11:13 PM

Everything installed successfully, but when I go to the quiz.php page I get this error:

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: Sunday 16th of June 2002 08:07:33 PM
Script: http://odb.dayum.net/quiz.php
Referer: http://209.51.131.194:2086/scripts/command

josh929 06-16-2002 11:15 PM

Quote:

Fatal error: Call to undefined function: cpheader() in /home/somegood/public_html/forums/install_quiz.php on line 4
Can anybody at all tell me what's wrong????

TWTCommish 06-16-2002 11:18 PM

Roxie: please read the instructions.txt file. It tells you how to deal with that, specifically.

Josh: upload the install_quiz.php file to your /admin folder, not your root folder. :)

Shokkka 06-16-2002 11:33 PM

so twt how do i get rid of the 6 things in my vb options and how do i find out he tablesetid number???

i really wanna get this installed but... i need to know that number is :/

so if u could help maybe lol thats be great

TWTCommish 06-16-2002 11:41 PM

You find out the templatesetid number by looking at your template sets and holding your mouse over the one you're using as your default. Around the end of the URL, you should see something like this:

templatesetid= -- after this, there should be a number. That's the one you want.

As for getting rid of the vB options groups: I'd start from scratch. Delete any templates you have and run this query on your DB:

DELETE FROM settinggroup WHERE title ='Quiz Options'

Then run this query (beware: this may not work proerly if you have certain other hacks installed):

DELETE FROM setting WHERE settinggroupid = 99;

Roxie 06-16-2002 11:55 PM

doi! Thanks.

josh929 06-17-2002 12:15 AM

TWTCommish: has the 350 error been fully resolved yet?

should I even try this (see below link), or wait for a further update?
https://vborg.vbsupport.ru/showthrea...155#post261155

Thanks.

josh929 06-17-2002 01:11 AM

also:
Quote:

Your Score: 3 of 3 (99%)
Has this been resolved? Seems like it would be a quick fix.
:)

zootsuit 06-17-2002 04:56 AM

Unfortunately, we uninstalled it too... still having the problem with the questions either not showing up or showing up on the wrong page or both.

Robert Basil 06-17-2002 07:22 AM

I agree, this hack should have stayed in the Beta faze a while longer. Unfortunatly we are going to remove this from our community. :(

But thanks for all your hard work TWT, we hope to be able to get back to using your hack once some of the issues are resolved. :)

Shokkka 06-17-2002 10:57 AM

I got mine working just i got 6 vbquiz things in my vb options lol

and the tables are all screwy and theres so many of em

RobAC 06-17-2002 01:45 PM

This is an AWESOME hack and I've been looking for something like this for a long time.

The only suggestion I have is to allow a space where you can add in an explanation to an answer. In other words, offer a small explanation to the correct answer. Basically, this would just be another text field in the admin quiz panel.

-Rob

Roxie 06-17-2002 01:54 PM

I get this nasty error when clicking the take the test button:

Fatal error: Unsupported operand types in /home/dayum/public_html/odb/quiz.php on line 350


I apologize if this has been posted by someone else. This thread is long!

Roxie
http://odb.dayum.net

TWTCommish 06-17-2002 02:03 PM

Roxie: it has indeed. I'll be posting a fix just as soon as I can climb out from under my other obligations. Hopefully today or tomorrow.

Rob: excellent idea for the next version. 2.0 should be pretty flippin' cool if I can find time to implement all the ideas being bandied about in this thread!

Dean C 06-17-2002 03:29 PM

can we have the templates in a zip file please cuz i need to revert to my original templates for the quiz... ?? :D

Shokkka 06-17-2002 09:02 PM

how the hell do i get ridof the 6 things in my VB options :/

TWTCommish 06-17-2002 09:04 PM

I already replied to that, I think.

josh929 06-17-2002 09:07 PM

anyone know how to fix the 3 of 3 = 99% error?

TWTCommish 06-17-2002 09:09 PM

Replace this...
PHP Code:

    $base round(100 $question_count);
    
$pct  $totalcorrect $base

...with this...
PHP Code:

    $base 100 $question_count;
    
$pct  ceil($totalcorrect $base); 


josh929 06-17-2002 09:21 PM

will that make the percentage too high for other quizzes?

TWTCommish 06-17-2002 09:22 PM

All it does is round up to the nearest percentage.

Joeri Blunt 06-17-2002 09:29 PM

Great, now I hope you only fix the go to question 2 bug... ;)

Shokkka 06-17-2002 10:38 PM

Quote:

Originally posted by TWTCommish
I already replied to that, I think.
yea u did but could u explain in english? is all this stored in a mySQL table? or is it stored in a PHP file?

TWTCommish 06-18-2002 01:41 AM

It's in a MySQL table.

Everyone: if you're having problems with the 350 line error, or were before, try the attached quiz.php file and please let me know if it works.

Boofo 06-18-2002 01:58 AM

ok, I re-installed to try this one more time. :) It shows the answers to the questions but still does not show the questions when taking the quiz. No more errors though.

Quote:

Originally posted by TWTCommish
It's in a MySQL table.

Everyone: if you're having problems with the 350 line error, or were before, try the attached quiz.php file and please let me know if it works.


TWTCommish 06-18-2002 02:02 AM

Are you still using the modified quiz_question template from where I tried to fix the bug before? :) If so, that'd explain why the question isn't showing.

Boofo 06-18-2002 02:05 AM

Ok, now you have me totally lost. What modified template? What post did you change that in? I thought I had been watching the thread pretty close, but it must have slipped by me. Hit me with it again and I will try it. :)

Quote:

Originally posted by TWTCommish
Are you still using the modified quiz_question template from where I tried to fix the bug before? :) If so, that'd explain why the question isn't showing.

TWTCommish 06-18-2002 02:08 AM

Open the quiz_question template, and replace this:

$questiondata[questiontext]

...with this...

$question[questiontext]


All times are GMT. The time now is 02:25 AM.

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.01654 seconds
  • Memory Usage 1,815KB
  • 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
  • (2)bbcode_php_printable
  • (7)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