PDA

View Full Version : vBQuiz 1.0


Pages : 1 2 [3] 4 5

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
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
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
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
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. :)

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
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? :)

sub
08-24-2002, 01:47 AM
Originally posted by TWTCommish
Have you added any questions to the quiz? :)

Yes, I've added questions but it will not even show up to where I want to modify it. I also looked in the database after I added the questions and its also not there.

Any suggestions?

TWTCommish
08-24-2002, 01:51 AM
I think you're adding questions incorrectly. When you go to the "Add Questions" page, you're supposed to choose a quiz to add them to, and then add two other things: the number of questions you want to add, and the number of answers each should have.

However, a lot of people seem to enter the ACTUAL question in that box...which doesn't work, of course. :)

kira
08-24-2002, 02:47 AM
Great hack, Chris! So much fun for our visitors. I've asked this before on the "add-on" thread, but haven't heard anything back yet -- maybe you'll be able to help me. :) I'd love to be able to add the title and link of the most recent quizzes near my "who's online" area. Something like:

----------------------
Newest Quiz: Created 08/23/02 by Kira
"How many vBhackers does it take to screw in a lightbulb?"
----------------------

Can anyone think of a way to do this?

Thanks again for an amazing job. :bandit:

sub
08-24-2002, 11:19 AM
Originally posted by TWTCommish
I think you're adding questions incorrectly. When you go to the "Add Questions" page, you're supposed to choose a quiz to add them to, and then add two other things: the number of questions you want to add, and the number of answers each should have.

However, a lot of people seem to enter the ACTUAL question in that box...which doesn't work, of course. :)

OMG! *puts paper bag over my head*

I really feel stupid now. Thanks TWTCommish, all this time I've been trying to figure out why it won?t work and it was working, just I entered the questions in and answers instead text of numbers.

Thanks man and sorry for the inconvenience.

Rose
08-26-2002, 11:04 PM
Chris, I installed this a while back, but it didn't work right for our forums. So I removed it. Or thought I did. I didn't undo the queries run and now that's interefering withsomething else. Is there a way to undo these queries? (from the vBinstall file)

TWTCommish
08-26-2002, 11:15 PM
No, there's no uninstallation built into it...what's it interfering with now?

Rose
08-27-2002, 01:50 AM
Well, I've tried installing the custom post prefix hack. It seems the field id's are the same. For instace, when I run the first three queries from the CPP hack, it tells me error - duplicate id number. After completely installing it, under the CPP section in the control panel - I have the quiz options. *hehe* So that's what I'd like to remove.

TWTCommish
08-27-2002, 02:48 PM
Ah, I see. Well, that's a little tricky...the command wouldn't be the same for all boards, if they've installed some hacks. If you trust me enough to let me into the backend, I could zap 'em for you...or I could walk you through it on MSN or something of the sort. Just let me know.

TheEDIGuy
08-27-2002, 03:37 PM
TWTCommish: This hack looks great, and I'm planning to install it this weekend. But, (of course) I have a question.

We run a forum geared to reality TV. With Survivor, etc. starting up, we kind of wanted to run a "Survivor picks" game, where people answer quiz questions (who will win the reward challenge, etc.) where we don't yet know the answers.

The idea is, they'd take the quiz, and when the show runs, we'd plug in the answers and the members who took it would be scored at that point.

I have a feeling this would be a MAJOR change, and so I'm just asking what you thought of something like that. I'm no PHP expert, I know just enough to get into trouble.

Thanks again! As-is, it'll be nice for some of our other discussion topics.

John
www.realitytvtalk.com/forums

Rose
08-27-2002, 06:32 PM
Originally posted by TWTCommish
Ah, I see. Well, that's a little tricky...the command wouldn't be the same for all boards, if they've installed some hacks. If you trust me enough to let me into the backend, I could zap 'em for you...or I could walk you through it on MSN or something of the sort. Just let me know.

Chris, you have my msn, im me when you're free. :D We'll see what the best way to do it is.

Dean C
08-28-2002, 09:39 AM
has the issue with the templates not being created been resolved ??

- Mist

Odil
08-29-2002, 08:46 AM
Hi

I got the quiz working on my board but after I ran the install file 3 times. This was due to not using the default template set. Anyways, got it workin but there are now 3 entries at the top of the admin cp for [quiz options] along with 3 sets of options to go along with those links. How can I get rid of them?

Thanks!

Odil

jediguy
09-01-2002, 03:33 AM
Question: When I added a new Quiz, I neglected to put in an image. Is there any way I can go back and add an image to an already-made quiz - there doesn't seem to be any option in the 'Edit Quiz' page?

Fantastic Hack, BTW.

Martin64
09-01-2002, 10:55 AM
Originally posted by Odil
Hi

I got the quiz working on my board but after I ran the install file 3 times. This was due to not using the default template set. Anyways, got it workin but there are now 3 entries at the top of the admin cp for [quiz options] along with 3 sets of options to go along with those links. How can I get rid of them?

Thanks!

Odil

Lol, you need those in order to manage your quizzes (unless you want to do that directly, which I don't think anybody would want). If you still want to get rid of it, open admin/index.php and REMOVE:

makenavoption("Add","admin_quiz.php?action=addquiz","|");
makenavoption("Modify","admin_quiz.php?action=modifyquiz","|");
makenavoption("Delete","admin_quiz.php?action=deletequiz","<br/>");
makenavoption("Approve","admin_quiz.php?action=approve","|");
makenavoption("Disapprove","admin_quiz.php?action=disapprove","<br/>");
makenavselect("Quizzes");

makenavoption("Add","admin_quiz.php?action=addquestions","|");
makenavoption("Modify","admin_quiz.php?action=modifyquestion","|");
makenavoption("Delete","admin_quiz.php?action=deletequestion");
makenavselect("Quiz Questions");

makenavoption("Add","admin_quiz.php?action=addcat","|");
makenavoption("Modify","admin_quiz.php?action=modifycat","|");
makenavoption("Delete","admin_quiz.php?action=deletecat");
makenavselect("Quiz Categories", "<br/>");

Martin64
09-01-2002, 10:59 AM
Originally posted by jediguy
Question: When I added a new Quiz, I neglected to put in an image. Is there any way I can go back and add an image to an already-made quiz - there doesn't seem to be any option in the 'Edit Quiz' page?

Fantastic Hack, BTW.

Quizzes -> Modify Quizzes -> Select the quiz -> In quiz description, add an html tag:

<img src="http://www.yourdomain.com/forum/images/pic.gif">

Odil
09-01-2002, 11:04 AM
No you have missunderstood me. See attached pic. I have 4 of these at the top when I only need one.

Martin64
09-01-2002, 11:39 AM
Ah, I see. My bad, I didn't read it carefully enough :)

To get rid of it, fire up phpmyadmin and remove the extra entries in "settinggroup".

jediguy
09-01-2002, 11:47 AM
Originally posted by Martin64


Quizzes -> Modify Quizzes -> Select the quiz -> In quiz description, add an html tag:

<img src="http://www.yourdomain.com/forum/images/pic.gif">
Sorry, the image doesn't come out as an image - it just displays the code.

Martin64
09-01-2002, 12:03 PM
That's funny, because I'm using it myself.

jediguy
09-01-2002, 12:09 PM
http://forums.shoresofvalinor.com/quiz.php

And I've definitely got the image installed where the code points to.

Martin64
09-01-2002, 12:15 PM
jediguy, only registered members can view your quizzes, so post a screenshot instead. :)

jediguy
09-01-2002, 12:22 PM
OK:

http://www.shoresofvalinor.com/images/screeny.gif

I also tried uploading it to the vBulletin images folder and then putting:


<img src={ imagesfolder}/images/[imagelink]>

But that didn't work either.

Martin64
09-01-2002, 12:26 PM
Try vB code

jediguy
09-01-2002, 12:29 PM
That did the trick. Thanks!

:)

Martin64
09-01-2002, 12:32 PM
You're welcome. :D

