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)

snout 12-17-2002 05:57 PM

Quote:

Originally posted by IceMalee
can anyone fix my problem?
Are they using a different style or template set, as this could be what the problem is....

If so, copy the templates into the new style :)

kuska 12-23-2002 11:23 AM

I get a blank page when trying to access the quiz ... http://www.NaKazdyTemat.com/quiz.php ... When i press take the quiz it takes me nowhere .... Cannot Find Server, The page cannot be displayed

kuska 12-23-2002 04:02 PM

Nevermind , fixed it. Awesome hack.... !!!!!!!!!!!!

DarkDraco07 12-26-2002 06:12 AM

um, there are things like approve quiz and disapprove. how do people add a quiz so i can approve? i cant find a add quiz link anywhere

Jean147 12-30-2002 04:40 AM

Nice one :)

ethics 01-06-2003 12:59 AM

Great hack! Installed it with very little problems.

One thing I would love, and this wouldn't have to be the original author but here's a cool idea.

Since the quiz is sort of private and it's done off the forum there's really no room for discussions or even challenges of the quiz, which is sometimes half the fun. Plus you want the ties to the forum.

What I was thinking was, would it be hard to place people in a special user group after they take the quiz? This user group would have an entry to a private forum where the non-quiz takers woul not be able to see but the quiz takers could easily discuss the trivia's and quizzes?

bgtking 01-11-2003 10:59 PM

I get this error:

vBulletin Message
Error: invalid quiz specified.

Back to Main Quiz Page
What do I do?

Bungie 01-12-2003 04:34 AM

Ok, I didn't want to go through this entire thread so here it is...

I have two styles on my forum and running the install script only installs the templates in the default style. Does anyone have a set of text files for the templates so I can upload them with the template backup hack of FireFly's. Or have a way to install them to my other style? Thx in advance.

Liz 01-16-2003 03:08 AM

I've tried to put the templates in several times - so now the [Quizzes Options] thing shows up multiple times in my Vbulletin Options page in my admin CP. If you guys need a screen shot, let me know.

Also.............how do we add an image to the quizzes? I don't understand all this 777 stuff.................so I'm at a loss.

Can anyone help?

gopherhockey 01-18-2003 02:40 AM

I don't mean to be the confused newby here.. but will this also put the templates into a grouped set of templates instead of installing them all at the "root" level of the templates. What I mean is, for example, the home templates - they are all under an expandable list. I don't mind one or two stray templates, but when the number gets this large it would be nice to keep them under an expanding selection.

VBStats, for example, is one that will put them in an expanding list.

I believe you need to use a line like this in template.php

Code:

$only['quiz'] = 'Quiz Templates';
Then modify the installer to use that... ?


Quote:

Originally posted by TWTCommish
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. :)


gopherhockey 01-20-2003 02:23 PM

bump

I'm hoping someone can figure out how to install this into an expanding template list.. I'm kinda holding off installing, but am excited to try it out... (just don't like the mess of templates installed at the top level)

Thx

snout 01-20-2003 11:45 PM

Quote:

Originally posted by gopherhockey
I don't mean to be the confused newby here.. but will this also put the templates into a grouped set of templates instead of installing them all at the "root" level of the templates. What I mean is, for example, the home templates - they are all under an expandable list. I don't mind one or two stray templates, but when the number gets this large it would be nice to keep them under an expanding selection.

VBStats, for example, is one that will put them in an expanding list.

I believe you need to use a line like this in template.php

Code:

$only['quiz'] = 'Quiz Templates';
Then modify the installer to use that... ?



It doesnt appear to wrk tho m8 ???

gopherhockey 01-21-2003 02:32 PM

Just adding that line didn't seem to work, I think the installer needs to have something changed in order to see it or something...?

I did look at vbstats but I'm not enough of a programmer to be able to tell what it does differently.

sabret00the 01-22-2003 01:44 AM

this only installs to the default styleset is there gonna be a fix for that?

gopherhockey 01-22-2003 12:04 PM

I think they did fix that part - a few posts back they show how to change the styleset you install into.

sabret00the 01-22-2003 03:10 PM

i seem to be having the problem as mist, will the newly updated quiz.php fix it?

sabret00the 01-23-2003 11:53 AM

ok gonna try that anyone but the thing is, when i moved server i didn't realise i took the vB queries with my database and installed em twice therefore, can someone tell me how to remove em please

sabret00the 01-23-2003 01:07 PM

found how to fix me and mists problem, sorry for the triple post, basically

make sure your content table width = 100%

and not a number of it'll be frigged looking

/me go me

DarkDraco07 01-24-2003 03:19 AM

i would read all the pages to this thread to figure out if my question was answered if my connection wasnt so slow. are we able to have members post quizes yet?

sabret00the 01-24-2003 05:21 PM

from what i've gathered the feature won't be available till 2.0

Mickie D 01-26-2003 03:47 PM

hi i get this error anyone help me ???

Database error in vBulletin 2.2.9:

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 26th of January 2003 12:40:14 PM
Script: http://www.world-of-digital.com/forums/forums/quiz.php
Referer:



thanks in advance for any help given :)

geniuscrew 01-29-2003 02:24 PM

Everyone thinks it will work just like that lol

As stated previously, you must go to Admin CP >> Vbulletin Options >> Quizzes >> Save Changes

to get rid of the error ;)

Intex 02-01-2003 02:18 PM

Installed this great hack. But have one problem that I don't really see answered in the threads. The problem is regarding the image that goes with the quizzes.

I created a directory named quizzes in my /images directory, i.e. /images/quizzes. But when submitting a new quiz with an image, it accepts it no problems, but doesn't show. I've seen other mention this here but with no answers. Its defniitely not permissions on my server as it has full access. It certainly hasn't uploaded it to the relvevant directory.

I even wondered if it might be due to restrictions on the forum main options regarding image width, size and type, but it isn't that either.

I also looked at the source on the quiz page for that quiz and I didn't see any reference to the graphic.

Any ideas ?

P.S. Do you have a release date for v2 ?

LilTara 02-01-2003 04:01 PM

I just installed on 2.2.9 with no problems whatsoever :) Great hack! :D

ChurchMedia 02-03-2003 03:33 AM

Quote:

Originally posted by xxxsaint
if someone could figure out how to integrate this to award 10 points per correct answer into lesane's store it would be really really really really really really nice :P
Here's how you do it!

In quiz.php, find (around line 650):

PHP Code:

 $date    vbdate($dateformattime());
    
$line    str_repeat('-'40);
    
$message result_switch($totalcorrect$question_count); 

Add AFTER:

PHP Code:

    $addpoints $totalcorrect*10;
    
$DB_site->query("UPDATE user SET storep=storep+$addpoints WHERE userid='$userinfo[userid]'"); 

You can change the 10 to however many points you want...

In the email_quizresults template you can add:

Code:

You earned $addpoints points!
That's it!

Molok 02-03-2003 08:33 AM

My problem that i have a german Board. All Templates are only in my default style and not in my german Sie style.

Is there a possibility to move fast the quiz templates in my german style ?

pcoskat 02-03-2003 10:35 PM

What a lovely hack!!!

Question: when uploading an image to the quiz, is it possible to add a hyperlink to the image? (ie: I'd like to base my quizes on specific books, and have the image be 'of' the book, with that image linked to amazon.com - possible?)

kat

ChurchMedia 02-04-2003 02:10 AM

TWTCommish,

I wrote a hack allowing an admin to add a longer answer or explanation to a question. The explanation is then shown on the results page. The zip file containes the altered quiz.php and admin_quiz.php files and new contents for the quiz_resultbit template.

Before I post this to the hacks section, I wanted to make sure it hasn't been done already -- and wanted to know what you think about it.

Here are some screenshots:

Add A Question
Edit A Question
Results Page

If I'm not repeating someone else's work and everything looks good, let me know. Thanks! :)

Molok 02-04-2003 06:07 AM

Is it possible that Registred User can send a quiz and the admin can only approve the quiz ?

ethics 02-04-2003 10:47 AM

ChurchMedia is on fire!

Thank you, I've had (politics forum) plenty of quizzes where I wished I could explain after the answer was given. ;)

amykhar 02-04-2003 11:15 AM

Quote:

Originally posted by Molok
My problem that i have a german Board. All Templates are only in my default style and not in my german Sie style.

Is there a possibility to move fast the quiz templates in my german style ?

Here is the sneaky way I did it to make it go faster. I went to PhpMyadmin, and then sorted the templates by templateid. This put all of the templates for the quiz in a group. I then simply executed a query to change the templateid on that group to -1. This made the templates part of the "built in" group that applies to ALL styles.

I have not customized them per style, but I believe you can just the same as the other default ones.

Amy

Intex 02-04-2003 12:47 PM

pcoskat

Yes this is possible. You can just use the standard html coding for including an image in a page. The only drawback is that you would have to allow html code in your options for that forum.




Quote:

Originally posted by pcoskat
What a lovely hack!!!

Question: when uploading an image to the quiz, is it possible to add a hyperlink to the image? (ie: I'd like to base my quizes on specific books, and have the image be 'of' the book, with that image linked to amazon.com - possible?)

kat


Intex 02-04-2003 12:52 PM

Molok

Not quite what you're looking for, but check this thread out ---> https://vborg.vbsupport.ru/showthrea...highlight=quiz .


Quote:

Originally posted by Molok
Is it possible that Registred User can send a quiz and the admin can only approve the quiz ?

Molok 02-04-2003 12:54 PM

this ad on i have installed.

I think the possibility that registred member can send a quiz will be a cool feature.

Angelus 02-09-2003 03:54 PM

The Links "View More High Scores" and "View All Results for this Quiz" do not go since the updates on 2.2.9 any longer. Which ran there wrongly. Because with "TWTCommish" it does not go also.

LangTuDaTinh 02-16-2003 02:03 AM

if u want registered member able to add a new quiz then just add a new folder with same files that u placed in mod folder (look for vbquiz addon), then remove all option except for "add", then remove approve option when u add a quiz, and set so that only registered user can add.

i did this to my quiz section....

Oblivion Knight 02-16-2003 10:02 PM

Oh how I wish more people would READ the instructions before they complained of a "bug".. ;)

Working fine at Umbrella Online.
Thankyou for a mighty fine modification.. :)

[high]* Oblivion Knight clicks install.[/high]

LangTuDaTinh 02-17-2003 11:44 PM

ok, i make some modification

everything is looking good except for

1. after i submit a message, it will not display that message rightaway, it only display messages that i posed before. If i hit refresh, it will duplicate and show message that i just post which was not appear.

ok too hard to understand
here is an example

1. open a quiz
2. enter a message "testing" and press "post comment" > after it press 'post comment' it will display quiz page again but did not display the message "testing" that i just post.
3. Hit "refresh"
4. Displayed "testing"
5. Hit "refresh" again, two messages "testing" will be post
6. exit that quiz
7. go back that quiz
8. three message "testing" were posted.

First error : So each time i hit refresh after i post my message, it will duplicate my message.
Second error: Message doesn't display right away after hit "post comment"

Please help me to fix these errors.

Thanks

Zombie-F 02-19-2003 09:09 PM

I have a quick question that maybe you could help me with..

Is there any way to get the Quizzes to be displayed alphabetically instead of by id number when in the category view? This would make finding a particular quiz to take be much easier.

LangTuDaTinh 02-20-2003 01:24 AM

search for

PHP Code:

    $quizzes $DB_site->query("SELECT q.quizid, q.quiztitle, q.description, q.timestamp,
                                       SUM(r.totalcorrect) AS correct, COUNT(r.resultid) AS total
                                FROM quiz q
                                LEFT JOIN quiz_results r
                                  ON (q.quizid = r.quizid)
                                WHERE q.approve  = 1
                                  
$clause
                                GROUP BY q.quizid ORDER BY q.timestamp DESC
                                LIMIT 
$start$per_page"); 

change to

PHP Code:

    $quizzes $DB_site->query("SELECT q.quizid, q.quiztitle, q.description, q.timestamp,
                                       SUM(r.totalcorrect) AS correct, COUNT(r.resultid) AS total
                                FROM quiz q
                                LEFT JOIN quiz_results r
                                  ON (q.quizid = r.quizid)
                                WHERE q.approve  = 1
                                  
$clause
                                GROUP BY q.quizid ORDER BY q.quiztitle ASC
                                LIMIT 
$start$per_page"); 



All times are GMT. The time now is 06:53 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.02119 seconds
  • Memory Usage 1,851KB
  • 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
  • (3)bbcode_code_printable
  • (4)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