Welcome to Our Community

Registration on our forums are now open for some days! Feel free to sign up today.

WhatsApp Share Link 1.0.8

WhatsApp Share Link

  1. XenForo Rocks
    About This File
    Adds the WhatsApp share service to IPS4.

    Once enabled, the WhatsApp icon should appear in your share links on your phone/tablet. It is hidden by default on desktops because clicking the icon on desktop does nothing and the ability to share has not yet been added to WhatsApp Web. This is toggable in the WhatsApp share link settings.

    After clicking the link it opens WhatsApp and you will need to click on a user/conversation for the text to appear.

    As of 1.0.4 you must delete the /your-root-dir/system/Content/ShareServices/Whatsappcvh.php file if you've upgraded from a previous version. This may require re-enabling WhatsApp in System > Promotion > Sharing.

    Customize:

    As of 1.0.6 the text string has been removed to improve performance. To customize you still have access to $url and $title within the whatsapp_cvh template (Core > Global > Plugins in the template editor). You will need to format the text string as desired. An example would be:

    Code:
    <a href="whatsapp://send?text={expression="\IPS\Content\ShareServices\Whatsappcvh::encodeURIComponent( $title . ' ' . $url )"}" class="cShareLink cShareLink_whatsapp" title='{lang="whatsapp_text"}' data-ipsTooltip>
        <i class="fa fa-whatsapp"></i>
    </a>
    LostMan and shrks like this.