AZPROSPORTS
09-02-2002, 04:39 AM
Nice job. Was able to fix all problems by reading through the thread. THANKS for the hard work!

FleaBag
09-02-2002, 01:40 PM
Working on 2.2.7. Thanks again! :)

indiamike
09-02-2002, 02:31 PM
I was wondering if someone could help me with a fix or suggestion for this.

In one of my quizzes I added html into the question to display an image, sort of like "what is the image above".

In my Admin screen, the images show up fine and the html is displaying correctly, however if I go to take the quiz the images won't show up, just the html code shows up.

Example: If I typed in this<p align="center"><img border="0" src="http://www.indiamike.com/quizimages/meal.jpg" align="center" hspace="10" vspace="10" width="225" height="215"></p>
<p align="center"><b>In
the image shown, what type of meal would this be?</b></p>


Into the Question field the image and everything shows in the ADMIN screen but when taking the quiz I just the html coding.

Is there any way I can change this.

Cheers
Mike

TWTCommish
09-02-2002, 02:33 PM
It's not parsing the HTML because your board is apparently set not to accept HTML. If you want it to accept HTML, find this line:

$quiz[description] = bbcodeparse(stripslashes($quiz[description]));

Replace it with this:

$quiz[description] = bbcodeparse(stripslashes($quiz[description], X));

Replace the "X" in that line with the forumid number of one of your forums which is set to parse HTML in posts. That should do it.

indiamike
09-02-2002, 02:58 PM
Thanks for the quick response gave it a try on got this


Warning: Wrong parameter count for stripslashes() in /home/indiamik/public_html/india/quiz.php on line 177



Line 177 looks like this$quiz[description] = bbcodeparse(stripslashes($quiz[description], 80));

Mike

TWTCommish
09-02-2002, 03:15 PM
D'oh. I wasn't paying attention. Use this:

$quiz[description] = bbcodeparse(stripslashes($quiz[description]), 80);

indiamike
09-02-2002, 04:27 PM
No luck.

There is no error displayed anymore but the quiz still just displays the html source code. I tried using differant forums id's also, all of them allowing html in the posts but no luck.

I also tried cleaning out some html codes but still nothing.

Any other tips?

Mike

Dean C
09-02-2002, 05:57 PM
has the issue with templates not being added been resolve chris??

- Mist

morrow
09-03-2002, 02:02 AM
has anyone figured out what the Template problem is? There are 28 pages or so to read through, so I figured I'd just ask to save some time. Basically, my templates are not being created after step 1.

Rose
09-03-2002, 02:49 PM
Chris - :$ Should I pm you with my info regarding the mixup in quiz/postprefix in the db?

TWTCommish
09-03-2002, 04:43 PM
Yeah, go right ahead. :) I'll be out most of today, but I'll try to get back to you quickly.

JGM007
09-08-2002, 03:49 AM
But I have not found a way to easily link from the main index of the forum to the quiz.php

I have been running the quiz for a while now, but not many people find their way to the quiz.

I think I missed someting, can someone point me in the right direction so I can get people easily to the quiz?

Thank you!

-JGM

http://board.madoshi.com

NexDog
09-08-2002, 08:46 AM
Templates > Modify > Expand List > Forum Home Page Templates > Expand > forumhome

Find:

Welcome to our newest member, <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername</a>

Under that add:

<br><br><a href="$bburl/quiz.php.php"><b>Quiz Room</b></a>

NexDog
09-08-2002, 10:23 AM
Serious problems with images.

1) The image uploader won't work. It tells me I don't have the right permissions on the dir "quizzes". It is wide open.
2) HTML won't parse. Chris, I tried your fix on the previous page:

$quiz[description] = bbcodeparse(stripslashes($quiz[description]), 35);
No joy as shown by screenie1.

http://www.hostnexus.com/screenie1.gif

3) I tried vb's [ img ] tag and it gave me a link to the image as in screenie2!

http://www.hostnexus.com/screenie2.gif


Love to get a fix if anyone has time. A member is busy writing

NexDog
09-08-2002, 10:28 AM
Okay, I'm using the image tag, still gives the hyper link, but when you go to take the quiz:

http://www.hostnexus.com/screenie3.gif

NexDog
09-08-2002, 10:40 AM
Okay, more fun. On the same page that displays the image as a link:

http://www.hostnexus.com/screenie4.gif


So, using the [ img ] tag, it displays the image as a link under "Recently Added Quizzes" and just displays the code under "Easiest/Hardest Quiz". But it does display the image when you go to take the quiz.


Using html, it just displays the code even with Chris's fix. Is it time to dump the idea of using images or is there a light somewhere down there at the end of this tunnnel? :D

indiamike
09-08-2002, 12:07 PM
As you can see in one of my posts above, I didn't have any luck with the images either. They show up in the ADMIN panel but don't work on the quiz. Been trying a few things but nothing has worked so far. Petty because I spent like six hours on a quiz using images and can't use it.

Mike

NexDog
09-09-2002, 12:07 AM
Yea, but how can an image show up in the admin panel??


Could really use some help. Chris, are you around?? Sorry to be a pain. :)

JGM007
09-09-2002, 03:12 AM
Thank you NexDog! :)

NexDog
09-09-2002, 04:44 AM
No problem. :)

Now if you can solve my image problem, we will be even. :D:D:D

xxxsaint
09-09-2002, 04:53 AM
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

NexDog
09-09-2002, 05:10 AM
Sheesh, let's work out all the issues first. :)

xxxsaint
09-09-2002, 11:20 AM
um , yea. Anyway , not exactly like I'm trying to cut in line or something , but if anyone has figured out how to integrate this with lesane's store plz share. Also someone help out Nex with his image issues. Mine did that same thing before I went into the board options and took off " display images as hyperlink " but I'm sure you've already done that since you're a super hacker.

NexDog
09-09-2002, 11:36 AM
LOL, na -I'm a Super Hacker who has to ask alot of dumb questions to get hacks working which raises my post count - ROTF. :D

NexDog
09-09-2002, 12:24 PM
Okay, so where the hell is " display images as hyperlink" in Board Options? Never seen it and can't find.

xxxsaint
09-09-2002, 05:17 PM
My fault man , I was referring to the thread attachment options in the control panel .

http://www.tdleague.com/images/attachments.jpg

NexDog
09-09-2002, 09:57 PM
:) thx.

morrow
09-09-2002, 10:20 PM
All of the links on my quiz.php page point to:

http://www.njflyfishing.com/"quiz.php?s=&quizid=4\"

notice the quote before quiz.php...

Also, quiz is in the following location: www.njflyfishing.com/vbportal/vbulletin/quiz.php

Why is it showing up the way it is? Anyone?

morrow
09-11-2002, 12:10 AM
If I add the templates manually, will this work? The install does not install the quiz templates for me.

NexDog
09-11-2002, 02:30 AM
Yep, install manually. It's just a pain in the a$$ but most hacks don't have an installer anyway. I just installed the Toplist hack and it had about 25 templates to add manually. :)

morrow
09-11-2002, 01:59 PM
Ok, I've installed all of the templates manually and this is what I get:

All of the links on my quiz.php page point to:

http://www.njflyfishing.com/"quiz.php?s=&quizid=4\"

notice the quote before quiz.php...

Also, quiz is in the following location: www.njflyfishing.com/vbportal/vbulletin/quiz.php

Why is it showing up the way it is? Anyone?

morrow
09-13-2002, 12:58 PM
is this thread no longer supported? Can someone help me out?

TWTCommish
09-13-2002, 01:24 PM
Originally posted by morrow
Ok, I've installed all of the templates manually and this is what I get:

All of the links on my quiz.php page point to:

http://www.njflyfishing.com/"quiz.php?s=&quizid=4\"

notice the quote before quiz.php...

Also, quiz is in the following location: www.njflyfishing.com/vbportal/vbulletin/quiz.php

Why is it showing up the way it is? Anyone?
Either your bburl variable contains some odd value, or you've done some other hacking that I'm unfamiliar with.

