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)

Hollenthon 08-08-2002 01:03 AM

It's possible to make a add-on that will do the compilation all the results of a user ? Will it be easy ?

Exemple, a user make 3 quiz and the script can give the overall result for that 3 quiz, by doing this we will be able to see the "best" user...

The quiz will be updated for vBulletin v3.0 ?

memobug 08-08-2002 06:51 AM

Greetings,

After reading through 33 pages of this and visiting some of the sites, I have to say GREAT HACK, but even better support.

I am wondering though: I saw two questions from users who wanted to insert images as part of the questions. One tried and couldn't (post 392-394) and another (post422) that asked the same question but no reply as yet.

Is embedding images (and having them show) in the Quiz question or answer possible, and has anyone done it successfully?

Regards,

Matt

Martin64 08-08-2002 11:32 AM

Quote:

Originally posted by memobug
Greetings,

After reading through 33 pages of this and visiting some of the sites, I have to say GREAT HACK, but even better support.

I am wondering though: I saw two questions from users who wanted to insert images as part of the questions. One tried and couldn't (post 392-394) and another (post422) that asked the same question but no reply as yet.

Is embedding images (and having them show) in the Quiz question or answer possible, and has anyone done it successfully?

Regards,

Matt

Yes, you can use images. Just use regular HTML in the quiz question. Example:

Code:

<img src="http://www.yoursite.com/images/quizzes/image.jpg">

kira 08-08-2002 10:12 PM

This is an amazing hack. Many, many thanks for creating such an inventive and fun add-on for our community!

I agree that it'd be great if scores could be totalled in percentages, rather than points alone. It makes the hardest/easiest quiz section a little quirky. But that's not a huge deal. All in all, I can't wait to bring this live on my forums! :D Thanks again!

zootsuit 08-11-2002 08:17 AM

Just wanted to say...a little late...that I love this hack. It didn't work too well in the beginning for us, but it turned out awesome...and I just wanted to say thanks! You're an awesome hacker! :)

sub 08-11-2002 12:35 PM

Cool hack!

One problem though, installed sweet but only thing that dont work correctly is adding questions, I add a question it seems to go though but when I try to view them its not there also when viewing the questions on quiz.php it does not appears there also. I went and looked at the database table its not there, itÂ’s like I never added it to the game.

I reinstalled it three times, still same thing. All templates installed, and tables installed. Followed directions 100%

Any thoughts?

Vb: 2.2.5
PHP: 4.0.6
MySQL: 3.23.36

Tim Wheatley 08-11-2002 07:39 PM

You have to make a quiz. The questions section is for editing quiz questions. Without a quiz there is nowhere for the questions to go.

Warlord 08-11-2002 07:44 PM

Is there a way to add this hack to your homepage instead of the forums?

I'm using vbulletin 2.2.6 and a portal from phpPortals and would love to install this hack on my homepage.

(I'm trying to attract more visitors to my homepage instead of the board itself).

sub 08-11-2002 08:03 PM

Quote:

Originally posted by Tim Wheatley
You have to make a quiz. The questions section is for editing quiz questions. Without a quiz there is nowhere for the questions to go.
Yes, I know and that?s the weird part because I've made the quiz and even approved it, I did many different combinations. The quiz questions never added no matter what I try.

Thanks! Anyone got ideas?

sub 08-11-2002 08:09 PM

Quote:

Originally posted by Warlord
Is there a way to add this hack to your homepage instead of the forums?

I'm using vbulletin 2.2.6 and a portal from phpPortals and would love to install this hack on my homepage.

(I'm trying to attract more visitors to my homepage instead of the board itself).

I belive there is an addon for this hack located here: https://vborg.vbsupport.ru/showthrea...threadid=42000

Not sure if thats what you wanted, but seems to be.

Warlord 08-11-2002 08:25 PM

I don't think that's really what I'm looking for, I want the actual quiz to be outside the vb folder.

The Movie Forums have it on their main page, but that's because they simply installed vbulletin on the main page, instead of http://domain.com/vb/quiz.php they have http://domain.com/quiz.php . So their vBulletin is actually on http://domain.com/index.php

Most every other board I've seen has a homepage at domain.com and the bulletin board itself is domain.com/vb (or domain.com/forums)

*Hopes this isn't too confusing*

sub 08-11-2002 09:44 PM

Quote:

Originally posted by Warlord
I don't think that's really what I'm looking for, I want the actual quiz to be outside the vb folder.

The Movie Forums have it on their main page, but that's because they simply installed vbulletin on the main page, instead of http://domain.com/vb/quiz.php they have http://domain.com/quiz.php . So their vBulletin is actually on http://domain.com/index.php

Most every other board I've seen has a homepage at domain.com and the bulletin board itself is domain.com/vb (or domain.com/forums)

*Hopes this isn't too confusing*

Edit the quiz.php to find the following:
PHP Code:

require("./global.php"); 

Replace that with:
PHP Code:

require("./forum/admin/global.php"); 

The /forum/ is your forums directory that the quiz.php is suppose to be at. I think that would allow that quiz to function in the root directory of your domain. You probably have to copy your logo to the root as well. That?s much info I can provide on how to access the hack from the root directory, if I'm wrong please correct me someone. :beard:

danrak 08-12-2002 03:17 AM

First of all, great hack. My members have really enjoyed it so far.

I've taken a quick look through the posts, but couldn't find the answer I was looking for. I was wondering if there was a where you can have a custom message at the end of the quiz. For example, say I have a quiz on networking. Say they fail the quiz. The end message would be something like:
Sorry, you have not passed the test. Your score was xx. If you would like to read more more on networking, visit url.

And kinda have it so whatever the subject is replace networking, have have a unique url for each quiz. Would this be possible?

Thanks.

Ryangel 08-12-2002 11:26 PM

Hi TWTCommish,

Could i edit your install script to suit my own needs for my hack?
I'll leave a note saying it was yours.

Ryan

TWTCommish 08-13-2002 01:42 PM

Sure. :)

UltimaKing 08-13-2002 02:31 PM

Hey, I'm installing this hack for someone and I followed the directions exactly and when I try to access the quiz page I get this error.

Database error in vBulletin 2.2.6:

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

Is there something wrong with the quiz.php file?

TWTCommish 08-13-2002 03:13 PM

No, there's nothing wrong with the file: you didn't read all of the instructions.txt file. :)

