Customizing SMF > Modifications and Packages
SMF Quiz
davejo:
--- 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?
--- End quote ---
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? :-\
--- End quote ---
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.
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>
Kindred:
--- 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?
--- End quote ---
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.
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).
--- End quote ---
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. ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version