close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Opt out of logic for mobile tel: tag?

Thread began 1/24/2017 1:48 pm by Steve | Last modified 5/24/2019 11:43 am by Ray Borduin | 1670 views | 10 replies |

Steve

Opt out of logic for mobile tel: tag?

Hello,

https://developers.google.com/web/fundamentals/native-hardware/click-to-call/

<a href="tel:+1-888-555-1611" class="link">(888) 555-1611</a>

This fails when a page has a Framework theme in place.

It will render like this :
/Templates/tel:+1-888-555-1611

Where in the framework files can we write an opt out so the telephone link fires like it should since Mobile sites are essential as well as their related basic technologies.

Sign in to reply to this post

Steve

Solved.

Update framework.php line 147
TO:

$ignore = '/^(https?%3A%2F%2F|https?:\/\/|mailto:|tel:|javascript:|#|\/)/i';

WAS:
$ignore = '/^(https?%3A%2F%2F|https?:\/\/|mailto:|javascript:|#|\/)/i';

Sign in to reply to this post

Steve

Can we get this solution added to the LIVE product???

Or is there a way to update the core functions so this is not needed on each site?

Sign in to reply to this post

Ray BorduinWebAssist

It was updated in the live product a long time ago. The current line reads:

$ignore = '/^(https?%3A%2F%2F|https?:\/\/|mailto:|javascript:|cid:|callto:|wtai:|sms:|market:|geopoint:|ymsgr:|msnim:|gtalk:|skype:|sip:|whatsapp:|geo:|data:|tel:|#|\/)/i';

Sign in to reply to this post
Did this help? Tips are appreciated...

Steve

Weird as I just faced this problem yesterday and have the latest version of DataBridge... I'll try to debug when there is some free time.

Sign in to reply to this post

Ray BorduinWebAssist

Reinstall the latest version of DataBridge and it should update any future applications.

Sign in to reply to this post
Did this help? Tips are appreciated...

Steve

Reinstalled after downloading version 2.3.5

Created a test file and added the simple link:
https://wishuponacure.org/temp.php

<a href="Templates/tel:+1-240-426-5766" class="link">(240) 426-5766</a>  <i class="fas fa-phone brown"></i>




The exact same link is in the template but it does not work as it adds /Templates/ to the path...

Framework version 2.01 and lines referencing "tel:" are

preg_match($matchpat,$subStr,$subPats);
$ignore = '/^(https?%3A%2F%2F|https?:\/\/|mailto:|javascript:|cid:|callto:|wtai:|sms:|market:|geopoint:|ymsgr:|msnim:|gtalk:|skype:|sip:|whatsapp:|geo:|data:|tel:|#|\/)/i';
$combineDir = rel2abs($startDir,$endDir);
Sign in to reply to this post

Ray BorduinWebAssist

Can I get FTP access? I'll take a look and figure out what needs to be fixed.

Sign in to reply to this post
Did this help? Tips are appreciated...

Steve

Sure thing

Sign in to reply to this post

Ray BorduinWebAssist

The uploaded framework.php file is not version 2.01, and the line is not updated in that file. I think if you upload the latest framework.php file it will fix the problem.

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...