morrow
09-13-2002, 01:47 PM
Well, another dumb question then. Where can I check out what my bburl value is set to? Second, the only hack (not sure if it's a hack), but is VBPortals. Would that have something to do with it?

Audionuts
09-17-2002, 05:08 AM
ok this is a great hack :) but i'm having a problem, that although i noticed a couple of others had the same problem, i did notsee an answer...

it seams i have it all intalled right, but for some reason the questions and answers i create are not being stored?
after adding questions and answers to thequiz i go to edit questions to see what i just entered and i get "No questions found" so when i try to take that quiz all i get is "Error: invalid quiz specified. "

i'm sure its something simple, but i have not been able to debug :( can anyone help?

thanks...

NexDog
09-17-2002, 08:33 AM
Yea, after you've created the quiz and entered all the questions, go to Quizzes - Approve and approve it. Then it will magically appear. :)

Feanor
09-17-2002, 10:37 PM
Works great, thank you :)

Audionuts
09-17-2002, 10:43 PM
well i wish that was it, but the quiz is already approved it even shows on the quiz page but no questions can be added...

morrow
09-18-2002, 11:25 PM
I really wish I could get this thing working on my system, I love the way it looks.

Merjawy
09-20-2002, 01:34 PM
Great hack/feature I might call it

I installed it and all just fine.. however, installed it 3 times on local testing forum and at first it worked with one category but if theres more then I get mysql error

so I upgradte my PHP from 411 to 422 and that problem was gone and all works well now

still little problem.. picture upload doesn't work on my local test board.. I don't even get an error just acts like its all cool and no picture displyed on quizzez

I have the images/quizzez forlder set right
I can't do chmod as I am not on Unix , runing XP here

but on my real forum it works great I even have translated it to another language

Thanks for the hack dude.. and if you can figure out why I can't use images localy that would be great, but heck I personaly don't care fo images

Merjawy
09-20-2002, 01:40 PM
to all who having errors specialy mysql errors.. upgrade your php I had no luck with php 411 and 412 .. soon I gone 422 all errors gone

Angelus
09-21-2002, 06:13 AM
Hello.
One can let indicate still on the results side, someone made how many points already insgessant and the average.
That was a Google translation :)

Ghostsuit
09-23-2002, 06:09 PM
Great hack but I've got one small problem is that the pop ups don't seem to work http://www.alternativenation.net/forums/quiz.php?catid=1 not sure if this is just my browser problem or not.

Feanor
09-23-2002, 10:59 PM
Originally posted by tractor-beam
Howdy,

I searched through the posts and couldn't find my answer. I have a sample quiz which has ten questions. I user got 9/10 correct and it shows a score 0f "9".

How can I get the quiz to show either "9 our of 10 correct" or "90%" correct?

Thanks!

- Gerry

Any answer to this yet? I've looked, but can't find one yet....

morrow
09-25-2002, 03:54 PM
Since help for this forum has been useless, can someone at least tell me exactly what I have to do to completely remove this application? I would like to start over with abosultety no references of this software ever being on my machine.

Thanks.

Merjawy
09-25-2002, 11:03 PM
Originally posted by Ghostsuit
Great hack but I've got one small problem is that the pop ups don't seem to work http://www.alternativenation.net/forums/quiz.php?catid=1 not sure if this is just my browser problem or not.


could be your browser or popup stopper .. strange it stops local popups but happens to me often when clickin links and stuff

Merjawy
09-25-2002, 11:06 PM
Originally posted by Feanor


Any answer to this yet? I've looked, but can't find one yet....

good idea.. it can be done I think just addin little extra to where the varible is.. I will try on mine and let you know

Merjawy
09-25-2002, 11:09 PM
Originally posted by morrow
Since help for this forum has been useless, can someone at least tell me exactly what I have to do to completely remove this application? I would like to start over with abosultety no references of this software ever being on my machine.

Thanks.

if I see your question I will see if I can help but to remove it theres a manual way only as I had to do it few times to double check it

from admin CP take out all the quiz tamplates and
the commands take them out from admin/index.php,
as for the Options you need to remove it from the database using phpmyadmin

LangTuDaTinh
09-27-2002, 11:10 PM
this hack would be better if user can add quiz.

NexDog
09-27-2002, 11:16 PM
In a limited way:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=42000&highlight=vbquiz+addon

chitown
09-28-2002, 02:53 AM
i am getting this after creating a quiz


vBulletin Message
Error: invalid quiz specified.

Back to Main Quiz Page

nbb
10-03-2002, 02:58 PM
I just tried with 2.2.8. and got a parse error at 'install_quiz.php on line 17'... Any ideas?

When jumping on the offer "step 1" link, i get 'Fatal error: Call to unsupported or undefined function get_templates() ' at ''install_quiz.php on line 17''...

ViewMy.biz
10-14-2002, 08:29 PM
My vb is using php3 extensions.

Will this hack work with the php extentions? Or do I need to make changes

LangTuDaTinh
10-15-2002, 07:41 PM
great.....just a suggestion for next version, add a box or column for the maximum point if user answers all the question correctly. or the result box will display like "2 of 10" (two is number user answer correctly. and ten is number of question?)

right now i i check the result box, all i can see is users's point (or score) and some score went up to 15 or more... can we just limit them to 10 or 100 (maximum scrore is 10 or 100)? so when i look at that score...(15)....i don't know how many percent that user answer correctly.

