Open lisandi opened 3 years ago
Simon Lewis replied on FB with a solution:
easy fix edit your _feeds_post_body.tpl and search for {if $_post['user_subscribed']}
then just change the title='{__("Pro User")}'
to what ever you like or use title='{__($package["name"])}'
you will need to alter the post php also
this will show package name title='{__($package["name"])}'
but you will need to attach the package to posts by adding the following code just below widgets
// get packages
$packages = $user->get_packages();
/* assign variables */
$smarty->assign('packages', $packages);
$smarty->assign('packages_count', count($packages));
inside the post.php, on a side note you will also need to do this same step inside all other files you wish to show package name
Serkan Tümbaş answered on FB:
<i data-toggle="tooltip" data-placement="top" title="" class="fa fa-bolt fa-fw pro-badge" data-original-title="Project-Id-Version: Package Name
Report-Msgid-Bugs-To:
PO-Revision-Date: 2021-02-03 00:20+0300
Last-Translator:
Language-Team:
Language: tr_TR
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Plural-Forms:
X-Generator: Poedit 2.4.2
" aria-describedby="tooltip612349"></i>
Simon Lewis I want to ask one more thing. Where is the part of these countries? I want to add, remove, change the name of the country.
Simon Lewis Solution on FB:
just add to any php you want it to be:
// get countries
$countries = $user->get_countries();
/* assign variables */
$smarty->assign('countries', $countries);
break;
and then in tpl files you can add drop down
<div class="form-group col-md-6">
<label class="form-control-label">{__("Country")}</label>
<select name="country" class="form-control">
<option value="none">{__("Select Country")}</option>
{foreach $countries as $country}
<option {if $user->_data['user_country'] == $country['country_id']}selected{/if} value="{$country['country_id']}">{$country['country_name']}</option>
{/foreach}
</select>
</div>
https:/YOURDOMAIN/admincp/languages/ this will change your countys
Problem in Sngine we should avoid/fix in NgineS!
Serkan Tümbaş asked on FB: https://www.facebook.com/groups/786267988168281
Hello, when we hover over the “Pro User” tag on the main stream, why doesn’t it say “Package Name”? When we hover over the tag in profile, it says “Package Name”. I want to see this in the flow as well. Is it easy to do this? It will be even better if the “Package Logo” appears. Thanks