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)

sub 08-24-2002 01:47 AM

Quote:

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

Quote:

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

Quote:

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

Quote:

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:

Code:

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

Quote:

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:

Code:

<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

Quote:

Originally posted by Martin64


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

Code:

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

Code:

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

<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

Quote:

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

Line 177 looks like this
Quote:

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

TWTCommish 09-02-2002 03:15 PM

D'oh. I wasn't paying attention. Use this:

Code:

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

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

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

$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


All times are GMT. The time now is 08:42 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02294 seconds
  • Memory Usage 1,830KB
  • 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
  • (8)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete