Comments Marc started the conversationApril 23, 2020 at 10:14pmIs it possible to add an HTML Phone Number Call Link inside of a table? I added "<a href="tel:123-456-7890">123-456-7890</a>" to a field and it partly rendered but had an extra > and <.The goal is to have the user click the phone number inside of the table and have it call.Thanks!Marc repliedApril 23, 2020 at 10:39pmI should note that I was entering the code in an editable notes field as a test. As soon as I added it with CONCAT in the database, it worked. 2,572Aleksandar repliedApril 24, 2020 at 6:21pmHi MarcI'm glad to hear you got it to work.As for extra > and <, I believe this is caused by libxml. You should find the libxml version in your php.info file. If the version is less then 2.7.8 In file wp-content/plugins/wpdatatables/source/class.wdttools.php around line 927 find this code if (self::isHtml($string)) { $string = self::stripJsAttributes($string); } and comment it so the code look like this //if (self::isHtml($string)) { //$string = self::stripJsAttributes($string); //} It should work now for your version of libxml.Kind Regards, Aleksandar Vukovićaleksandar.vukovic@tmsproducts.io Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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 TablesMarc repliedApril 27, 2020 at 4:22pmGot it. thanks. OK to close! 2,572Aleksandar repliedApril 28, 2020 at 10:19amYou're welcome MarcIf you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.Kind Regards, Aleksandar Vukovićaleksandar.vukovic@tmsproducts.io Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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 TablesGeorge E repliedApril 28, 2020 at 6:23pmSorry to bump in.If I do this (comment out)//if (self::isHtml($string)) { //$string = self::stripJsAttributes($string); //}Does it mean I can use any html in cells? Like embedding media etc? 2,572Aleksandar repliedApril 30, 2020 at 6:07amHello GeorgeNo, this fix is for outdated libxml versions, and doesn't provide more features to the plugin.Embedding media (like a YouTube video for example) works fine, however. You just need to paste the correct code in the cell.Kind Regards, Aleksandar Vukovićaleksandar.vukovic@tmsproducts.io Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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 2Srinath repliedMay 3, 2020 at 4:56amHello MarcSorry to interfere.Can you please share the MySQL query used for adding the CONCAT in your database.With regardsSrinathMarc repliedMay 3, 2020 at 5:03amYou bet. It's CONCAT ('<a href="tel:', Phone, '">', Phone, '</a>') AS PhoneMarc Sign in to reply ...
Is it possible to add an HTML Phone Number Call Link inside of a table? I added
"<a href="tel:123-456-7890">123-456-7890</a>" to a field and it partly rendered but had an extra > and <.
The goal is to have the user click the phone number inside of the table and have it call.
Thanks!
I should note that I was entering the code in an editable notes field as a test. As soon as I added it with CONCAT in the database, it worked.
Hi Marc
I'm glad to hear you got it to work.
As for extra > and <, I believe this is caused by libxml.
You should find the libxml version in your php.info file.
If the version is less then 2.7.8
In file wp-content/plugins/wpdatatables/source/class.wdttools.php around line 927 find this code
if (self::isHtml($string)) { $string = self::stripJsAttributes($string); }
and comment it so the code look like this
//if (self::isHtml($string)) { //$string = self::stripJsAttributes($string); //}
It should work now for your version of libxml.
Kind Regards,
Aleksandar Vuković
aleksandar.vukovic@tmsproducts.io
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Got it. thanks. OK to close!
You're welcome Marc
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
Kind Regards,
Aleksandar Vuković
aleksandar.vukovic@tmsproducts.io
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Sorry to bump in.
If I do this (comment out)
//if (self::isHtml($string)) { //$string = self::stripJsAttributes($string); //}
Does it mean I can use any html in cells? Like embedding media etc?
Hello George
No, this fix is for outdated libxml versions, and doesn't provide more features to the plugin.
Embedding media (like a YouTube video for example) works fine, however. You just need to paste the correct code in the cell.
Kind Regards,
Aleksandar Vuković
aleksandar.vukovic@tmsproducts.io
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Hello Marc
Sorry to interfere.
Can you please share the MySQL query used for adding the CONCAT in your database.
With regards
Srinath
You bet. It's
CONCAT ('<a href="tel:', Phone, '">', Phone, '</a>') AS Phone
Marc