UltimaKing 08-13-2002 03:56 PM

haha, now I feel stupid.

Thanks a lot, and happy birthday!

Ryangel 08-13-2002 10:49 PM

Quote:

Originally posted by TWTCommish
Sure. :)
Thanks :)


Yeah, Happy Birthday!

TWTCommish 08-14-2002 01:32 PM

Thanks guys. :D

Vile 08-15-2002 08:16 AM

Ok, I had this badboy working great, but noticed it didn't work AFTER I installed VBPortal.

Anyone have any luck getting this working w/ VBPortal installed?

TIA.

bitbender 08-15-2002 11:30 AM

I do and it works fine!

sub 08-15-2002 08:33 PM

Quote:

Originally posted by TWTCommish
Thanks guys. :D
Hey TWTCommish,
I posted in this thread (post #487 and #490) for help, can ya check it out. Thanks dude!

markt 08-16-2002 07:24 PM

The quiz has not worked for me, since I installed vbPortal. I just get a blank page that says done.

Perhaps you might have some idea on how to get it back working???

Great hack, now gone.

Thanks Mark

ULTIMATESSJ 08-16-2002 07:44 PM

greatness

/me clicks install

indiamike 08-16-2002 08:13 PM

Quote:

Originally posted by markt
The quiz has not worked for me, since I installed vbPortal. I just get a blank page that says done.

Perhaps you might have some idea on how to get it back working???

Great hack, now gone.

Thanks Mark

If you are going to install vbportal on your forum after you have done this hack you will need to go back and run the installation script again to add the custom templates. If you had it installed before the database tables should still be there.

By default, the style for vbportal overides all of your custom templates and you will have to add them back in.

Hope this helps.

Ps....by the way this hack is killer and I had around 25 people just to sign up and take the quiz....

Mike

Okiewan 08-16-2002 10:17 PM

Didn't see anything about this... is there a running point total (all quiz's) ? Or is it only a per quiz score total?

VERY cool hack either way!

Vile 08-17-2002 06:26 AM

Ok, got the hack working with VB Portal.

This hack is damn damn sweet. Thanks a lot TWTCommish :)

xxxsaint 08-17-2002 02:10 PM

is anyone working on integrating this with lesane's store hack ? This is so popular on our forums , we give 10 points per correct answer and it's very time consuming doing it all manually. :D

Chruser 08-17-2002 09:25 PM

I've installed it, and I just get a white page. Check http://www.zelaron.com/forums/quiz.php if you wish.

markt 08-18-2002 09:55 AM

I have re-run the first part of the install-quiz.php only installing the quiz templates.

The quiz now works again.

Thanks Mark

Vile 08-18-2002 12:34 PM

The hack works great, but Im having a problem with the images. I started off without using any images, but when I use an image for the quizzes I added later, the same image shows up for all of my quizzes, even previous ones.

Anyone else have this problem?

Thanks.

Okiewan 08-18-2002 12:50 PM

Quote:

Originally posted by Knightmare
The hack works great, but Im having a problem with the images. I started off without using any images, but when I use an image for the quizzes I added later, the same image shows up for all of my quizzes, even previous ones.

Anyone else have this problem?

Thanks.

Yes, same problem here.

Erwin 08-19-2002 12:42 AM

Quote:

Originally posted by Okiewan


Yes, same problem here.

Same here. I had to take out the image section in the templates.

NexDog 08-19-2002 02:16 AM

I added the "quizzes" diectory to the main images dir and chmodded to 777. Still get a permissions error on trying to add an image. :(

How did they get it like MovieForums quiz page. I want mine like that so spill the beans!

xxxsaint 08-19-2002 12:26 PM

Is anyone working on integrating this with lesane's store ?

sub 08-23-2002 11:05 PM

Still no luck!

Even though I didn?t get help I tired my best to install this hack but no accomplishment. Everything in the installation file was precisely followed to its exact line for line instructions. I've even installed this 3 times twice on 2.2.6 and once on 2.2.5 but no luck I still get this error. I?ve posted an image to show the error within this post.
----------------------------------------
vBulletin Message
Error: invalid quiz specified.

Back to Main Quiz Page
-----------------------------------------

This is my first problem hack :(

Boofo 08-23-2002 11:07 PM

You have to approve the quiz in the Admin CP after you make it. :)

Quote:

Originally posted by sub
Still no luck!

Even though I didn?t get help I tired my best to install this hack but no accomplishment. Everything in the installation file was precisely followed to its exact line for line instructions. I've even installed this 3 times twice on 2.2.6 and once on 2.2.5 but no luck I still get this error. I?ve posted an image to show the error within this post.
----------------------------------------
vBulletin Message
Error: invalid quiz specified.

Back to Main Quiz Page
-----------------------------------------

This is my first problem hack :(


sub 08-23-2002 11:15 PM

Quote:

Originally posted by Boofo
You have to approve the quiz in the Admin CP after you make it. :)


Thanks Boofo, but I've done that also. :(

TWTCommish 08-23-2002 11:46 PM

Have you added any questions to the quiz? :)


All times are GMT. The time now is 02:55 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.01950 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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