Osclass forums

Development => Plugins => Topic started by: George2735 on May 16, 2018, 03:19:19 pm

Title: Help my please - (Click on phone)
Post by: George2735 on May 16, 2018, 03:19:19 pm
Hello,  need the implementation to click on phone number (from a member profile | posted post | ) to open automatically number on the phone. to work on the all phone mobile, and browser.

For exemple:
on the internet explorer  from the phone work call member
but but after chrome no work call member from the mobile phone
Title: Re: Help my please - (Click on phone)
Post by: digitalsense on May 16, 2018, 03:39:39 pm
Hi

what is the URL have a look on below thing does it work for you than the code is simple


<a href="tel:+919876543210" target="_blank">TEL</a>
Title: Re: Help my please - (Click on phone)
Post by: George2735 on May 16, 2018, 03:48:13 pm
Thanks for the reply. But no like this, in sidebar where is profile and contact seller, i want when push on the number on the phone send number on you-r phone. 

i need modify this line

  <?php } ?>
    <?php if ( osc_user_phone() != '' ) { ?>
    <p class="phone"><i class="fa fa-phone"></i><?php printf('%s', osc_user_phone()); ?></p>
    <?php } ?>

when click on the number phone, opens in the my phone
Title: Re: Help my please - (Click on phone)
Post by: digitalsense on May 18, 2018, 02:12:40 pm
Just Change as below

<?php if ( osc_user_phone() != '' ) { ?>
    <p class="phone"><i class="fa fa-phone"></i><a href="tel:<?php printf('%s', osc_user_phone()); ?>"><?php printf('%s', osc_user_phone()); ?></a></p>
    <?php } ?>

I think the above code should work. It would be better if you share url of website so I can have a look on it