also about the last option in the admin cp option, what is that for? (i read in text but still can't understand)... is "6" a good value for that option?

thanks

LangTuDaTinh
10-15-2002, 07:46 PM
or at least some where under the "misc. information", i can add the total number of question in that quiz?

thanks

stamper
10-17-2002, 03:25 PM
I have installed the hack succesfully and have added a quiz! But when I go to /quiz.php the window is white and nothing is loaded!
what is the fault?
have I problems with the templates? because I have 5 different styles!
I have version 2.2.6!

thx for help!

Freefall
10-17-2002, 09:02 PM
That is my problem too - it has happened with all of my recent hacks :( everything goes fine, but the templates don't get created :( can anyone help?

Eladesor
10-20-2002, 07:54 PM
excellent hack - thank you very much...... It's saved me loads of work, just what I was looking for.

A very happy user :)

Eladesor
10-21-2002, 10:28 AM
Any suggestion on how to include the 'Admin section' (add quiz etc..) into the /mods/index.php so that moderators can update it?

ViewMy.biz
10-21-2002, 11:14 PM
I loaded QUIZ on raginpagin.com where I have 2.2.8 and php3 files.

Before loading I carefully changed each instance of php? to php3?

I just have on thing to say.

It works flawless

Erwin
10-21-2002, 11:18 PM
Originally posted by Freefall
That is my problem too - it has happened with all of my recent hacks :( everything goes fine, but the templates don't get created :( can anyone help?

Because most hacks install templates into the default templateset, and you are using a custom templateset. You need to manually copy the templates so that they show up in all templates.

saab340
10-22-2002, 06:36 PM
#1 Metoo would like to get the average to show instead of 2.67

I tried adding this to template (This is a bit of code found in template, after you have taken the quiz) and it shows average there...?
$avg of $question_count ($multiplied_average%)

#2 Is there a way of uploading questions and answers as a "bulkload" I have tons of them in my excell, and would like to transfer them to my quiz?

#3 This one is a tough one, but is there a way of storing the questions missed or marked by the user, so they could go back and take missed or marked questions again.

Thanks for the great hack :cool:

FleaBag
10-28-2002, 11:20 PM
All working with 2.2.8. Thanks Chris. :)

Jacko
10-29-2002, 09:14 PM
fine here on 2.2.8..

cheers dude.. is wicked..

Matt87
10-30-2002, 10:49 PM
The templates don't add. I tried the...

http://www.yoursite.com/forums/admin/install_quiz.php?step=1&setid=XX

influence
11-03-2002, 11:39 AM
im having a huge problem.
When I click on a quiz and then click on take this quiz, All it did was take me to anoter page that looks like this

*view attachment

Destee
11-14-2002, 03:35 AM
TWTCommish - after reading page one of this 41 page thread, I was able to add this wonderful hack without any problems!

Upon successful completion, I did take the time to read all the 41 pages of posts and I must agree with Steve (somewhere in the middle of these 41 pages) regarding why folk might be reluctant to share hacks. Gosh! A million questions asked that were in the install notes, a million folk saying I don't want to read all these pages could you just answer this one question, 1/2 million asking for version 2 when you were knee deep in version 1, 1/2 million throwing in a dammm or WTF when it didn't work properly for them the first time ... after reading comments like these I expected you to be cursing too ... but you remained calm, cool, and polite ... my hats off to you!

Thanks for a wonderful hack. Clicking Installed.

Destee

influence
11-17-2002, 10:23 AM
any help with my problem please?

Talisman
11-25-2002, 08:57 AM
Originally posted by Erwin


Because most hacks install templates into the default templateset, and you are using a custom templateset. You need to manually copy the templates so that they show up in all templates.
Erwin (or someone?)......

When I tried this one, the script said it had succesfully installed all the templates. But they didn't show up in either template set. We have only two styles, but those templates aren't listed in either of them so I can't copy them over.

Am I missing something else?

Talisman
11-25-2002, 07:10 PM
Well, I'm really stuck with this one, now. Something caused a conflict for the auto-installer ..... and I'm not able to copy templates to a different set (they just didn't show up anywhere). I also can't seem to continue this installation manually because the installer won't let me skip the steps I've already done.

Thus far, I've uploaded the php files where they belong and I ran the install file. But I've no idea how to proceed now:

1 - Having checked what I can find ....... the quiz database tables are there; they look great.

2 - The templates didn't get loaded anywhere.

3 - Nothing appears in the Admin CP that relates to quizzes.... and I can't continue with the install instructions.

Would someone familiar with this hack, please help me? We really want to use this great feature, along with the later enhancements that have been released for this, too.

I can't run the install again without messing up the database and I can't install this manually without help.

Please?

Talisman
11-26-2002, 02:49 AM
Okay, I figured out how to "drop" existing tables via phpMyAdmin ........ so I was able to "un"-install the hack and run the installer again (without interruption this time).

The quiz functions are working great in the Admin CP now, I just have 1 remaining problem ...... still no templates.

--------------------

Edit -> Finally found the table where the templates hang out. No problem...... easy enough to change the templatesetid now.

Talisman
11-26-2002, 08:14 AM
Success!! Got these blasted quizzes working now (whew!) and I'm so happy I can hardly stand it.

What a great feature..... thanks for creating this hack!

Cheers!

Brahm
11-26-2002, 06:50 PM
Hey TWT,
Thnks for the fantastic work and devotion on this great hack.

I think I screwed up by trying to reinstall the hack and now there are 5 instances of "Quiz Options" in my "Vbulletin Options" area. any way of getting rid of four of these?

Talisman
11-26-2002, 07:16 PM
Had the same problem, Brahm. But by using phpMySql, I finally found the Admin CP "vBulletin Options" list in the database table called "Setting."

If you go there and display the Setting table (click on that table, then "browse), click on the column heading "settingid" two times and it will sort and display the table in reverse order. This lets you see the last entries the hack installed for you there.

Scroll down to find one set of records to keep, then delete the 4 sets of duplicates you don't want. Just make sure you keep one full set.

If you ran the installer that many times, you've also got 5 sets of templates in the database. So, you'll want to tidy that up, too.

Good luck!

influence
11-26-2002, 08:30 PM
hay talisman how did you fixed yours? because when I install mine and run setup, it says templates was install but then I checked my templates, I dont see anything

Brahm
11-26-2002, 08:48 PM
I did what you recommended -- had to install phpmyadmin -- but I still see them listed. It's just that the selectable items are gone. I suppose that was what I deleted. I have one good set, and four others listed, with no options in the admin control panel.

Brahm
11-26-2002, 08:52 PM
I had to go into "settinggroup" and then I just deleted the ones in there that corresponded with the ones in "setting."

This is working beautifully -- thanks again for all of the assistance!

Talisman
11-26-2002, 09:30 PM
Glad you found that, Brahm. Sorry, I forgot to mention it.

Originally posted by influence
hay talisman how did you fixed yours? because when I install mine and run setup, it says templates was install but then I checked my templates, I dont see anything
I'm truly the last person around here who should be giving out suggestions. Mostly, I just install them and hope for the best. :squareeyed: (In this case, I just couldn't restore the backup I'd made 2 days before because that would have wiped out 5 other hacks I'd made over the weekend.)

Anyway, I found the missing templates using phpMySql (again) in the "templates" table. Same thing ..... just change them from templatesetid 1 to whatever you're using.

Hope this helps ........ good luck!

Talis.

influence
11-26-2002, 09:35 PM
nevermind, I figured it out. My template ID was showing 26 to I change it to 1. fixed the problems.

thanks

influence
11-26-2002, 11:19 PM
I am having this problem. I already checked this whole thread and few people asked why is it happening but no one give them any answer or help and I was wondering if anyone can help help me fix it.

When I add a question and then aprove it, then also on the "quiz questions" section, I click on modify and select a quiz but then it shows No questions foundd. why is that? and I do have questions added to the quizzes. Also when I go to my forum to take a question, it shows this error after I click on the Take This Quiz button. the error it show is this

vBulletin Message
Error: invalid quiz specified.

Back to Main Quiz Page

can anyone please hellllp me figure this out and why is it acting like this.

please

thanks

cklaszlo
11-27-2002, 02:49 PM
I added this but we are getting an 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

mysql error number: 1064

Date: Wednesday 27th of November 2002 11:38:48 AM
Script: http://www.thrillnetwork.com/boards/boards/quiz.php
Referer:



I notice on the above it is duplicating the directory: boards/boards/quiz.php

The quiz should be on this page:

http://www.thrillnetwork.com/boards/quiz.php

All the DB's installed correctly and all the templates are installed.

We are running VB 2.2.6

Thanks!

Alex

snout
12-02-2002, 09:46 AM
TWTCommish, in my books you are the master of VB !! :) Thanks for this great hack.... I had a few probs seting it up as I had multiple template sets and styles....

It now works like a treat.... big respect to ya for sharing this with us !!

Features for ver 2.0:
Would be great to see these in V2:

:- Timed Quizzes (Maybe a countdown feature)
:- Quiz Homepage
:- Admin Functions (so we can see what members have taken the test and who passed/who didnt) Kind of like a stats page for admins only

Also I had a lookie at ur site, bloody good work on that too m8

Thanks again :D


PS: Im running vb2.2.9 *clicks install*

AdamJus
12-02-2002, 10:27 AM
Great hack again TWT.

I agree with Snout - some form of reporting is a must for v.2.

Nice site too d00d.

*installed and clicked*

cklaszlo
12-02-2002, 04:20 PM
can anyone help us with the above problem? Upon further looking into the DB I see that we added a quiz via the Admin of the the boards but no data was written to the Tables in the DB. The tables were created in the install.

Update: after looking into this more it seams that for some reason 3 different Vb option sections for the quizzes got installed. Very strange. We save the VB option page as instructed and nothing happened. I did it three times and on the thrid time it worked. So one of the installed sections didn't install properlly. All very wierd.

LangTuDaTinh
12-03-2002, 04:05 AM
just a suggestion.... if possible...it allow users to add comments on a quiz.

thank...this hack is great.

Schorsch
12-04-2002, 01:06 AM
thanks for the hack :)

How can normal users submit their Quiz questions ?

kincaitos
12-08-2002, 11:51 AM
great hack i clicked install:)

Lethal
12-11-2002, 04:23 AM
I didn't install this yet but before I do I want to ask if there is a way to have more then just 2 answers for each question? I noticed in the ss's that you only have 2 answers for each question and i was just wondering if that was all you could have.

Talisman
12-11-2002, 05:02 AM
You get to decide how many answer to include..... When you create a new quiz, you type in the number of questions you want and the number of answers for them.

Lethal
12-11-2002, 06:47 AM
ok cool ty

w596
12-11-2002, 02:49 PM
Very nice hack.

