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)

Warlord 08-11-2002 08:25 PM

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

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

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

*Hopes this isn't too confusing*

sub 08-11-2002 09:44 PM

Quote:

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

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

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

*Hopes this isn't too confusing*

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

require("./global.php"); 

Replace that with:
PHP Code:

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

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

danrak 08-12-2002 03:17 AM

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

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

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

Thanks.

Ryangel 08-12-2002 11:26 PM

Hi TWTCommish,

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

Ryan

TWTCommish 08-13-2002 01:42 PM

Sure. :)

UltimaKing 08-13-2002 02:31 PM

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

Database error in vBulletin 2.2.6:

Invalid SQL: SELECT quizid, quiztitle, description, timestamp, userid, catid, imagename
FROM quiz
WHERE approve = 1
ORDER BY timestamp DESC
LIMIT
mysql error: You have an error in your SQL syntax near '' at line 5

Is there something wrong with the quiz.php file?

TWTCommish 08-13-2002 03:13 PM

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

UltimaKing 08-13-2002 03:56 PM

haha, now I feel stupid.

Thanks a lot, and happy birthday!

Ryangel 08-13-2002 10:49 PM

Quote:

Originally posted by TWTCommish
Sure. :)
Thanks :)


Yeah, Happy Birthday!

TWTCommish 08-14-2002 01:32 PM

Thanks guys. :D


All times are GMT. The time now is 05:49 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01448 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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