Okay
  Public Ticket #1858977
Linking using html code
Closed

Comments

  • coroshiba started the conversation

    I set a column field type to be string. In the first cell entry for that column, I entered in html code to link a url to text, i.e. <a href="http://onlineraceresults.com/event/view_event.php?event_id=13251" title="http://onlineraceresults.com/event/view_event.php?event_id=13251" target="_blank">Results

    But, when I click 'apply', it saves a blank entry into that cell. (By the way, even this post I'm writing converts this into a text link. When I paste it directly into this post, it simply enters 'Results' with the proper link.)

    How do I resolve this issue?

    Thanks,

    Chris

  •  2,572
    Aleksandar replied

    Hello Chris.

    I used the code from the attachment in my local environment and it works normally (See attachment).

    <a href="http://onlineraceresults.com/event/view_event.php?event_id=13251" title="http://onlineraceresults.com/event/view_event.php?event_id=13251" target="_blank">Results</a>
    

    Can You, please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •   coroshiba replied privately
  •  2,572
    Aleksandar replied

    Hello again Chris.

    I logged in and saw the issue. It is really strange. I haven't noticed any other issues other than this, so it leads me to believe there is a conflict with one of the installed plugins.

    Can You try disabling all plugins and then try again. Add a new row to one of the tables (Either the table ID=2, or the Support Test table I have created) and paste the code written in my previous reply. If it works - that confirms that there is a conflict with one of the plugins.

    Also, could You please provide me with Your PHPMyAdmin credentials, so that we can take a look?

    Please try this and let me know.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • coroshiba replied

    Thanks for looking at this so quickly.

    I deactivated every plugin except wpdatatables and the problem remains. Is there a workaround for this? I just want a clean link to a url in a table.

    Thanks,

    Chris

  • coroshiba replied

    Aleksandar: I've been trying to resolve this issue. One of the ways is to see if the plugin works on another website. It looks like there is a restriction on the plugin when I install it to another website so I can't test it. I'm at an impasse here. If I can't get the data table to work, the plugin won't work for me. Please help. I don't want to have to ask for a refund. I need it to just work.

    Thanks,

    Chris

  •  2,572
    Aleksandar replied

    Chris,

    I have to be completely honest here and say that I don't know why it won't allow you to insert a simple link in a string type column. I will forward this to one of our developers, and we'll go into some detailed testing, because this issue is really a new one and we haven't run into it until now.

    In the meantime, I changed the RESULTS' column's type and input to URL Link, and it works just fine when I paste the link in that cell:

    http://onlineraceresults.com/event/view_event.php?event_id=13251

    If You click on "Edit" in the row where the button is, you'll see the plugin changed the output to:

    http://onlineraceresults.com/event/view_event.php?event_id=13251||<button class="">Show results</button>
    

    So, when You click on Edit or New, you just type the URL, and the plugin changes it automatically to this second line of code, so that it can read it without issues.

    Please use that for now, and I'll get back to you when we inspect what's going on with string columns.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  2,572
    Aleksandar replied

    Hello again Chris.

    We seem to have found the issue.

    Can you please tell me which version of libxml do you use?

    You should find the libxml version in your php.info file.

    I believe the version is less than 2.7.8 and that's what the issue was.

    I opened the Editor, under Plugins, and in file

    wp-content/plugins/wpdatatables/source/class.wdttools.php and around line 825 I found this code:

    if (self::isHtml($string)) {
    $string = self::stripJsAttributes($string);
    }

    and commented it so the code look like this:

    //if (self::isHtml($string)) {
    //$string = self::stripJsAttributes($string);
    //}

    The issue with the 

    <a href="http://onlineraceresults.com/event/view_event.php?event_id=13251" title="http://onlineraceresults.com/event/view_event.php?event_id=13251" target="_blank">Results</a>

    is resolved now. Please take a look at the SUPPORT TEST table and see how it works with URL link and with the string column type. You shouldn't have any more problems with this.

    Also, please save this somewhere, because if you can't update the libxml version, you'll have to comment these three lines of code again when you update our plugin in the future.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •   coroshiba replied privately
  •  2,572
    Aleksandar replied

    You are welcome Chris. Glad that we solved the issue.

    I think godaddy hides it and makes it inaccessible, from what I've read

    Be that as it may, no need to worry about it now. Just save the reply for when you update the plugin in the future, and you'll be good to go.

    If you have any more issues or questions feel free to open a new ticket, we will gladly help.

    We'd greatly appreciate it if you could take a minute and leave a Review on CodeCanyon on this link. Thanks! 

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables