• Resolved dahaiyi

    (@dahaiyi)


    Hello.
    Your plugin is very nice. Congratulations. I have a few questions.

    1) What can I do to use WP Editor in question title?
    (Sometimes I need to show icons and links in the question text.)

    2) I can’t choose visuals for questions. It shows an “.url” error.

    Thanks in advance for your help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Harmonic Design

    (@harmonic_design)

    Hi dahaiyi.

    For your first question, the best way is to actually have custom text and icons and stuff inside a “featured image”. Special characters and coding is stripped from question titles for security – a question title is the same as a regular post or page title as far as WordPress is concerned. There are ways around this, but they can be a bit tedious, so let me know if the above would be a valid work around for you.

    However, the biggest issue is your second question. Can you please further explain what “It shows an “.url” error” means? Like, where are you actually seeing that error? Can you take a screenshot?

    Thread Starter dahaiyi

    (@dahaiyi)

    I will do what you say for question 1.
    2. Question for error message:

    Uncaught TypeError: Cannot read property 'url' of undefined
    at h.Collection.<anonymous> (hdq_admin.js?v=1.7.0&ver=1.0:97)
    at p (load-scripts.php?c=1…pload&ver=5.3.2:297)
    .
    .
    .
    

    I click the “Set featured image” button and after I select the image from the gallery, this error message is written in the console and the image does not change. As a solution, I made a change. In doing so, the picture was selected, but it doesn’t appear to have changed in the admin panel.

    Change: imgURLfull = jQuery('#hdq_featured_image').val(attachment.url);

    • This reply was modified 4 years, 10 months ago by dahaiyi.
    Plugin Author Harmonic Design

    (@harmonic_design)

    That’s interesting. Can you confirm that the file type is a valid type? The only time I can see this happening is if you use a non-image file type, like a PDF or MP3 or something. Does it happen with multiple different images? What is the file size / resolution of the image? What version of WordPress are you using?

    This is the first I’ve seen of the issue and I’ve been unable to replicate.

    Thread Starter dahaiyi

    (@dahaiyi)

    WP Version: 5.3.2
    File Type: PNG

    I upload the file, but I can’t select it. My selection is not being saved.

    Thread Starter dahaiyi

    (@dahaiyi)

    Excuse me. The problem is on my site. But I don’t know why.

    I want to ask one more question.

    When we add only pictures to the answers, the answers do not appear, and only appear when I write text next to them.

    Hi Dahailyi

    As far as I am aware you need to have a text answer alongside picture answers. To get round this, I use A, B, C, and D which works well.

    Also, to make the layout look best, two or four picture answers look good rather than three or five.

    Cheers

    Gavin

    (HD Quiz user)

    (Also, regarding your first question, do check your PNG image is appearing and displaying correctly in your Media library, although it does sound like a problem with your hosting. I am using PNG images with HD Quiz and they are working fine with no problems.)

    • This reply was modified 4 years, 10 months ago by Rev Gav.
    • This reply was modified 4 years, 10 months ago by Rev Gav.
    Thread Starter dahaiyi

    (@dahaiyi)

    Thank you @bzzktt , @harmonic_design

    Solution of the Problem;

    I didn’t use a thumbnail on my site, and I only used it in its original size. Therefore, the plugin could not find a thumbnail and was giving a “.url” error.

    I changed the code of “attachment.sizes.thumbnail.url” to “attachment.sizes.full.url” and solved the problem.

    Thank you so much.

    Plugin Author Harmonic Design

    (@harmonic_design)

    Glad you got this sorted out and thank you to @bzzktt for your input as well.

    Please take the following as just some food for thought, but generally speaking, I do not think it is a good idea to disable thumbnails on your site. Sure, it will take up a bit more storage space, but the trade-off is higher compatibility with plugins and themes that rely on them, as well as an overall faster page load time on your site in places where the thumbnail should be loaded but the “full” image has to load instead. WordPress even uses the srcset html feature that will load the thumbnail, medium, large, or full image version depending on your device’s data saver setting and screen size. So disabling thumbnails would be hurting any users who explicitly set their devices to low data or are on smaller screen sizes.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘What can I do to use WP Editor in question title?’ is closed to new replies.