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)

Legendary Kid 04-27-2003 11:49 AM

I get the same error as WheelzChair....


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 27th of April 2003 04:53:57 AM
Script: http://attack.elementznet.com/quiz.php
Referer:

dede1 04-27-2003 12:40 PM

Hi

I have a problem with me cannot one the question not see, what
that lies?

Does someone have a solution for it?

http://www.dede1.de/Board/quiz.php?quizid=1&taking=1

lange 05-01-2003 11:31 AM

Does this work with 2.3.0 ?

Lethal 05-01-2003 04:55 PM

yes, perfectly

Areku 05-07-2003 02:34 PM

Does it?!?!

Awesome!

/me licks install!!

Areku 05-09-2003 11:17 AM

Any chances to add a ALL TIME BEST PLAYERS at quiz's home?

Areku 05-09-2003 11:23 AM

Hey!

I need help too!

I added 2 quizzes with no images, then a third with an image, now the three quizzes have the same image?!?!?!

How come?

Areku 05-09-2003 11:41 AM

Btw @ movieforums.com... Movie quizzes show 10 but only 9 displayed... another bug?

dezoris 05-15-2003 01:21 AM

I had problems with the blank page loads, I had to add the ID and then I have seen no major bugs. Thank you again.

Cloudrunner 05-20-2003 08:54 PM

Not wanting to go through all 52 pages of this post, I went and fixed the admin CP slightly. If this is a double fix / post I apologize.

Anyways, What I did is make it so that the templates are listed under not your custom templates, but under the default templates under it's own collaspable category there. It also makes it so that ALL of your styles see the templates, and not just your default style so you don't have to worry about doing the manual additions.

Anyways, Ready?

Here we go:

1) Find the following bit of code in your admin/template.php:

Code:

  $only['showgroup'] = 'Show Groups';
Directly below that add the following code:

Code:

//Quiz
  $only['quiz'] = 'Quiz';
//End Quiz

2) Save and upload file.

3) using phpmyadmin or another similar manager for your mysql database run the following query (this simply changes the template id to '-1' so that it becomes part of the default templates.)

Code:

UPDATE `template` SET `templatesetid` = '-1' WHERE `title` LIKE '%quiz%';
(this should update ~46 templates.)

That's it, just reload your Admin CP and then view the templates. (The email and error templates for vBQuiz are under the 'email' and 'error' template categories ;))

This was done on 2.3.0, but should work for any 2.X version.

Areku 05-21-2003 12:07 PM

Superb! Thnks!

Cloudrunner 05-21-2003 01:41 PM

no problem, I was just surprised that I couldn't find anyone else who did this already ;)

todd.o.callen 05-29-2003 08:21 PM

What about vB3.0? Any reason why it shouldn't?

Highlander 06-04-2003 04:17 AM

i goit MYSQL error.. i installed everything.. created a categorie..than created an quiz and some questions..but when i wanna cvall this site:
http://spielplanet2.de/forum/quiz.php

you will see i get an error :(
whats wrong.. i dindnt touch the code of the quiz php..all tables semms to be in right place..and the install script created everything needed..but..it wont work..why?

greets

Highlander 06-04-2003 04:40 AM

now i got an BLANK page.. what i did wrong here?

Highlander 06-04-2003 05:12 AM

ok..it works.. it added all templates only to one TEMPLATE PACK..and not to all styles i got.. so i added now manually to the TEMPLATES all the quiz templatees..and it WORKS fine now :).. very nice.. i like it and i searched long time for something like this.. kewl.. very kool.. ..hellyeahh i like it :)

Areku 06-04-2003 12:04 PM

Help!

I need support!

All of a sudden, ONLY THE TOP SCORES views stopped working, both the high and the all time scores...

ONLY those links are not working.

All it loads is an empty HTML page:

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

I doublechecked the tables, which seem fine.

I replaced the translated quiz.php with the original quiz.php

I checked carefully the templates but they all look fine (I just translated them and saw them WORKING for at least one month!)


Now I get nothing only on the popup contents!

Any explanation?

Can any1 help me finding out the source of the problem?


Thanks!

Cloudrunner 06-04-2003 03:34 PM

Have you checked your require('./global.php'); statement, and made sure that with that specific line that your file is located in the $ROOT/forum/ directory? If the file is in another directory, you'll need to do some finageling.

anytime you get a blank page, then you are either not calling $ROOT/forum/global.php properly, or your eval'd templates are screwing up. Typically it is due to $ROOT/forum/global.php not being called right.

mustangheaven 06-05-2003 06:04 AM

I installed the hack and added a quiz and all I get when I go to the quiz.php file is a blank page. Install was a success. Any hints on what could be wrong.

Thanks

cinq 06-09-2003 06:12 AM

Did u approve the quiz ?

todd.o.callen 06-13-2003 05:30 PM

Is there a way to hide the scores from all but admins?
I want to use this in a corporate environment, but we will
have legal problems if people's scores are generally available.

One way around it would be to allow multiple test results, but have the latest REPLACE the old score. This way, if they do poorly and don't retake the quiz, it's their own problem. If they do finally get a mastery level score, that is all that will be captured.

todd.o.callen 06-18-2003 01:19 PM

TWTCommish,

Can you help? Will this move to vB 3.0 with any hitches?

Your help will be greatly appreciated.

Reoplex 06-18-2003 06:58 PM

i just installed the quiz, its very nice :)

however, i do have a small problem. I added a quiz, questions, approved it....etc

but when i go to site.com/forums/quiz.php and click on the quiz, then click on the Take Quiz link, i get this error:

Error: invalid quiz specified.

Back to Main Quiz Page

any ideas of what could be wrong?

TWTCommish 06-19-2003 01:16 AM

Quote:

Today at 10:19 AM todd.o.callen said this in Post #782
TWTCommish,

Can you help? Will this move to vB 3.0 with any hitches?

NOTHING will move to 3.0 without any hitches. The code is being more or less rewritten. Damn near every hack here will have to be rewritten as well...especially larger hacks such as this one.

bharvey42 06-19-2003 03:45 AM

I am getting some javascript errors that are popping up 1 per each quiz on the quiz listing page has anybody else experienced this?

insanctus 06-22-2003 08:26 PM

In Vbulletin Options I see Quiz Options 4 times.... How can I fix this :(

Also I am getting this on http://sanguinox.com/quiz.php

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

But It let me add cat's and a quiz from admin no trouble.

Splitfyre 06-27-2003 10:45 PM

What template needs to be fixed in order to fix this page:

http://www.futurelooks.com/forums/quiz.php?catid=1

LangTuDaTinh 06-27-2003 11:00 PM

to insanctus , go to vb admin cp > Options > Press submit changes

Splitfyre, can u create a test acc...

Splitfyre 06-28-2003 07:04 AM

Here's the screenshot. What template do I need to modify to ensure that this lines up correctly?

LangTuDaTinh 06-28-2003 07:26 AM

change this template ( add align=center in table open tag)

quiz_category_nav

Splitfyre 06-28-2003 08:04 AM

sorry?

Code:

<table width="{contenttablewidth}" cellspacing="3" cellpadding="3" bgcolor="{categorybackcolor}">
  <tr id="cat">
    <td width="35%" valign="middle" align="left">$previous_link</td>

    <td width="30%" valign="middle" align="center"><normalfont color="{categoryfontcolor}">From $from to $to</normalfont></td>

    <td width="35%" valign="middle" align="right">$next_link</td>
  </tr>
</table>


Splitfyre 06-28-2003 07:25 PM

n e 1?

LangTuDaTinh 06-29-2003 04:00 AM

change to this.

PHP Code:

<table width="95%" align="center" cellspacing="3" cellpadding="3" bgcolor="#005628" background="greentek/catgradient.gif">
  <
tr id="cat">
    <
td width="35%" valign="middle" align="left">$previous_link</td>

    <
td width="30%" valign="middle" align="center"><normalfont color="#FFCC00">From $from to $to</normalfont></td>

    <
td width="35%" valign="middle" align="right">$next_link</td>
  </
tr>
</
table


Hypey 07-11-2003 02:31 AM

Is there anyway to allow my members to post their own quizes? I've seen it at a board, but I don't know how they did it. ;_;

WCW Fan 07-14-2003 05:09 PM

Great Hack dude I also would like to know what Hypey said as that would be sweet thanks for the hack man

Funkie 07-22-2003 07:36 PM

hi have installed this hack and its just what I was looking for thx man:D

1 thing I would like to have these 2 entries in members profiles I managed the template changes to add those under the location in members profiles but what db queries or file changes could I do to add the amounts

Quizz Entered:
Quizz Won:

thx for any help

Angelus 07-30-2003 11:42 AM

ich habe auf dem brainstorm24.com board eine art ad-on gesehen...


wie bekomme ich es also hin das, wenn ich das quiz starte dieser hinweis dann kommt: (bereits gespielt)

und die anzahl der fagen siehe bild ......

http://www.century-community.de/privat/paridus/quiz.jpg

Airs 08-04-2003 09:10 PM

Um i installed and eveyrthing but nothing shows up when i go to quiz.php =/ just a blank. What could be wrong?

edit: bah forget that lol i found out what happend. But another problem was that i submit the questions but they get deleted.

snoopy2 08-07-2003 07:45 AM

this is a very cool hack thx :)

any plans on having a system so a member can submit a quiz for approval by admin?, I think that kind of feature would be hugely popular.

trackpads 09-19-2003 12:16 AM

Does this quiz allow pictures in the questions? I use a PHP based script to do this but I would like a VB based one. I use it for Vehicle ID questions which require a picture and then possible answers etc.

I would be willing to pay someone to modify this to make it work like mine,

Thanks again,

-Jason

http://www.trackpads.com/quiz


All times are GMT. The time now is 06:46 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.05100 seconds
  • Memory Usage 1,826KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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