How to install Social Invite for Sngine
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 (around line 27)
<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'}
/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'}
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