vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - [DBTech] vBQuiz v2 (vB4) (https://vborg.vbsupport.ru/showthread.php?t=262358)

DragonByte Tech 08-13-2011 11:25 AM

Quote:

Originally Posted by Robru (Post 2232959)
Another bug is:

View ... quiz results (profile.php?do=userresults&u=XXX) Get a blank screen.

How did you get to profile.php?do=userresults?
It should be vbquiz.php?do=userresults

Robru 08-13-2011 11:41 AM

1 Attachment(s)
Look at the bottom of the attachment ;)

DragonByte Tech 08-13-2011 05:24 PM

Quote:

Originally Posted by Robru (Post 2232963)
Look at the bottom of the attachment ;)

Open template
dbtech_vbquiz_quiz_view_entries

Find
PHP Code:

<li><a href="profile.php?{vb:raw session.sessionurl}do=userresults 

and replace with
PHP Code:

<li><a href="vbquiz.php?{vb:raw session.sessionurl}do=userresults 


BadgerDog 08-13-2011 08:44 PM

Quote:

Originally Posted by DragonByte Tech (Post 2232956)
Really sorry about that. If you edit the plugin, Build Quiz Type List
and change
PHP Code:

if (file_exists(DIR '/dbtech/vbquiz/hooks/dbtech_vbquiz_create_complete.php')) 

to
PHP Code:

if (file_exists(DIR '/dbtech/vbquiz_pro/hooks/dbtech_vbquiz_create_complete.php')) 

It will fix that.

I'm not positive about rolling it back. You can try to upload the old files, edit the product to be version 1.1.0 and then import the 1.1.1 xml product and it should work.

Dylan

Fixed ... add quiz now works ... will stay with this build for now ...

Can you advise when the download is updated with this fix?

Thank you .. :)

Regards,
Doug

Robru 08-14-2011 05:20 AM

Quote:

Originally Posted by DragonByte Tech (Post 2233093)
Open template
dbtech_vbquiz_quiz_view_entries

Find
PHP Code:

<li><a href="profile.php?{vb:raw session.sessionurl}do=userresults 

and replace with
PHP Code:

<li><a href="vbquiz.php?{vb:raw session.sessionurl}do=userresults 


Thanks Dylan, this is the solution for this problem ;)

DragonByte Tech 08-17-2011 03:02 PM

Updated to 1.2.1
  • Fixed error with user results dropdown
  • Fixed quiz dropdown error on quiz create
  • Fixed ACP maintenance rebuild score error
Dylan

DragonByte Tech 08-18-2011 10:57 PM

I just uploaded a hotfix for 1.2.1 to fix a problem with editing questions. If you installed 1.2.1 then download the package again and reinstall the xml file to fix the problem. The php files are fine how they are.

Dylan

Mulle 08-24-2011 08:09 PM

I run 1.2.1 but no questions is shown!

Only a white page apears when I click "Continue the quiz"

DragonByte Tech 08-25-2011 07:07 AM

Quote:

Originally Posted by Mulle (Post 2237597)
I run 1.2.1 but no questions is shown!

Only a white page apears when I click "Continue the quiz"

Sounds like there is an error but you don't have debug on so it's not showing. Can you pm me the site and an account that can create/take quizzes?

Dylan

misericorde 08-25-2011 11:42 PM

Thank you very nice.

French translation? Dragonbyte-Tech.com

Akangage 08-27-2011 07:02 AM

Wow...great :) i can implement on my vbull, we can take profit from here by takin sponsor :D

kfyonur 08-27-2011 07:30 AM

Can we show the top 10 list in the sidebar ?

DragonByte Tech 08-28-2011 05:48 AM

Quote:

Originally Posted by kfyonur (Post 2238636)
Can we show the top 10 list in the sidebar ?

I'll add it to the future request list. It's not possible to do it now.

kurfer 09-12-2011 04:19 AM

