Forum
The great place to discuss topics with other users
Add Pro Icon to feed and Profile
'
First we will add to the profile

Open profile.php and look for
$get_profile = $db->query(sprintf("
Find
packages.name as package_name,
and after that add
packages.icon as package_icon,
Now Open content/themes/default/templates/profile.tpl
look for
{if $profile['user_subscribed']} <a href="{$system['system_url']}/packages" data-bs-toggle="tooltip" title="{__($profile['package_name'])} {__("Member")}"> {include file='__svg_icons.tpl' icon="pro_badge" width="24px" height="24px"} </a> {/if}
And replace with
{if $profile['user_subscribed'] && $profile['package_icon']} <a href="{$system['system_url']}/packages" data-bs-toggle="tooltip" title="{__($profile['package_name'])} {__('Member')}"> <img src="{$system['system_uploads']}/{$profile['package_icon']}" alt="{$profile['package_name']}" width="24" height="24"> </a>{/if}
Now we are going to add the icons to newsfeed

Open class-user.php
look for this function Around line 8613
private function _check_post($id, $pass_privacy_check = false, $full_details = true)
Look for the bit
packages.name as package_name,
and after that add
packages.icon as package_icon,
Now open __feeds_post.body.tpl
Look for
{if $_post['user_subscribed']} <span class="pro-badge" data-bs-toggle="tooltip" title='{__($_post['package_name'])} {__("Member")}'> {include file='__svg_icons.tpl' icon="pro_badge" width="20px" height="20px"} </span> {/if}
and replace with
{if $_post['user_subscribed'] && $_post['package_icon']} <span class="pro-badge" data-bs-toggle="tooltip" title='{__($_post["package_name"])} {__("Member")}'> <img src="{$system['system_uploads']}/{$_post['package_icon']}" alt="{$_post['package_name']}" width="20" height="20" style="vertical-align:middle;"> </span>{/if}
First we will add to the profile

Open profile.php and look for
$get_profile = $db->query(sprintf("
Find
packages.name as package_name,
and after that add
packages.icon as package_icon,
Now Open content/themes/default/templates/profile.tpl
look for
{if $profile['user_subscribed']} <a href="{$system['system_url']}/packages" data-bs-toggle="tooltip" title="{__($profile['package_name'])} {__("Member")}"> {include file='__svg_icons.tpl' icon="pro_badge" width="24px" height="24px"} </a> {/if}
And replace with
{if $profile['user_subscribed'] && $profile['package_icon']} <a href="{$system['system_url']}/packages" data-bs-toggle="tooltip" title="{__($profile['package_name'])} {__('Member')}"> <img src="{$system['system_uploads']}/{$profile['package_icon']}" alt="{$profile['package_name']}" width="24" height="24"> </a>{/if}
Now we are going to add the icons to newsfeed

Open class-user.php
look for this function Around line 8613
private function _check_post($id, $pass_privacy_check = false, $full_details = true)
Look for the bit
packages.name as package_name,
and after that add
packages.icon as package_icon,
Now open __feeds_post.body.tpl
Look for
{if $_post['user_subscribed']} <span class="pro-badge" data-bs-toggle="tooltip" title='{__($_post['package_name'])} {__("Member")}'> {include file='__svg_icons.tpl' icon="pro_badge" width="20px" height="20px"} </span> {/if}
and replace with
{if $_post['user_subscribed'] && $_post['package_icon']} <span class="pro-badge" data-bs-toggle="tooltip" title='{__($_post["package_name"])} {__("Member")}'> <img src="{$system['system_uploads']}/{$_post['package_icon']}" alt="{$_post['package_name']}" width="20" height="20" style="vertical-align:middle;"> </span>{/if}
First we will add to the profile

Open profile.php and look for
$get_profile = $db->query(sprintf("
Find
packages.name as package_name,
and after that add
packages.icon as package_icon,
Now Open content/themes/default/templates/profile.tpl
look for
{if $profile['user_subscribed']} <a href="{$system['system_url']}/packages" data-bs-toggle="tooltip" title="{__($profile['package_name'])} {__("Member")}"> {include file='__svg_icons.tpl' icon="pro_badge" width="24px" height="24px"} </a> {/if}
And replace with
{if $profile['user_subscribed'] && $profile['package_icon']} <a href="{$system['system_url']}/packages" data-bs-toggle="tooltip" title="{__($profile['package_name'])} {__('Member')}"> <img src="{$system['system_uploads']}/{$profile['package_icon']}" alt="{$profile['package_name']}" width="24" height="24"> </a>{/if}
Now we are going to add the icons to newsfeed

Open class-user.php
look for this function Around line 8613
private function _check_post($id, $pass_privacy_check = false, $full_details = true)
Look for the bit
packages.name as package_name,
and after that add
packages.icon as package_icon,
Now open __feeds_post.body.tpl
Look for
{if $_post['user_subscribed']} <span class="pro-badge" data-bs-toggle="tooltip" title='{__($_post['package_name'])} {__("Member")}'> {include file='__svg_icons.tpl' icon="pro_badge" width="20px" height="20px"} </span> {/if}
and replace with
{if $_post['user_subscribed'] && $_post['package_icon']} <span class="pro-badge" data-bs-toggle="tooltip" title='{__($_post["package_name"])} {__("Member")}'> <img src="{$system['system_uploads']}/{$_post['package_icon']}" alt="{$_post['package_name']}" width="20" height="20" style="vertical-align:middle;"> </span>{/if}