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)

kevinnguyen 03-21-2003 03:50 AM

Quote:

Today at 05:18 AM LangTuDaTinh said this in Post #720
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

PHP Code:

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


PHP Code:

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

Quote:

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

    $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

Quote:

03-26-03 at 08:32 PM Lethal said this in Post #725
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?
Quote:

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

Quote:

03-30-03 at 12:52 PM Craigr said this in Post #730
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

Quote:

Today at 05:52 PM LangTuDaTinh said this in Post #733
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

Quote:

04-05-03 at 11:00 AM Craigr said this in Post #734
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/forum...tinfo&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

Quote:

04-10-03 at 08:13 PM LangTuDaTinh said this in Post #739
check out this one

http://forums.tvseriesfans.com/forum...tinfo&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

Quote:

04-10-03 at 08:13 PM LangTuDaTinh said this in Post #739
check out this one

http://forums.tvseriesfans.com/forum...tinfo&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/m...tinfo&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

Quote:

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

Quote:

Today at 04:24 AM LangTuDaTinh said this in Post #746
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/m...tinfo&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

Quote:

Today at 04:24 AM LangTuDaTinh said this in Post #746
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/m...tinfo&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

Quote:

Today at 03:01 AM Lethal said this in Post #747
should be DCN took a total of 36 quizzes


other then that, looks good ty

Quote:

Today at 04:29 AM Oblivion Knight said this in Post #748
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...).

king sting 04-14-2003 05:04 AM

can you make it so users can add quizes?

moosey 04-14-2003 01:57 PM

fantastic mate!!! added to my site:

http://www.forum.simplymaya.com

great hack - went on so easy (if you read the instructions LOL)

many thanks to you... going to add the extra bits now :D

Wheelzchair86 04-14-2003 07:55 PM

K i did alot all of it and this what came up



Database error in vBulletin 2.3.0:

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: Monday 14th of April 2003 04:03:37 PM
Script: http://www.lyricalwars.com/quiz.php
Referer:

Kyle0515 04-14-2003 08:24 PM

Great Hack!!!! Very easy to set up.... Thanks

LangTuDaTinh 04-14-2003 08:25 PM

u must go to admin cp > options> submit changes... or something ...

D|ver 04-20-2003 02:13 PM

really good hack :)
but can users also make quizzes which can be approved in the amin-cp?

i haven't found the link for the users to set up quizzes ...

LangTuDaTinh 04-20-2003 07:35 PM

Quote:

Today at 07:13 AM D|ver said this in Post #756
really good hack :)
but can users also make quizzes which can be approved in the amin-cp?

i haven't found the link for the users to set up quizzes ...




yes, i already have it on my website...

cinq 04-21-2003 02:51 AM

LangTuDaTinh , u managed to let users submit their own quizzes for admin approval ?

Could you share how you did it if so ?
Would sure be appreciated :)

Floh 04-21-2003 04:00 PM

Is it possible to stop the quiz at a definite time but still have the ability to view the results?

Thx,
Floh

Zelda-King 04-25-2003 09:19 PM

It's a little touch sensitive. If you accidentally press twice you forfeit the test. Can't it be made so the answers aren't counted until the test is complete, or one can restart the test until such time as they finish it and thus see the answers?


All times are GMT. The time now is 11:34 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.01900 seconds
  • Memory Usage 1,862KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (15)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