HD Quiz

Audio disappeared

Published: January 28, 2025
Support status: closed

Hi, the audio files for questions 6 and 7 are there any more and I can’t add them. I tried to upload again in “before question content”. No success. I also noticed that all the audio disapperead from all my quizzes 🙁 Help please?

thread author: carole

Hi carole,
I cannot remember, but if I previously provided custom code to add audio/video content then then issue is that code would have only be compativle with the 1.8.x branch, not the new 2.0 branch. If you can provide me with the thread where I sent you the orignal code, I can send you a modified version that works with 2.0

28 January 2025 — 13:25 support admin - Dylan

I don’t remember you giving any code. You just talked about the adon and it worked when I uploade my mp3 files:

m4a for audio file or mp3?

Question Featured Audio?

28 January 2025 — 16:42 thread author - carole

Hi Carole,
you just sent me down a rabbit hole, haha.

First, to set the stage.

That addon is no longer needed, as I built the feature into HDQ 2.0 directly. However, the field name is different from the one in the addon which is why they disappeared for you.

I’ll update the addon for 2.0 compatibility so that you won’t need to re-add the audio again.

HOWEVER

> I tried to upload again in “before question content”. No success.

This is weird, as that field is the one I built in to replace the addon. It should work. So I tested it and… you’re right, nothing happens. Except it does work. It turns out WordPress currently has a bug with the classic editor and embedding audio/video. If you switch to “text” edit mode you’ll actually see the embed shortcode there, and saving and viewing the quiz will correctly show the embedded media.

I tracked it down and the WP bug is related to the feature that will automatically turn website urls into links. If I disable that, then embeds work as intended again.

So what I’ll do today is push a small patch to HD Quiz to fix the embeds (as that’s more useful than converting text urls to links), and I’ll respond here with the update to the addon so that you won’t need to add each embed again.

30 January 2025 — 14:34 support admin - Dylan

Hi, sorry for the delay in responding. I was a bit sick. Thanks for all your work. Looking forward for the update to the addon:) have a good day.

05 February 2025 — 05:32 thread author - carole

Hi, how are you? Is there any news about the addon please?

10 February 2025 — 04:56 thread author - carole

Hi Carole,
yes, not only was HD Quiz itself updated last week to bypass the WP Editor link bug, but I have also now updated the old addon as well. Same download link as before:

https://hdplugins.com/plugins/hd-quiz/HDQMediaAddon.zip

NOTES TO ANYONE ELSE READING THIS: This addon is for use with this user and the few others who needed it BEFORE HD Quiz version 2.x.x. Since this functionality is now baked in, the only thing this addon will do is allow legacy users to not have to add the content again.

10 February 2025 — 19:47 support admin - Dylan

Thanks. I just installed it and unfortunately, I don’t see the audio files on my quizzes.

12 February 2025 — 11:28 thread author - carole

Unfortunately, that means that the data must have been overwritten at some point. The good news (for whatever it’s worth) is that you no longer need the addon. As long as you are using the most recent version of HD Quiz, you can use the “Before question content” section to add your audio files again.

12 February 2025 — 12:57 support admin - Dylan

Respond to thread

This thread has been closed / marked as resolved.
You can reply to this thread, but it might be better to start a new thread if you need help
.

You can also upload images to imgur and paste the links here. Just make sure that your images don't include any sensitive information.

Submit