SMF Quiz

Started by Diego Andrés, February 18, 2009, 01:08:19 PM

Previous topic - Next topic

mrselnombre

I would like to be able to call some of the information from my quiz statistics page to elsewhere on my forum.
Like Top 10 Quiz Winners to a block on my simple portal. Any tips on how to go about doing it?
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

FrizzleFried

Yeah,   a top 10 for a PHP block would rock!

XHIBIT911

QuoteIf the league proceeds (i.e. round 2, etc.), but the leader is always the same could be a problem of a scheduled task not triggered or that doesn't work at all.

Try going to admin > maintenance > scheduled tasks, you should find a scheduled task related to the quiz, try to run it manually and see if the league is updated.

Sources/ScheduledTasks.php on line 633

Fatal error: Call to undefined function parseleaguemessage

emanuele

mmm...that's strange.

XHIBIT911 could you please attach here your ScheduledTasks.php (Sources directory).


Not so strange, please check in your SMFQuizAdmin.php, line 307, there should be something like:
if (function_exists('ParseLeagueMessage'))
{

change it to:
if (!function_exists('ParseLeagueMessage'))
{


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

XHIBIT911

Wow !
Thanks so much, that one solitary exclamation point fixed it all !
Thank you so much again

emanuele

* emanuele has to fix that...


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

emanuele

Okay, uploaded a new "beta" version, it includes this last fix and some other fixes (or bugs, who know! :P).


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

XHIBIT911

Is there an available php code for portal blocks that would call the Quiz Masters most wins category ?

vkot

#688
I want to make a music quiz, the members will hear a few seconds from a song and will say which one it is.
I guess that this script can easily be modified to play an audio file. Instead of displaying a string with a question, it could embed an mp3 player with the audio file. Right? Has anyone done this yet?

I tried to install it but the installation gives me errors at smf2/modification.xml and it doesn't tell me the line numbers so that I can go and see for myself. Now, I have to check ALL search strings in the xml to find the errors?  :-\
For specialized SMF installation/customization, Web Development, Linux Server Administration, click here.
Για εξειδικευμένες υπηρεσίες στα παραπάνω, πατήστε εδώ.

emanuele

Did you download the "beta"?

Seems to install fine here.
Exactly what error did you get?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Dave J

Quote from: vkot on August 27, 2012, 02:48:50 PM
I want to make a music quiz, the members will hear a few seconds from a song and will say which one it is.
I guess that this script can easily be modified to play an audio file. Instead of displaying a string with a question, it could embed an mp3 player with the audio file. Right? Has anyone done this yet?

I looked at trying to do this myself but then went on to something else. The problem as I saw it was that the program uses JS script to run the quiz, so it would mean a script re-write to accommodate it.

Quote from: vkot on August 27, 2012, 02:48:50 PM
I tried to install it but the installation gives me errors at smf2/modification.xml and it doesn't tell me the line numbers so that I can go and see for myself. Now, I have to check ALL search strings in the xml to find the errors?  :-\

All this means is that you have mods installed that have overwritten the default code that the quiz is trying to write to. Go back to the install and look at the templates that need manual code install.
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

vkot

Yes, I guess it's because of my installed mods, but the installation doesn't show me where exactly are the errors (like in other mods), so I'll have to check all changes in the modification.xml, from the beginning.

I had a quick look at the code. I guess I could put the mp3 filename as the question, and try to replace somehow like this:
echo $row['question_text']
with:
<embed type="application/x-shockwave-flash" src="http://blahblah/player.swf?audioUrl='.$row['question_text'].'" /></embed>

For specialized SMF installation/customization, Web Development, Linux Server Administration, click here.
Για εξειδικευμένες υπηρεσίες στα παραπάνω, πατήστε εδώ.

Kindred

#692
Quote from: vkot on August 27, 2012, 02:48:50 PM
I guess that this script can easily be modified to play an audio file. Instead of displaying a string with a question, it could embed an mp3 player with the audio file. Right? Has anyone done this yet?

You guess that would be an easy modification?   No, I don't think it would be easy at all....   Changing a text display to a "play an mp3" is not that easy... especially not within a script that is already doing a dozen things to display on the screen.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

novill

Quote from: emanuele on August 26, 2012, 09:20:52 AM
Okay, uploaded a new "beta" version, it includes this last fix and some other fixes (or bugs, who know! :P).

If i guess well, this new version update (smf_quiz-1.1.1) does not repair the following error.

https://bitbucket.org/emanuele_smf_projects/smf-quiz/issue/18/utf8-and-iso-charsets

I've tried this new version, but i have the same problem with the characters.
Installation was successful without error.

emanuele

Oh no, sorry, but for that one I need a bit more time to check everything.
You can expect to find something related to charsets when the version will be 1.2. ;)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

CapadY

I'm new with this MOD and still have to figure out a lot.

I want my moderators to be able adding quizzes so I gave them the permissions to do so.

So I made an test account with just moderator permissions to test it.
But, when I open SMF-Quiz in the main menubar I can't find a possibility to add a new quiz.
When I go to the Admin part in the main menu I can't find an option to add a quiz either. As a matter of fact, the whole quiz item isn't shown within the Admin menu.

Is there somebody who can explain me how I can let my moderators add Quizzes ?
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

emanuele

quiz > user quizzes
On that page on the left side at the bottom there is a "add new quiz" button.
Instead, for the admin page:
Admin > forum > quiz > quizzes
at the end of the table (on the left) there is a buttong "new quiz".


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

CapadY

It's to simple :s

Thank you very much :D
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

vkot

Quote from: Kindred on August 27, 2012, 04:58:01 PM
Quote from: vkot on August 27, 2012, 02:48:50 PM
I guess that this script can easily be modified to play an audio file. Instead of displaying a string with a question, it could embed an mp3 player with the audio file. Right? Has anyone done this yet?

You guess that would be an easy modification?   No, I don't think it would be easy at all....   Changing a text display to a "play an mp3" is not that easy... especially not within a script that is already doing a dozen things to display on the screen.

I just installed the mod. As I imagined (and hoped), I just needed to put the html code in the question text. For example, I put:
<embed type="application/x-shockwave-flash" flashvars="audioUrl=http://www.labnol.org/assets/mp3/unofficial-yahoo-song.mp3" src="http://google.com/reader/ui/3523697345-audio-player.swf" ></embed>
and it works!  ;)
I just need to make the the question text field character limit higher.

I'm happy now! And also I'll translate the mod to greek.
For specialized SMF installation/customization, Web Development, Linux Server Administration, click here.
Για εξειδικευμένες υπηρεσίες στα παραπάνω, πατήστε εδώ.

kenso

Hi looks great! We have installed this mod but for some reason it stalls on the loading bar, how can we fix it?
The Farmers and self-sufficiency forum
http://www.ozfarmer.com.au

Advertisement: