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)

Chris M 07-02-2002 06:19 PM

@Josh...

Ive made 2 Quizzes @ The Lyceum...

The Lyceum Quizzes

@TWTCommish - Great hack...Installed with no problems...

Just a suggestion for the next version...

Could you sort of add an extra bit, where it shows how many Quizzes you have made in your Profile? Or, better still, instead of linking to the Maker's name in the Quiz Profile, could you instead link to some sort of Quiz Profile page, where it shows how many Quizzes whoever has made, and put them in a Top 10 Ranking kinda thing?

Satan

JoshFink 07-02-2002 06:22 PM

Now, how do we actually go about sending quizzes to each other? :D

Josh

Chris M 07-02-2002 06:22 PM

Quote:

Originally posted by Hollenthon
I saw the quiz powered by vBulletin and I have the following question.

It's possible for "the quiz" to track the score of a user in all the quiz that he participate ?

So, if a user take 3 differents quiz I will be able to see the overall score in this 3 quiz ?

I need that because I what to make many quiz within a month and the overall winner will receive a price.

Thanks.

Hollenthon - Just look at each Quiz, and find that Username...Then add up their scores and take an average...

Quote:

Originally posted by Smoothie
TWTCommish-

Do you think there will be an update to this fine hack to allow members to submit quizzes? :)

Smoothie - Yes...This would be a great addition...I recommend this, but also make it so they have to be approved...

Satan

Chris M 07-02-2002 06:23 PM

Hmmm...

How about I email it to you?

Satan

Chris M 07-02-2002 06:32 PM

Emailed...

Satan

Rose 07-02-2002 07:58 PM

Quote:

Originally posted by TWTCommish
The problem is not with the hack...the problem is with vB 2.2.5 (and other earlier versions, I think), which has a compatibility problem with newer versions of PHP. Upgrading to 2.2.6 should do the trick.

Thanks, TWT! It worked like a charm. :)

Hollenthon 07-02-2002 10:36 PM

Quote:

Originally posted by hellsatan


Hollenthon - Just look at each Quiz, and find that Username...Then add up their scores and take an average...

Satan

Culculate the avrage of 300 users: hell of a job !

Gazer 07-03-2002 08:09 PM

Hmmmm this is what i get trying to install this hack

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: Wednesday 03rd of July 2002 05:05:10 PM
Script: http://www.world-of-digital.com/forums/forums/quiz.php
Referer:

Does this mean anythink to anyone cheers
I have tried both quiz.php files
Plus i tried it on my test board 2.2.6 and its the same.

This is were it is: http://www.world-of-digital.com/forums/quiz.php

Regards Gazer.

TWTCommish 07-03-2002 08:57 PM

I don't mean to be rude, but if you'd read the instructions.txt file you'd know exactly how to fix that error.

Chris M 07-03-2002 08:59 PM

Lol...

Yes...The instructions do tell you how to correct some errors that might occur, but there should be no hassle on 2.2.6...

Satan

Gazer 07-03-2002 09:10 PM

Right this is the text file i have.
but i can't find anythink about this error in there,

is this the right text your on about

Regards Gazer.

Chris M 07-04-2002 10:24 AM

Have you ran the install_quiz.php file?

Satan

Chris M 07-04-2002 10:26 AM

TWTCommish...

I have another Suggestion...

Could a custom failure/passing message be made?

I.e. - I have a Star Wars Quiz, and Id like the Star Wars failure message to be something like :

You have failed me for the last time, my young apprentice...

And the passing message to be something like :

Well done my young apprentice...May the force be with you always...

Possible?

Satan

Gazer 07-04-2002 10:56 AM

Quote:

Have you ran the install_quiz.php file?
How can i run it when iam getting: Invalid SQL: SELECT quizid, quiztitle, description, timestamp, userid, catid, imagename
FROM quiz :confused:

Regards Gazer.

Chris M 07-04-2002 01:34 PM

Because the "install_quiz.php" file is the file that installs the "quiz" table...

You have to run it as part of your installation...Upload it to the admin folder, and then type the url to it...Follow the instructions, and then it should work:)

Satan

pgowder 07-04-2002 02:00 PM

Repost:

Is there a way to have percentages and not scores show up in high scores?