Thank You TWTCommish. ;)

TheSonic
12-14-2002, 10:30 AM
Wow! This is script is G R E A T !!

I love it - and yeah, thats i why i love vb.

One login for the Users and 1000 features !!

THANKS ! Hope this script will work also in vb 3.0, i dont want to miss it there!

<clicking install now>

Keyser S?ze
12-15-2002, 07:09 PM
was it ever solveed on how to allow moderators to make quizes?

-edit

this is odd, i can se the quiz and everything fine, but everyone else gets a blank page, even other admins, i took he damn quiz, worked perfectly

Keyser S?ze
12-16-2002, 08:46 PM
can anyone fix my problem?

snout
12-17-2002, 05:57 PM
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 :)

snout
12-17-2002, 05:57 PM
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

$only['quiz'] = 'Quiz Templates';

Then modify the installer to use that... ?


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/install_quiz.php?step=1

...go to this one...

http://www.yoursite.com/forums/admin/install_quiz.php?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
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

$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
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):

$date = vbdate($dateformat, time());
$line = str_repeat('-', 40);
$message = result_switch($totalcorrect, $question_count);

Add AFTER:


$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:

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 (http://www.churchmedia.net/hacks/vbquiz/add.jpg)
Edit A Question (http://www.churchmedia.net/hacks/vbquiz/edit.jpg)
Results Page (http://www.churchmedia.net/hacks/vbquiz/results.jpg)

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
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.




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/showthread.php?s=&threadid=42000&highlight=quiz .


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 (http://www.umbrellaonline.co.uk/forums/quiz.php).
Thankyou for a mighty fine modification.. :)

* Oblivion Knight clicks install.

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


$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


$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");

vpn
02-20-2003, 01:29 AM
just installed it on 2.2.9, great hack.

i was wondering if there was any way to have "Quizzes" displayed as a category on the forum index, with the quiz categories as forums, and then the quizzes in the individual category forums, displayed as posts or something similar?

thanks.

LangTuDaTinh
02-21-2003, 06:53 PM
I noticed that when user put the answer text less than the one indicated when they make their quiz, it will appear as blank.

For example: user input 3 answers per question.
but when they input answer texts for a question, they put only 2 answers,

so when they display the quiz, it will appear two answers with one blank answer.

this solution will display only two answers.

one way to prevent this is prevent from display those blank answer

here is the solution
look for this code

eval("\$answerbits .= \"".gettemplate("quiz_answerbit")."\";");


replace with this code



if ($answer[answertext] !="") {
eval("\$answerbits .= \"".gettemplate("quiz_answerbit")."\";");
}

Silenced Soul
02-23-2003, 01:13 AM
flawless install, beautiful usability. I love this hack :D.

Zombie-F
02-26-2003, 04:38 PM
Originally posted by LangTuDaTinh
search for


$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


$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");


Thanks man. You rock! This will make finding a particular quiz to take 10x easier. :D

Oblivion Knight
03-07-2003, 01:00 PM
After over 3 weeks of testing, I have one complaint.
Users are registering now simply to take the quizzes and not posting on the forums. I wouldn't mind this, but even users that haven't verified their e-mail address are able to take the quizzes. Is there any way to stop them from being able to do this?

Regards,
Oblivion Knight

LangTuDaTinh
03-08-2003, 12:24 AM
in quiz.php, near the top u will find this line

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


change 0 to number of usergroup that u want them to have access
if more than 2 usergroups then use "or" between them.

Jethro
03-08-2003, 03:31 AM
Okay no idea why, but figure l will add this one and work out the exact reason in due course :)

Fine looking hack btw....

Could people stop posting links to show off their site's using the quiz hack, when you need to register to view those links. :confused:

lynda
03-08-2003, 01:05 PM
I didn't want to wade through 46 pages, but I had to make an adjustment in order for the percentages to work right. The % correct at the bottom was showing the right amount, but the % correct at the top was not (on the results page) It was showing 6 out of 6 - 102%

Anyway, here's the change I made, if it hasn't already been documented:

Find:
$avg = round($all / $number, 2);
$base = round(100 / $question_count);

$multiplied_total = $total * $base;
$multiplied_average = round($avg * $base);

$total_bar_multiply = $multiplied_total * $resultsbarmultiply;
$avg_total_bar_multiply = round($multiplied_average * $resultsbarmultiply);


Change to:
$avg = $all / $number;
$base = 100 / $question_count;

$multiplied_total = ceil($total * $base);
$multiplied_average = ceil($avg * $base);

$total_bar_multiply = $multiplied_total * $resultsbarmultiply;
$avg_total_bar_multiply = ceil($multiplied_average * $resultsbarmultiply);

Zachery
03-08-2003, 06:16 PM
.

auz1111
03-08-2003, 11:07 PM
for some reason when I enter the author name in the ACP it does not get added to the database. everything else works fine. any suggestions?

LangTuDaTinh
03-08-2003, 11:18 PM
author name must be userid not username.

check out my quiz section

http://www.phimviet.com/forums/quiz.php

user: test
pas: test
or

add quiz section
http://www.phimviet.com/forums/quizzes/index.php

auz1111
03-08-2003, 11:22 PM
1.how do i get my userid. what is the difference in username and id? sorry if the question sounds stupid :(

2. Also... is there a way to erase a users quiz entry or entries if they take it more than once

LangTuDaTinh
03-09-2003, 01:58 AM
1. u can get your userid from the link to your profile
ex
https://vborg.vbsupport.ru/member.php?s=&action=getinfo&userid=23582

as u can see, your userid on this forum is 23582

usename is "auz1111"

Userid use to is just like your ss#, and username is just like your name....heheeh

2.. quiz entry? u can remove any quiz or quiz's question from your admin cp.

auz1111
03-09-2003, 02:16 AM
thanks.

i mean can i delete when someone answers a quiz. say if i answer a quiz 3 times it shows my three scores. I want to delete 2 of the quiz entries i made. thanks again

LangTuDaTinh
03-09-2003, 06:01 AM
yes u can do that but currently this script doesn't have that option.

u can set quiz option in your admincp to prevent user from taking those quiz more than 1 times.

however there is another option, u can go to to database and delete it.

auz1111
03-09-2003, 10:59 PM
Is there any way to edit or delete the pictures uploaded for a quiz?

LangTuDaTinh
03-09-2003, 11:40 PM
it's possible but i don't think it's added in this hack.

have u check modify quiz fuction in quiz admin cp?

auz1111
03-11-2003, 03:28 PM
yep...seems like there should be a spot to reupload the pic or delete.

InnerSelf
03-14-2003, 04:51 PM
is there also a way to see (if you are admin) to see what the members replied.

would be cool aswell

LangTuDaTinh
03-14-2003, 05:22 PM
seee what members replied???? i don't understand your question.

auz1111, if u want i can help u add that option.

InnerSelf
03-14-2003, 08:59 PM
wrong word, i ment the asnwer on the quiz-question.

hard to speak english sometimes :)

LangTuDaTinh
03-14-2003, 10:36 PM
//- Add a new table

CREATE TABLE `quiz_comments` (
`cid` int(10) NOT NULL auto_increment,
`quizid` int(10) NOT NULL default '0',
`userid` int(25) NOT NULL default '0',
`date` int(11) NOT NULL default '0',
`comments` text NOT NULL,
PRIMARY KEY (`cid`),
KEY `cid` (`cid`),
KEY `userid` (`userid`),
KEY `id` (`quizid`)
) TYPE=MyISAM;

//- find in quiz.php --------------

MORE WITH THIS SCORE

//- add above it-------------------


// ------------------------------------- DELETE COMMENTS START--------------------------------------------
if ($action=="delcomment")
{
if ($bbuserinfo['usergroupid']==6)
{
$DB_site->query("DELETE FROM quiz_comments
WHERE cid = '$cid'");

}
eval("standardredirect(\"".gettemplate("quiz_comments_delete")."\",\"quiz.php?s=$session[sessionhash]&quizid=$quizid\");");

}

if ($action=="savecomment")
{
$time = time();
$quiz = $DB_site->query("INSERT INTO quiz_comments (cid, quizid, userid, date , comments)
VALUES (NULL,".intval($quizid).", ".intval($userid).", ".time().", '".addslashes($comments)."')");
eval("standardredirect(\"".gettemplate("redirect_postthanks")."\",\"quiz.php?s=$session[sessionhash]&quizid=$quizid\");");
}


// ------------------------------------- DELETE COMMENTS END --------------------------------------------


//- find in quiz.php --------------

$time = time();
eval("dooutput(\"".gettemplate("quiz_display")."\");");


//- add above it-------------------


//////////////////////////////////////////////////////////////////////////////////////////////////////////
$quizcommentr = $DB_site->query("SELECT r.comments, r.date, r.cid,
u.userid, u.username
FROM quiz_comments r, user u
WHERE r.quizid = ".intval($quizid)."
AND r.userid = u.userid
ORDER BY r.cid ASC
");

while ($quizcomment = $DB_site->fetch_array($quizcommentr))
{
$quizcomment[comments] = bbcodeparse(stripslashes($quizcomment[comments]));
$cid=$quizcomment[cid];
$quizcomment[date] = vbdate("$dateformat, $timeformat", $quizcomment[date]);

if ($bbuserinfo[usergroupid]==6)
{
$quizcommentdel ="<smallfont color=\"#008080\">[<a href=\"quiz.php?s=$session[sessionhash]&quizid=$quizid&action=delcomment&cid=$cid\">Delete</a>]</smallfont>";
}
if($quizcomment[comments]!="")
{
eval("\$quizdisplaybit .= \"".gettemplate("quiz_comments_displaybit")."\";");
}

}
eval("\$quiz_display = \"".gettemplate("quiz_comments_display")."\";");



//////////////////////////////////////////////////////////////////////////////////////////////////////////


ADD NEW TEMPLATES


//------------ADD NEW "quiz_comments_delete

Comment deleted successfully, you will return to the quiz.



//------------ADD NEW "quiz_comments_display

<table width="100%" cellpadding="4" cellspacing="0" border="0" bgcolor="#9999FF">
<tr bgcolor="#9999FF">
<td colspan="2" width="100%" valign="middle"><normalfont color="#000000"><b>Quiz Discussion</b></normalfont></td>
</tr>

$quizdisplaybit

</table>

//------------ADD NEW "quiz_comments_displaybit"

<tr bgcolor="#13486D" >
<td width="100%" valign="left"><smallfont color="#008080"> Posted by: <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$quizcomment[userid]"><b>$quizcomment[username]</a></b> on $quizcomment[date] </smallfont></td><td valign="right">$quizcommentdel</td>
</tr>

<tr width="90%" bgcolor="#1C5780">

<td colspan="2" width="100%" valign="left"><normalfont>$quizcomment[comments]</normalfont></td>
</tr>

auz1111
03-15-2003, 03:38 PM
Yesterday at 07:22 PM LangTuDaTinh said this in Post #700 (https://vborg.vbsupport.ru/showthread.php?postid=366162#post366162)
seee what members replied???? i don't understand your question.

auz1111, if u want i can help u add that option.

I would love that option! I don't have hardly any experience with PHP besides copying and pasting at the moment. I can understand some of it, but I have never written anything so your help would be very appreciated. :)

Jethro
03-16-2003, 06:12 PM
Hack installed with 0 problems on our vb 2.2.6 board :)

kevinnguyen
03-19-2003, 01:31 AM
03-14-03 at 06:51 PM InnerSelf said this in Post #699 (https://vborg.vbsupport.ru/showthread.php?postid=366149#post366149)
is there also a way to see (if you are admin) to see what the members replied.

would be cool aswell

hello DCN, hehe, know me?
nice to meet u here
btw, i installed it already and when i type .../quiz.php
it only shows a blank page
damn

kevinnguyen
03-19-2003, 01:47 AM
hella hate, i guess it's becuz of my style
gonna figure it out rite now

DarkDraco07
03-19-2003, 03:22 AM
is it possible for members to make a quiz and get it moderated yet?

LangTuDaTinh
03-19-2003, 03:50 AM
Today at 03:31 AM kevinnguyen said this in Post #705 (https://vborg.vbsupport.ru/showthread.php?postid=368991#post368991)


hello DCN, hehe, know me?
nice to meet u here
btw, i installed it already and when i type .../quiz.php
it only shows a blank page
damn


ehehee where's your site?

DarkDraco07, yes it possible,

kevinnguyen
03-19-2003, 03:56 AM
keke, i have been a member of ur site rite for a few months
my site? damn, i've just screwed it up 3 days ago cuz of my silly mistake
now im recovering it but use vbb instead of ibf
thats why i dun have much exp on vbb

LangTuDaTinh
03-19-2003, 04:00 AM
eheeh, never try ibf so i don't know but vbb is much easier. about 5 months ago, i don't even know 1 php code. now i'm getting better...hehe what' was happen? did u erased your database? i did that one....

kevinnguyen
03-19-2003, 04:09 AM
oh man, my pain
i spent months to build my site
i added tons of cool hacks (shop, bank...) for ibf
and i killed it within 1 nite
damn, i misuploaded a file and didnt know that to backup
the next morning when i noticed that, holy, it was too late
now i have to start over, not really cuz db is still there
i had my friend convert db from ibf to vbb

yeah, hehe, same here, 5 months ago i dun even know how to install a forum
but now i have much exp about PHP and MySQL, especially for IBF
I added severel mods on Ibresource (mod site like this one)
IBF is good, but it easily gets hacked if you are newbie
anyway im a newbie of VBB

DarkDraco07
03-19-2003, 06:22 PM
DarkDraco07, yes it possible, [/B]

is it in the download or is it a reply? can u please link me to it if its a post cuz i couldnt find it

LangTuDaTinh
03-19-2003, 06:55 PM
no, i modified it by myself , give me your email, i will send u the script.

do u want members able to approve their own quiz or only u can do it? cause right now my script alllow members to approve their own quiz. but i can change that.

to kevinnguyen, goodluck man, reinstall all the hack is pain in the ass...u will need at least 3 or more days if your board is heavily hacked. give me your website link when u done...i wanna see it ehheeeh...what is your vbb style? i want to change my style but don't have much time....and not very good /w graphic software....

DOTS
03-20-2003, 09:27 AM
hi,
this is going to sound stupid i know
but i cant find anywhere to add the quiz'es im driving crazy!
theres nothing but some options in Admin CP
and when i go /quiz.php it says theres no added quizes
where do i add the quizes and i manage the stuff? please help this hack seems awesome but i cant add anything
thanks

DOTS
03-20-2003, 09:31 AM
nevermind im an a stupid ass
i did 1 step wrong.
sorry to bother you whit my stooooooopid questions
awesome hack man. :bandit:

Jitway
03-20-2003, 03:59 PM
Awesome hack there. Now to put all my mods and co admins to work. :cheeky:

sabret00the
03-20-2003, 04:14 PM
Yesterday at 08:55 PM LangTuDaTinh said this in Post #713 (https://vborg.vbsupport.ru/showthread.php?postid=369480#post369480)
no, i modified it by myself , give me your email, i will send u the script.

do u want members able to approve their own quiz or only u can do it? cause right now my script alllow members to approve their own quiz. but i can change that.won't you realise it as i'd also be interested in using this, if it uses the style sets and not the mod panel colour settings

kevinnguyen
03-21-2003, 02:10 AM
03-15-03 at 12:36 AM LangTuDaTinh said this in Post #702 (https://vborg.vbsupport.ru/showthread.php?postid=366312#post366312)


//- Add a new table

CREATE TABLE `quiz_comments` (
`cid` int(10) NOT NULL auto_increment,
`quizid` int(10) NOT NULL default '0',
`userid` int(25) NOT NULL default '0',
`date` int(11) NOT NULL default '0',
`comments` text NOT NULL,
PRIMARY KEY (`cid`),
KEY `cid` (`cid`),
KEY `userid` (`userid`),
KEY `id` (`quizid`)
) TYPE=MyISAM;

//- find in quiz.php --------------

MORE WITH THIS SCORE

//- add above it-------------------


// ------------------------------------- DELETE COMMENTS START--------------------------------------------
if ($action=="delcomment")
{
if ($bbuserinfo['usergroupid']==6)
{
$DB_site->query("DELETE FROM quiz_comments
WHERE cid = '$cid'");

}
eval("standardredirect(\"".gettemplate("quiz_comments_delete")."\",\"quiz.php?s=$session[sessionhash]&quizid=$quizid\");");

}

if ($action=="savecomment")
{
$time = time();
$quiz = $DB_site->query("INSERT INTO quiz_comments (cid, quizid, userid, date , comments)
VALUES (NULL,".intval($quizid).", ".intval($userid).", ".time().", '".addslashes($comments)."')");
eval("standardredirect(\"".gettemplate("redirect_postthanks")."\",\"quiz.php?s=$session[sessionhash]&quizid=$quizid\");");
}


// ------------------------------------- DELETE COMMENTS END --------------------------------------------


//- find in quiz.php --------------

$time = time();
eval("dooutput(\"".gettemplate("quiz_display")."\");");


//- add above it-------------------


//////////////////////////////////////////////////////////////////////////////////////////////////////////
$quizcommentr = $DB_site->query("SELECT r.comments, r.date, r.cid,
u.userid, u.username
FROM quiz_comments r, user u
WHERE r.quizid = ".intval($quizid)."
AND r.userid = u.userid
ORDER BY r.cid ASC
");

while ($quizcomment = $DB_site->fetch_array($quizcommentr))
{
$quizcomment[comments] = bbcodeparse(stripslashes($quizcomment[comments]));
$cid=$quizcomment[cid];
$quizcomment[date] = vbdate("$dateformat, $timeformat", $quizcomment[date]);

if ($bbuserinfo[usergroupid]==6)
{
$quizcommentdel ="<smallfont color=\"#008080\">[<a href=\"quiz.php?s=$session[sessionhash]&quizid=$quizid&action=delcomment&cid=$cid\">Delete</a>]</smallfont>";
}
if($quizcomment[comments]!="")
{
eval("\$quizdisplaybit .= \"".gettemplate("quiz_comments_displaybit")."\";");
}

}
eval("\$quiz_display = \"".gettemplate("quiz_comments_display")."\";");



//////////////////////////////////////////////////////////////////////////////////////////////////////////


ADD NEW TEMPLATES


//------------ADD NEW "quiz_comments_delete

Comment deleted successfully, you will return to the quiz.



//------------ADD NEW "quiz_comments_display

<table width="100%" cellpadding="4" cellspacing="0" border="0" bgcolor="#9999FF">
<tr bgcolor="#9999FF">
<td colspan="2" width="100%" valign="middle"><normalfont color="#000000"><b>Quiz Discussion</b></normalfont></td>
</tr>

$quizdisplaybit

</table>

//------------ADD NEW "quiz_comments_displaybit"

<tr bgcolor="#13486D" >
<td width="100%" valign="left"><smallfont color="#008080"> Posted by: <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$quizcomment[userid]"><b>$quizcomment[username]</a></b> on $quizcomment[date] </smallfont></td><td valign="right">$quizcommentdel</td>
</tr>

<tr width="90%" bgcolor="#1C5780">

<td colspan="2" width="100%" valign="left"><normalfont>$quizcomment[comments]</normalfont></td>
</tr>





did wat your told but dun see anything! why?

kevinnguyen
03-21-2003, 02:14 AM
03-19-03 at 08:55 PM LangTuDaTinh said this in Post #713 (https://vborg.vbsupport.ru/showthread.php?postid=369480#post369480)
no, i modified it by myself , give me your email, i will send u the script.

do u want members able to approve their own quiz or only u can do it? cause right now my script alllow members to approve their own quiz. but i can change that.


to kevinnguyen, goodluck man, reinstall all the hack is pain in the ass...u will need at least 3 or more days if your board is heavily hacked. give me your website link when u done...i wanna see it ehheeeh...what is your vbb style? i want to change my style but don't have much time....and not very good /w graphic software....

yeah, ur style is so boring man
but if you change a new one, you have to install all ur hack again
paintfull!

LangTuDaTinh
03-21-2003, 03:18 AM
hehe i know, orginal vb style is ++++....i can pay $30 to $50 for a new style but i wanna make my own...but i don't have time yet.

hey your style is not bad..... where did you bought it?...

about quiz, i think i forgot one little code in quiz_display


<!-- ------------quiz comment------------------- -->
<form action="$homeurl/forums/quiz.php?s=$session[sessionhash]&quizid=$quiz[quizid]" method="post">
<textarea name=comments rows=7 cols=70></textarea><br>
<input type=hidden name="action" value="savecomment">
<input type=hidden name="quizid" value ="$quiz[quizid]">
<input type=hidden name="userid" value ="$bbuserinfo[userid]">
<input type=submit value="Post Comment">
</form>
<!-- ------------quiz comment------------------- -->


won't you realise it as i'd also be interested in using this, if it uses the style sets and not the mod panel colour settings

if you want your own style sets then this one is no use for u, cause you have use change most of the code or rewrite the whole script. if i have time will would make it more professional..but...

kevinnguyen
03-21-2003, 03:50 AM
Today at 05:18 AM LangTuDaTinh said this in Post #720 (https://vborg.vbsupport.ru/showthread.php?postid=370382#post370382)
hehe i know, orginal vb style is ++++....i can pay $30 to $50 for a new style but i wanna make my own...but i don't have time yet.

hey your style is not bad..... where did you bought it?...

about quiz, i think i forgot one little code in quiz_display


<!-- ------------quiz comment------------------- -->
<form action="$homeurl/forums/quiz.php?s=$session[sessionhash]&quizid=$quiz[quizid]" method="post">
<textarea name=comments rows=7 cols=70></textarea><br>
<input type=hidden name="action" value="savecomment">
<input type=hidden name="quizid" value ="$quiz[quizid]">
<input type=hidden name="userid" value ="$bbuserinfo[userid]">
<input type=submit value="Post Comment">
</form>
<!-- ------------quiz comment------------------- -->




if you want your own style sets then this one is no use for u, cause you have use change most of the code or rewrite the whole script. if i have time will would make it more professional..but...


damn, why after i posted my comment, it doesnt show? why again?
oh well, i didnt post my site up, how can you know my style not bad?
bought it? hehe, no way. if i wanted to buy a style, i wouldnt buy my current one. I dun really like it
There are several cool styles on vbskins and i tried to buy one but they use Paypal method. I hate it!
hehe, i got my my current one for free. Try to do search, there're a lot free styles
btw, do you have your own server?

LangTuDaTinh
03-21-2003, 04:01 AM
replace all the code that i just give u with this.



<!-- ------------quiz comment------------------- -->
<br>

<table width="100%" cellpadding="4" cellspacing="0" border="0" bgcolor="{tableheadbgcolor}">

<tr bgcolor="{firstaltcolor}">
<td width="100%">$quiz_display<br></td>
</tr>
<tr bgcolor="{secondaltcolor}">
<td width="100%">
<center>

<form action="$homeurl/forums/quiz.php?s=$session[sessionhash]&quizid=$quiz[quizid]" method="post">
<textarea name=comments rows=7 cols=70></textarea><br>
<input type=hidden name="action" value="savecomment">
<input type=hidden name="quizid" value ="$quiz[quizid]">
<input type=hidden name="userid" value ="$bbuserinfo[userid]">
<input type=submit value="Post Comment">
</form>


</td>
</tr>
</table>

<!-- ------------quiz comment------------------- -->


hehee just a litle search...
yes, i have my own server....

kevinnguyen
03-21-2003, 04:22 AM
thanx man
yeah, i knew you have your own sever otherwise you must pay a thousand bucks per month for letting members upload tons of pics
btw, your color make me sick man
now i have to change it

Fi_InCogNiTo
03-26-2003, 06:51 AM
I got this error when i go to my quiz page:

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. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5

Anyone know whats wrong? I installed as per the instructions =|

Lethal
03-26-2003, 06:32 PM
don't know if this has been covered yet but is there a way to show the users scores and tests taken and stuff of that nature in their profile?

McDohl
03-27-2003, 09:22 PM
Hey all.

Having a slight problem installing the quiz. I followed the instructions and input all the code correctly but when trying to visit quiz.php I get this:

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: Thursday 27th of March 2003 05:07:59 PM
Script: http://www.halfblood.com/quiz.php
Referer:


This is annoying as I followed everything to the last mark, and it still refuses to do anything right.

If anybody could help me i'd appreciate it. :)

Fi_InCogNiTo
03-27-2003, 09:26 PM
Yep, look at my post up a few from yours. I have the same prob =\

LangTuDaTinh
03-27-2003, 09:34 PM
guy, go to your admin cp > vBulletin Options > set quiz option and press "save changes" to save it...then i would work

if it doesn't work, look for this

$quizzes = $DB_site->query("SELECT quizid, quiztitle, description, timestamp, userid, catid, imagename
FROM quiz
WHERE approve = 1
ORDER BY timestamp DESC
LIMIT $mainquizlimit");


change $mainquizlimit to a number that u want (max number of quiz that will display in quiz main page

Fi_InCogNiTo
03-27-2003, 09:39 PM
It's working after I made a change in options. TY

Craigr
03-30-2003, 06:52 PM
03-26-03 at 08:32 PM Lethal said this in Post #725 (https://vborg.vbsupport.ru/showthread.php?postid=373714#post373714)
don't know if this has been covered yet but is there a way to show the users scores and tests taken and stuff of that nature in their profile?

That would be a neat addition to the members profile.

Craig

dstruct2k
03-30-2003, 08:46 PM
Yeah... But how would it look?Average Quiz Score: --%That's my best guess... I'll look into this and post back later.

cinq
04-05-2003, 02:15 PM
installed this.

Works in 2.2.9

5 min job.
Thanks for this great hack , my members are going to love it .

LangTuDaTinh
04-05-2003, 03:52 PM
03-30-03 at 12:52 PM Craigr said this in Post #730 (https://vborg.vbsupport.ru/showthread.php?postid=375612#post375612)
That would be a neat addition to the members profile.

Craig


this is easy...but what if user takes more than 10 or even 20 quizzes then that user's profile will looks very .messy..

i only put quiz that created by that user in their profile....

Craigr
04-05-2003, 04:06 PM
Today at 05:52 PM LangTuDaTinh said this in Post #733 (https://vborg.vbsupport.ru/showthread.php?postid=377895#post377895)
this is easy...but what if user takes more than 10 or even 20 quizzes then that user's profile will looks very .messy..

i only put quiz that created by that user in their profile....

This is what i've got so far. I want it to loop, but have been unable to do so. Hopefully i will be able to get it looping soon.

Craig

LangTuDaTinh
04-05-2003, 04:16 PM
nice but that profile will be very very long if user take more than 10 quizzes... how about this....

display a link in profile like this

Quizzes Taken: 12 Quizzes out of #oftotalquizzes

and if user click on that number it will popup a popup window and display more information about each quizzes

Lethal
04-06-2003, 07:31 AM
yes, but you could limit it to display only the 10 most recent, and an average for all the quizes taken with a link to display all the quizes the user has taken.

LangTuDaTinh
04-06-2003, 07:52 AM
it not gonna fit my my new layout anyway but give me within a week, i will have it up.....(kinna busy /w my new layout)

PiotrasG
04-07-2003, 09:32 PM
For some reason i only have the quiz template. Does anyone have the templates names and code so i can add them myself
thx

LangTuDaTinh
04-10-2003, 06:19 PM
04-05-03 at 11:00 AM Craigr said this in Post #734 (https://vborg.vbsupport.ru/showthread.php?postid=377899#post377899)
This is what i've got so far. I want it to loop, but have been unable to do so. Hopefully i will be able to get it looping soon.

Craig


check out this one

http://forums.tvseriesfans.com/forums/member.php?s=&action=getinfo&userid=1

it's not complete yet......any more that u want...tell me before i post it up.

Lethal
04-11-2003, 01:27 AM
the user profile is going to get pretty long the way that is. You should only show like the 5 most recent and then the rest show have a like with javascript which shows all the quizes that user has taken. At least let give a variable so you can limit the # that shows up.

But looks good so far.

LangTuDaTinh
04-11-2003, 02:28 AM
yup.... it's not finish yet....i gonna add some more extra features for it....

yes... the varible will be set in admin cp...
a link with popup and page nav will display if more than that number....

LangTuDaTinh
04-11-2003, 02:37 AM
i'm trying to add time check for quiz... anyone have a suggestion??? a best idea to do this???

Lethal
04-11-2003, 04:23 AM
ok cool, sounds good

Craigr
04-12-2003, 05:48 PM
04-10-03 at 08:13 PM LangTuDaTinh said this in Post #739 (https://vborg.vbsupport.ru/showthread.php?postid=380264#post380264)
check out this one

http://forums.tvseriesfans.com/forums/member.php?s=&action=getinfo&userid=1

it's not complete yet......any more that u want...tell me before i post it up.

Looks great.

Craig

Craigr
04-12-2003, 05:48 PM
04-10-03 at 08:13 PM LangTuDaTinh said this in Post #739 (https://vborg.vbsupport.ru/showthread.php?postid=380264#post380264)
check out this one

http://forums.tvseriesfans.com/forums/member.php?s=&action=getinfo&userid=1

it's not complete yet......any more that u want...tell me before i post it up.

Looks great.

Craig

LangTuDaTinh
04-13-2003, 02:30 AM
Since i'm using skin different than original vb skin. u will need to modify three included templates if u don't like layout

here is the final version

http://www.tvseriesfans.com/forums/member.php?s=&action=getinfo&userid=1

notify me if there is error...

in templates, there is header comment lines...add new head for quiz table if u want.

Lethal
04-13-2003, 09:07 AM
DCN tooks total 36 quizzes



should be DCN took a total of 36 quizzes


other then that, looks good ty

Oblivion Knight
04-13-2003, 10:35 AM
Today at 04:24 AM LangTuDaTinh said this in Post #746 (https://vborg.vbsupport.ru/showthread.php?postid=381281#post381281)
Since i'm using skin different than original vb skin. u will need to modify three included templates if u don't like layout

here is the final version

http://www.tvseriesfans.com/forums/member.php?s=&action=getinfo&userid=1

notify me if there is error...

in templates, there is header comment lines...add new head for quiz table if u want.

You should think about adding a few <normalfont> tags around the place on your created templates, the Times New Roman font looks very out of place on your demo.

Craigr
04-13-2003, 01:59 PM
Today at 04:24 AM LangTuDaTinh said this in Post #746 (https://vborg.vbsupport.ru/showthread.php?postid=381281#post381281)
Since i'm using skin different than original vb skin. u will need to modify three included templates if u don't like layout

here is the final version

http://www.tvseriesfans.com/forums/member.php?s=&action=getinfo&userid=1

notify me if there is error...

in templates, there is header comment lines...add new head for quiz table if u want.

Thanks. I shall be adding this to my site soon...

Thanks again
Craig

LangTuDaTinh
04-13-2003, 05:40 PM
Today at 03:01 AM Lethal said this in Post #747 (https://vborg.vbsupport.ru/showthread.php?postid=381371#post381371)
should be DCN took a total of 36 quizzes


other then that, looks good ty

Today at 04:29 AM Oblivion Knight said this in Post #748 (https://vborg.vbsupport.ru/showthread.php?postid=381388#post381388)
You should think about adding a few <normalfont> tags around the place on your created templates, the Times New Roman font looks very out of place on your demo.


thanks lethal and Oblivion Knight .

I have fixed the grammar error and added some class=nf to those cell. (i used sf on my website...).