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


All times are GMT. The time now is 12:31 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.01954 seconds
  • Memory Usage 1,772KB
  • 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
  • (3)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