xug 07-05-2002 03:36 AM

TWTCommish, One Cool Hack!!

Would be cool to see in future release or addon for this release where we can edit the images in an easy way, I have to jump into my database.

Logician 07-06-2002 11:22 AM

I have recently found time to check it out and I'm impressed. Very nice and valuable addition to vb and it's very obvious that many hours committed for coding and developing this major project.

Everything seems fine in my local test board installation and I also want to mention that installation is designed very nicely and it's very easy and smooth for such an advanced hack.

Congratulations.. :)

Logician

GrayFOX 07-07-2002 09:48 AM

can somebody tell me how to make a quiz?
I have trie it but it's didn't runs.
If I create a Quizzes and now I want to make a question it fals.
can somebody help?

Smoothie 07-07-2002 04:23 PM

Quick question. Can vBQuiz be used as a stand alone quiz file, independent of vBulletin? If so, how?

Itworx4me 07-08-2002 12:42 AM

TWTCommish, How hard would it be to add a image to the quiz? I want to use an image of a person and have them guess who the picture is.

morrow 07-08-2002 07:56 PM

I've installed this hack but when I try to run the admin, I get a blank page. Any suggestions?

Thanks in advance!

bitbender 07-09-2002 12:03 AM

TWC - OUTSTANDING hack - I've been following along for a month. Installed yesterday - Functional today - VB 2.2.3 !!

Thank you very Much !!

There are oodles of free quizzes to be had, by just doing a "google" search on quizzes.. You will have to 'make' up incorrect answers for the questions, and that can take some research, but I know my members will love it !!

Demascus 07-09-2002 08:10 PM

WOW TWT,

Good hack!!! I read the instructiobns properly, followed them to the letter, and it worked 1st time for me.

Only thing I had to do is link to the quiz from my header template, which is of coutrse basic.

I bet you don't write an update though, not after 29 pages of people asking the same questions, some that were explained in the instructions.

Infact, I'd be suprised if you ever post a hack again man!

Damn fine work!

bitbender 07-09-2002 08:17 PM

Thats a Fact, I agree, Demascus !!

I do have one question, thou.. from analysis of the adm_index code, it seems fairly simple to open it up for mods...
Or am I exposing something bad by changing that first require statement ? I tried it on my test server, and it worked well from the forum/mod/ folder, and allowed my dummy mod username to perform all functions...

thanks, Bits

Smoothie 07-09-2002 09:02 PM

I would interested in what code you have to change (if any) to allow mods, or even a certain user group to add quizzes.

Anyone?

bitbender 07-10-2002 12:02 AM

well, if TWTcomish says what I did was ok, Is fine with me, but imo, I did it clumsy, and redundant. I read thru the admin_quiz.php code and saw how it was doing it's outside directory references. In my "limited" knowledge, that seemed to be the only problem it was going to have in it's execution, if it were copied to the /mod folder for access via MOD Cp .

My board uses PHPortal as a front end, so I was able to alter the copy of admin_quiz.php I put in the /mod folder, nd it seemed to work. I tested it using a username who is SUPERMODERATOR usergroup on my test server.

WHAT I changed was the require statement for the globals..

from:
Quote:

require("./global.php");
To:
Quote:

require("$nukeurl/BBF/admin/global.php");


Be kind...Career Programmer, but relative n00b to PHP..Just 9 months young...

RobAC 07-10-2002 04:26 PM

Chris,

Any progress on adding a comment field in addition to the answers as I described previously?

-Rob

CFde 07-12-2002 12:53 AM

The hack ist great and workes fine for me. But as said before I think the hardest and easiest quiz funktion says nothing without a percentage scoring. Is this addition to hard to do for version1 of the hack ? But again - its one of the best addition for vBB !

Quote:

Originally posted by Martin64
Here's the attached instructions, please backup your files before starting :classic:
workes great - can you also make an addion witch display the latest new quiz below the easieast and hardest quiz on forumhome ?

bitbender 07-12-2002 03:34 PM

For those wanting to use the quiz entry outside the admin range, wait for VBquiz 2.0. The method I used was unreliable, and unrepeatable on my live server.

