• Resolved confusedneedhelp

    (@confusedneedhelp)


    Hi,
    For a year or so I have been using a html <a href link in a text field. After installing the new version 5.5 a few days ago it seems that I can no longer use this. When I hit save it defaults to the link text and dumps the href info.
    Is this a bug or should it happen?
    Thanks for your response.
    David

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi @confusedneedhelp,

    Sorry that you ran into issues here!

    HTML should be allowed in the Long Description field, but only when you have the right setting enabled (for security reasons) under Directory Admin->Manage Form Fields.

    Under your Long Description field, do you have “Allow HTML in field?” enabled?

    If not, turn it on and that should fix it.

    If you DO have it enabled, then yes, you might have found a bug we need to fix.

    Please let me know.

    Thread Starter confusedneedhelp

    (@confusedneedhelp)

    Hi,
    Thanks for the quick reply.
    It is not in the long description (textarea) but it is in a regular text field (textfield) which does not appear to have that option.
    Any advice apart from use the URL field which I did not really want to do as it involves changing a lot of listings!

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi @confusedneedhelp,

    HTML is only supported in the long description field. If you want a hyperlink in the field, the only one that supports it outside of the Long Description is the Website field. Regular text fields aren’t setup to allow this right now.

    You can change this and still be able to edit the listings easily. Listings can be edited in bulk with a CSV export. Here’s our article on how to use that: https://businessdirectoryplugin.com/knowledge-base/csv-import-export/

    But that’s the quickest way to fix this. Change the fields, and then bulk edit the listings.

    I hope that helps.

    Thread Starter confusedneedhelp

    (@confusedneedhelp)

    Hi,

    No worries, it was working ok until the last update but I see I need to change things around. Thanks for the other info and your quick reply.

    Kind Regards,
    DG

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    You’re welcome. Please let me know if you have any other questions or issues!

    Thread Starter confusedneedhelp

    (@confusedneedhelp)

    Hi, so the problem is a little more serious than I first thought. I am actually using other text fields for upto 3 different shortcodes and a TripAdvisor widget consisting of html and a script. All of these have been working fine up until 5.5.

    I did make the selection on the Long Description textarea form field which you mentioned above, ticking both the allow html and allow shortcodes options. I then placed them one by one in the description area and none of them worked as before.

    I am now back with 5.4 and all is well. Is there any way of having this option back in a future release? I can’t believe I am the only one using html and shortcodes in textfields 😉

    I will in the meantime try and make them work in the Long Description field, I haven’t had the chance to see if there is a theme conflict or other issue.

    Thanks for your help.

    Thread Starter confusedneedhelp

    (@confusedneedhelp)

    Ok, ignore the last. I didn’t realise that you could have more than one textarea so I have changed from textfield to textarea and all is well.

    Thanks again.

    Thread Starter confusedneedhelp

    (@confusedneedhelp)

    The html links are working fine in the text area but I still cannot make a TripAdvisor widget work no matter what the setting is. It is like this, it was working ok in the textfield:
    <div id=”TA_cdsratingsonlynarrow675″ class=”TA_cdsratingsonlynarrow”> <ul id=”f1vI8AyGQz7″ class=”TA_links GBYKH5″> <li id=”zGUAL288″ class=”JhClxgL3″> TripAdvisor </div> <script async src=”https://www.jscache.com/wejs?wtype=cdsratingsonlynarrow&uniq=675&locationId=6378118&lang=en_UK&border=true&display_version=2″></script&gt;

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi @confusedneedhelp,

    That code is coming through kind of weird above. Can you please format it with the code tag in the editor so it doesn’t render as HTML?

    Thread Starter confusedneedhelp

    (@confusedneedhelp)

    <div id="TA_cdsratingsonlynarrow675" class="TA_cdsratingsonlynarrow"> <ul id="f1vI8AyGQz7" class="TA_links GBYKH5"> <li id="zGUAL288" class="JhClxgL3"> <a target="_blank" href="https://www.tripadvisor.co.uk/"><img src="https://www.tripadvisor.co.uk/img/cdsi/img2/branding/tripadvisor_logo_transp_340x80-18034-2.png" alt="TripAdvisor"/></a> </li> </ul> </div> <script async src="https://www.jscache.com/wejs?wtype=cdsratingsonlynarrow&uniq=675&locationId=6378118&lang=en_UK&border=true&display_version=2"></script>

    Hopefully this is better.

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Yes, much.

    So the script tag is one that is not allowed in the HTML for those fields. We scrub those tags for HTML sanitization. The reason for this is security. We don’t allow users to inject scripts into your site (and they’re the ones who primarily post content) and that also means that admins can’t add them if they want to. That’s most likely the reason it’s not working. The script part is gone, therefore the rest of the widget can’t render. Same with the img tag as well…

    The full list of tags we DON’T support is here:
    https://businessdirectoryplugin.com/knowledge-base/how-can-i-enable-html-in-my-fields/

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘html link not working in text field’ is closed to new replies.