Hi, great mod so far! Is there a way to make vBQuiz not make my question images so small? I when I upload a question image it resizes them and makes them too small to read. :(

kurfer 09-12-2011 04:27 AM

Nevermind, just figured it out. Didn't realize it was in the admincp settings.

dionak 09-14-2011 03:31 PM

I am working on a site that has a series of quizes already implemented as a Movable Type blog, with the results being saved in a cookie. Problem is if a user takes quizes on a different machine, the results are never sync'ed.

vBulletin 4 is installed on a subdomain for forums, and we are using MediaWiki for a wiki, with vbMediaWiki plugin for single-signon between those 2 products.

Do you think this mod could serve as a back-end to save the MT quiz results in a user's vB account? Has anyone integrated this with MT or any other software?

DragonByte Tech 09-14-2011 05:30 PM

Quote:

Originally Posted by dionak (Post 2245930)
I am working on a site that has a series of quizes already implemented as a Movable Type blog, with the results being saved in a cookie. Problem is if a user takes quizes on a different machine, the results are never sync'ed.

vBulletin 4 is installed on a subdomain for forums, and we are using MediaWiki for a wiki, with vbMediaWiki plugin for single-signon between those 2 products.

Do you think this mod could serve as a back-end to save the MT quiz results in a user's vB account? Has anyone integrated this with MT or any other software?

I've never played with MT. I'm not sure what you are wanting to do? If you are talking about using our quiz mod to just store the results while using MT to run the quizzes, it probably wont work. The way the results are stored requires the quiz mod to be controlling the quizzes.

Dylan

waylandprod 09-19-2011 03:57 PM

Like the product, just purchased pro. When I try to sort by highest individual score I get this error.
Quote:

Originally Posted by VB
Database error in vBulletin 4.1.5:

Invalid SQL:

SELECT
q.*,
u.username,
t.taken_id,
t.completed,
t.completed_date,
t.final_result_text
FROM dbtech_vbquiz_quiz q
LEFT JOIN user u ON q.userid = u.userid
LEFT JOIN dbtech_vbquiz_taken t ON q.quiz_id = t.quiz_id
WHERE
t.userid = 67
ORDER BY
percent_score DESC
LIMIT
0, 5;

MySQL Error : Unknown column 'percent_score' in 'order clause'
Error Number : 1054
Request Date : Monday, September 19th 2011 @ 10:55:47 AM
Error Date : Monday, September 19th 2011 @ 10:55:47 AM
Script : http://www.zombiepodcast.com/forum/v...ort=high_score
Referrer : http://www.zombiepodcast.com/forum/v...erresults&u=67
IP Address : xxx.xxx.xxx.xxx
Username : TCM Revolver
Classname : vB_Database
MySQL Version : 5.0.84

Also is there a way to alter the way scores are displayed on the leaderboard?? It is set to percentage now, is there a way we could do it by total points scored?? The percentage basis seems to be a bit off. When you take 1 quiz and get every question right, only registers a score of 50%. After 34, not missing a question, only get score of 99%
Do I possibly have something set wrong?

Thanks in advance.

ozzy47 09-19-2011 05:09 PM

Please post pro support issues in the correct forum on the DBT website.

DragonByte Tech 09-21-2011 10:07 AM

The error I'll answer here since it could happen with both lite and pro and because I love anything zombie.
Open dbtech/vbquiz/actions/userresults.php

About line 218 you'll find

Code:

        $quiz_query = $vbulletin->db->query_read("
            SELECT
                q.*,
                u.username,
                t.taken_id,
                t.completed,
                t.completed_date,
                t.final_result_text
            FROM " . TABLE_PREFIX . "dbtech_vbquiz_quiz q
            LEFT JOIN " . TABLE_PREFIX . "user u ON q.userid = u.userid
            LEFT JOIN " . TABLE_PREFIX . "dbtech_vbquiz_taken t ON q.quiz_id = t.quiz_id
            WHERE
                t.userid = " . intval($u) . "
            ORDER BY
                " . $query_vars . "
            LIMIT
                " . ($limitlower - 1) . ", " . $perpage
        );

replace with
Code:

        $quiz_query = $vbulletin->db->query_read("
            SELECT
                q.*,
                u.username,
                t.taken_id,
                t.completed,
                t.completed_date,
                t.final_result_text ,
                (t. final_score/t.possible_score) as percent_score
            FROM " . TABLE_PREFIX . "dbtech_vbquiz_quiz q
            LEFT JOIN " . TABLE_PREFIX . "user u ON q.userid = u.userid
            LEFT JOIN " . TABLE_PREFIX . "dbtech_vbquiz_taken t ON q.quiz_id = t.quiz_id
            WHERE
                t.userid = " . intval($u) . "
            ORDER BY
                " . $query_vars . "
            LIMIT
                " . ($limitlower - 1) . ", " . $perpage
        );

For the other problem, can you create a thread on the DBT site? It could involve things not available in the lite version and saves on confusion. Thanks.

Dylan

NgocTam 09-26-2011 11:27 AM

How to edit lang "You have xxx seconds left" ?

kfyonur 09-26-2011 11:34 AM

Quote:

Originally Posted by NgocTam (Post 2250167)
How to edit lang "You have xxx seconds left" ?

admin cp language manager

NgocTam 09-26-2011 12:13 PM

Quote:

Originally Posted by kfyonur (Post 2250170)
admin cp language manager

No Phrases Matched Your Query :(

kfyonur 09-26-2011 01:31 PM

Quote:

Originally Posted by NgocTam (Post 2250180)
No Phrases Matched Your Query :(

Search in sentences - You have {time_left} left.


$vbphrase[dbtech_vbquiz_tl_time_left]

misericorde 10-01-2011 11:51 AM

Hi

when the player has finished the test. How can t he see the answer?

DragonByte Tech 10-01-2011 05:58 PM

Quote:

Originally Posted by misericorde (Post 2251922)
Hi

when the player has finished the test. How can t he see the answer?

I am sorry,
Viewing correct answers after completion is a pro only feature.

Dylan

ngocol 10-02-2011 08:40 AM

mark instaled thanks

Dilkolik 10-03-2011 07:08 PM

thank you very much. This is a very useful for my forum. But Although i install the files correctly, i get an error message like this :

Quote:

We are sorry but you do not have permissions to view vBQuiz. Please speak with the administrator if you feel this is an error.
Not : I have edited permissions
please help me.

Bergler 10-03-2011 11:42 PM

Is there a way to incorporate images into the quizzes? I would love to be able to ad a picture and have people identifiy it with a multiple choice.

DragonByte Tech 10-04-2011 06:52 AM

Quote:

Originally Posted by Dilkolik (Post 2252848)
thank you very much. This is a very useful for my forum. But Although i install the files correctly, i get an error message like this :



Not : I have edited permissions
please help me.

Double check your usergroup permissions. That is the only thing that drives if someone can do something with the quiz mod or not.

Dylan

DragonByte Tech 10-04-2011 06:54 AM

Quote:

Originally Posted by Bergler (Post 2252928)
Is there a way to incorporate images into the quizzes? I would love to be able to ad a picture and have people identifiy it with a multiple choice.

With multiple choice you can have the question and any/all of the answers be an image, text or both.

Dylan

93Corvette 10-14-2011 01:41 PM

Since there is both a VB3 and a VB4 using the same version numbers (ie. 1.1.1 and 1.2.1) are they the same program? If I downloaded the VB3 will it work on VB4, or if I download VB4 will it work on VB3?
I run two website one using VB3, and one using VB4. I'd hate to have two separate folders of the same program if it's not needed.

Here is the vb3 mod...
https://vborg.vbsupport.ru/showthread.php?t=262924

93Corvette 10-14-2011 01:59 PM

Also, is it just text you can have for the test? or can you have a picture, and have something like:



https://vborg.vbsupport.ru/
What is this rank?
A. Sargent
B. Captain
C. Private
D. Major

DragonByte Tech 10-14-2011 06:50 PM

Quote:

Originally Posted by 93Corvette (Post 2257159)
Since there is both a VB3 and a VB4 using the same version numbers (ie. 1.1.1 and 1.2.1) are they the same program? If I downloaded the VB3 will it work on VB4, or if I download VB4 will it work on VB3?
I run two website one using VB3, and one using VB4. I'd hate to have two separate folders of the same program if it's not needed.

Here is the vb3 mod...
https://vborg.vbsupport.ru/showthread.php?t=262924

It is the exact same zip file, the php files are the same between the vB3 and vB4 versions, the only difference is the xml product file that needs to be imported.

EDIT:
Just make sure you download the latest version. If I do vB4 only fixes then I will only update the vB4 thread, so you might have different versions between the vB3 and vB4 threads.


Quote:

Originally Posted by 93Corvette (Post 2257165)
Also, is it just text you can have for the test? or can you have a picture, and have something like:



http://i1117.photobucket.com/albums/...t/Forum/e2.gif
What is this rank?
A. Sargent
B. Captain
C. Private
D. Major

With multiple choice quizzes you can have a mix of text/images on both the question and answers, so yes, you could make a question like that example.


Dylan

NgocTam 10-18-2011 10:13 AM

how to show result after completed the quiz ?

jreuc 10-28-2011 11:08 AM

In the personality test, I cannot find how to add personalities nor how to assign scores for each personality.

DragonByte Tech 10-30-2011 02:58 AM

Quote:

Originally Posted by NgocTam (Post 2258519)
how to show result after completed the quiz ?

It should automatically show the results? Or do you mean the correct answers?

Dylan

DragonByte Tech 10-30-2011 03:02 AM

Quote:

Originally Posted by jreuc (Post 2262293)
In the personality test, I cannot find how to add personalities nor how to assign scores for each personality.

The result generator quiz would probably fit better to create a personality quiz.
The Personalty by Decado is more of building sentences/paragraphs that match up with the answers they select for each question.

Dylan

Schulle 12-09-2011 10:24 AM

hi,
actualy i cant activate the chat for registered user, so they can play. They can see the quiz, but when they try to play, they got the error-message by dbtech_vbquiz_take_not_app

Which Options are necessary for playing only ?

Schulle

harm63 12-09-2011 12:54 PM

Nice, will be perfect for my site ( when i can translate to dutch but i will not install
because i don't like a link to Link to Hivelocity Hosting ( a hosting company)
copyright ok but a add ????

maybe when you have a paid version without Link to Hivelocity Hosting


All times are GMT. The time now is 11:40 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.01554 seconds
  • Memory Usage 1,848KB
  • 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_code_printable
  • (6)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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