Skip to main content

How to install Social Invite for Sngine

scriptstribe_f05eaf0bb9aa66e1fe04c17e4ca5a5b9.png

This guide is fast and simple tutorial, should take you 5 minutes

Step 1: Upload Files

I am assuming you that by this point you already know how to create and or already have a facebook app

Upload all files to your root directory

Step 2: Add Facebook API

Open /content/themes/default/templates/invite.tpl  and /content/themes/default/templates/invitepage.tpl

and add your facebook app id replacing the text YOUR-APP-ID (around line 27)

this is important for the facebook mobile sharing to work

 <a href="https://www.facebook.com/dialog/send?link={$system['system_url']}/{$user->_data['user_name']}&app_id=YOUR-APP-ID&redirect_uri={$system['system_url']}" target="_blank" class="button d-none d-md-block">

/content/themes/default/templates/newsfeed.tpl

and add wherever you wish to show the  block, I have it on my _sidebar.tpl

{include file='invite.tpl'}

Social-Invite.png

 

/content/themes/default/templates/page.tpl

and look for 

 <!-- invite friends -->
            {if $spage['i_like'] && $spage['invites']}
              <div class="card">
                <div class="card-header bg-transparent">
                  <div class="float-end">
                    <small><a href="{$system['system_url']}/pages/{$spage['page_name']}/invites">{__("See All")}</a></small>
                  </div>

after that add

 

{include file='invitepage.tpl'}

Social-InvitePages.png

Open  /content/themes/default/templates/__svg_icons.tpl and add

 {elseif $icon == "whatsapp"}

    {include file='../images/svg/whatsapp.svg'}
    
    {elseif $icon == "facebookmessenger"}

    {include file='../images/svg/facebookmessenger.svg'}

 

You are done, enjoy 

emot.png