Join our Facebook Group
ScriptsTribe • Sngine • Community
Join

Fóruns

The great place to discuss topics with other users

Add Pro Icon to feed and Profile

'
Join the Conversation Resposta ao Post
Jane Marcia
Admin
Joined: 2025-05-17 02:14:16
2025-05-25 21:29:26

Where can I find the profile.php file?

Bas BePride
Member
Joined: 2025-01-31 16:21:36
2025-06-09 16:14:10

 

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}

Jane Marcia
Admin
Joined: 2025-05-17 02:14:16
2025-06-10 11:32:51

 

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}

Mike Sieck
Member
Joined: 2025-12-28 00:13:09
2025-12-28 01:32:29

 

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}

ScriptsTribe https://scriptstribe.com