Need to add a contact detail

strongarm_playa

Active member
So I want to add a phone number section in the personal contact details section on profile pages. How do I go about doing this?
I want to be able to click on the number and send a text or call whenever I am mobile.
 
Ok, good question :)

You'd need to create a new custom field:

Admin CP > Users > Custom User Fields > Create New

Set this up accordingly.

Most mobile devices will automatically parse phone numbers.

It can be forced by setting the value HTML output to:

<a href="tel:{$value}">{$value}</a>

But that will then display phone numbers as URLs even on non-mobile browsers and may not work on some phone number formats.
 
You probably can't.

Tel links are usually only parsed in HTML - that'd be in Safari and Mail etc. I don't think they even work in third party browsers.

A solution would be to use the HTML output I posted above, but again I'm not certain Tapatalk would output it and it would render the HTML in desktop browsers too.
 
Back
Top Bottom