hi
I try to make a little tutorial to add a feature phone or sms directly to the seller numbers (for plugin osc_mobile)
this the script (add to item.php on osc_mobile plugin):
to call :
<a href="tel:<?php echo osc_user_phone(); ?>"><?php echo osc_user_phone(); ?></a>
or, you can add image with css like this
<a class="telp" href="tel:<?php echo osc_user_phone(); ?>"></a>
to sms no-text :
<a href="sms:<?php echo osc_user_phone(); ?>"><?php echo osc_user_phone(); ?></a>
or, you can add image with css like this
<a class="sms" href="sms:<?php echo osc_user_phone(); ?>"></a>
to sms with text : <a href="sms:<?php echo osc_user_phone(); ?>?body=bla...bla...to seller"><?php echo osc_user_phone(); ?></a>
or, you can add image with css like this
<a class="sms" href="sms:<?php echo osc_user_phone(); ?>?body=bla...bla...to seller"></a>
this the css (Please edit as you wish) :
.telp{width:48px; height:48px; background:url(images/telp.png) no-repeat; z-index:1; float:left; padding-left:5px; margin-left:50px; margin-top:-2px; }
.sms{width:48px; height:48px; background:url(images/sms.png) no-repeat; z-index:1; float:right; padding-right:5px; margin-right:50px; margin-top:-2px; }
note :
1. Put the phone or sms picture in
images folder in the plugin folder
osc_mobile2. this the source
http://beradrian.wordpress.com/category/web/page/2/3. i try this tutorial on android its work
I hope this tutorial is useful for all
sorry my english not good