The differences between my two environments are the PHP level, and Red Hat levels, but moreso the fact that the rack I lease uses Ensim as a domain manager, and it file system mapping is very different than my test server. The global includes are not processing the same as they do on my local server, so the script just flushes thru; none of it's IF statements are true.

I am still trying to find out why it works ok locally (test server), but I didnt want to mislead anyone by my earlier post (#428).

Rather than hack apart a manificent piece of work as this, I'll defer until the authors publish an upgrade.

I apologize if I have wasted anyones time, other than my own..

CFde 07-12-2002 05:05 PM

Another question - is it possible to display on the frontpage of quiz.php (where the latest quizzes, Categorys, easyest und hardest quiz is) below easiest and hardest quiz the following:

"Last Quizzers"
Username - Quiz
User DRF did Testquiz
User ETF did The movie Quiz
User blabla did Star Wars Quiz
....

How can I do this ?

CFde 07-14-2002 10:01 PM

Here are some other very usefull things fors the quiz witch came from my forum users.

1. Links on on Correct/Incorrect Page: It should be possible to name a link on the correct/incorrcet page. Where the Quizzers can find and prove the right answer.

2. Commentarys on Correct/Incorrect Page: same as above. Quizmakers should there can describe the correct answer. Maybe you can put 1 and 2 into 1 Field.

3. Question Statistik: so that quiz creators can see how often (in %) a question was solved correct or incorrect.

4. Quiz Rating: User should have the option to say how they liked the quiz. This could be done like thread rating or in a scale from A to F like in school

Thanx - the quiz is booming on my board.

TWTCommish 07-16-2002 06:27 PM

I'd like to respectfully ask the people reading this to PLEASE keep all requests for support within this thread...I cannot offer support via email, PM, or IM. If I did, it wouldn't be long at all before I found myself spending more time troubleshooting with people than I I'd spent on the hack itself, by far.

Read the instructions included with the hack, and read through the thread if need be.

Thank you. :)

xug 07-17-2002 10:11 AM

TWTCommish

Could you make a quick fix so that when I want to edit a quiz to change the image I can do it through the edit template instead of me going into the database??

Maybe a cool idea for a future release is to be able to set a limit for the image and/or a trick that uses image_magick which resize the image to the limit that is set.

bandersen 07-18-2002 08:49 PM

can someone please let me know how guests can view the quiz page, but not go any further and take the quizzes? Now, the log in page shows right away.... I would want them to see some more and have them sign up to take the quiz.

Velocd 07-18-2002 09:30 PM

I'm not sure if this will just remove it from the main quiz page, or all of them, so you'll have to try..

In quiz.php, remove the
PHP Code:

if ($bbuserinfo[userid]==0) {
  
show_nopermission();


But if my assumptions are correct, it might remove it from all pages....

Dean C 07-19-2002 02:29 PM

ive done a fresh intall of this...

and it ran fine... i have had no errors anywhere.... but none of my templates were added :(...

bandersen 07-19-2002 04:22 PM

Quote:

Originally posted by Velocd
I'm not sure if this will just remove it from the main quiz page, or all of them, so you'll have to try..

In quiz.php, remove the
PHP Code:

if ($bbuserinfo[userid]==0) {
  
show_nopermission();


But if my assumptions are correct, it might remove it from all pages....


Yes, you are right..... it did. Anyone know where I should put it in again to remove the log in on the main quiz page, but keep it on the following pages?

I still get 99/101% when I score a 100%....

king sting 07-19-2002 09:02 PM

i just have a simple question.. maybe yall think i'm stupid.. but i installed everything and its all there.. but i dont know where to go to add a quiz.. in the vbulletin options it allows me to change like the amount of questions and stuff.. but where do i add a quiz at? and it allow people to take the quiz do i somehow have to link www.mydomain/forums/quiz.php to a forum on the board? uhh.. damn my head hurts.. haha.. anyhelp would be great! :nervous:

dprice 07-20-2002 04:15 AM

I re-ran the install_quiz.php to add quiz templates to my main default template.

I accidently hit Step 2 and now I have TWO [Quiz Options] in the VB Options. Where do I go to remove the second addition?

Thanks


All times are GMT. The time now is 09:57 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.01965 seconds
  • Memory Usage 1,832KB
  • 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
  • (2)bbcode_php_printable
  • (9)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