*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: Detect if customer is gold member
« Reply #15 on: April 07, 2015, 10:58:07 PM »
Hi.

I would have fallen in love with him to construct that function, that let the picture appear on the head side beside the present membership level but this function does not work for me unfortunately for something.

Hi Vargatunde,

In user_home_stat_lines_dtls.tpl change {$curlevel} to:
Code: [Select]
{if $curlevel == 'Gold'}
        <img src="{$image_dir}Gold.jpg" height="17" width="20" /> {$curlevel}
            {elseif $curlevel == 'Silver'}
        <img src="{$image_dir}Silver.jpg" height="17" width="20" /> {$curlevel}
         {elseif $curlevel == 'Free'}<img src="{$image_dir}Free.jpg" height="17" width="20" /> {$curlevel}
          {/if}

You will have to find or make your Gold.jpg or gif files.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: Detect if customer is gold member
« Reply #16 on: April 08, 2015, 07:22:00 AM »
Hi Pharg.

Thank you the mod-there was ot, very good one thank you.
He would be a question of mine yet in connection with this.
It is possible to solve it that if one of the users inspect the other user's data sheet the showprofile.php in a file, it can look at the user's present membership level on a data sheet then. I would like to make this visible. Thank you. I desire an additional beautiful day.

*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: Detect if customer is gold member
« Reply #17 on: April 08, 2015, 07:52:09 AM »
Hi Vargatunde,

In the nickpage_basic_address.tpl Select all code:
Code: [Select]
<table border="0" cellspacing="3" cellpadding="1" width="100%">
<tr class="signup_line_outer oddrow" >
<td >
<b>{lang mkey='age'}:</b>
</td>
<td >
{$user.age}
</td>
</tr>
<tr class="signup_line_outer evenrow" >
<td >
<b>{lang mkey='sex'}</b>
</td>
<td >
{mylang mkey='signup_gender_values' skey=$user.gender}
{if ($user.gender == 'C' or $user.gender =='G') && $user.cplusers|@count > 0}
&nbsp;(
{foreach from=$user.cplusers key=k item=usr}
{if $k > 0}, {/if}
{if $config.enable_mod_rewrite == 'Y'}
<a href="javascript:popUpScrollWindow2('{$docroot}{if $config.seo_username == 'Y'}{$usr.username}{else}{$usr.uid}.htm{/if}','top',650,600)">
{else}
<a href="javascript:popUpScrollWindow2('{$docroot}showprofile.php?{if $config.seo_username == 'Y'}username={$usr.username}{else}id={$usr.uid}{/if}','top',650,600)">
{/if}
{$usr.username}
</a>
{/foreach}
)
{/if}
</td>
</tr>
{if $config.accept_lookgender == 'Y' or $config.lookgender == '1'}
{* Display only if the lookgender is acceptable *}
<tr class="signup_line_outer oddrow" >
<td >
<b>{lang mkey='looking_for'}:</b>
</td>
<td >
{mylang mkey='signup_gender_look' skey=$user.lookgender}
</td>
</tr>
{/if}
{if $config.accept_country == 'Y' or $config.accept_country == '1'}
{* Display only if contry is accepted *}
<tr class="signup_line_outer evenrow" >
<td >
<b>{lang mkey='location_col'}</b>
</td>
<td >
{if $user.city != '' && $user.city != '-1'}
{get_cityname city=$user.city state=$user.state_province country=$user.country county=$user.county},&nbsp;
{/if}
{if $user.statename != '' && $user.statename != '-1'}
{$user.statename},&nbsp;
{/if}
{if $user.countryname != ''}
{$user.countryname}
{/if}
</td>
</tr>
{/if}
<tr class="signup_line_outer oddrow" >
<td >
<b>{lang mkey='picsloaded'}:</b>
</td>
<td >
{checkuser userid=$user.id checkfor='picscnt'}
</td>
</tr>
<tr class="signup_line_outer evenrow" >
<td >
<b>{lang mkey='albumsloaded'}:</b>
</td>
<td >
{checkuser userid=$user.id checkfor='albumscnt'}
</td>
</tr>
<tr class="signup_line_outer oddrow" >
<td >
<b>{lang mkey='videos_loaded'}:</b>
</td>
<td >
{checkuser userid=$user.id checkfor='videoscnt'}
</td>
</tr>
{if $config.about_me_in_smallprofile == 'Y' && $user.about_me != ''}
<tr class="signup_line_outer evenrow" >
<td >
<b>{lang mkey='about_me'}:</b>
</td>
<td >
{$user.about_me|nl2br|stripslashes}
</td>
</tr>
{/if}
</table>


Change to:
Code: [Select]
<table border="0" cellspacing="3" cellpadding="1" width="100%">
<tr class="signup_line_outer oddrow" >
<td >
<b>{lang mkey='age'}:</b>
</td>
<td >
{$user.age}
</td>
</tr>
<tr class="signup_line_outer evenrow" >
<td >
<b>{lang mkey='sex'}</b>
</td>
<td >
{mylang mkey='signup_gender_values' skey=$user.gender}
{if ($user.gender == 'C' or $user.gender =='G') && $user.cplusers|@count > 0}
&nbsp;(
{foreach from=$user.cplusers key=k item=usr}
{if $k > 0}, {/if}
{if $config.enable_mod_rewrite == 'Y'}
<a href="javascript:popUpScrollWindow2('{$docroot}{if $config.seo_username == 'Y'}{$usr.username}{else}{$usr.uid}.htm{/if}','top',650,600)">
{else}
<a href="javascript:popUpScrollWindow2('{$docroot}showprofile.php?{if $config.seo_username == 'Y'}username={$usr.username}{else}id={$usr.uid}{/if}','top',650,600)">
{/if}
{$usr.username}
</a>
{/foreach}
)
{/if}
</td>
</tr>
{if $config.accept_lookgender == 'Y' or $config.lookgender == '1'}
{* Display only if the lookgender is acceptable *}
<tr class="signup_line_outer oddrow" >
<td >
<b>{lang mkey='looking_for'}:</b>
</td>
<td >
{mylang mkey='signup_gender_look' skey=$user.lookgender}
</td>
</tr>
{/if}
{if $config.accept_country == 'Y' or $config.accept_country == '1'}
{* Display only if contry is accepted *}
<tr class="signup_line_outer evenrow" >
<td >
<b>{lang mkey='location_col'}</b>
</td>
<td >
{if $user.city != '' && $user.city != '-1'}
{get_cityname city=$user.city state=$user.state_province country=$user.country county=$user.county},&nbsp;
{/if}
{if $user.statename != '' && $user.statename != '-1'}
{$user.statename},&nbsp;
{/if}
{if $user.countryname != ''}
{$user.countryname}
{/if}
</td>
</tr>
{/if}
<tr class="signup_line_outer oddrow" >
<td >
<b>{lang mkey='picsloaded'}:</b>
</td>
<td >
{checkuser userid=$user.id checkfor='picscnt'}
</td>
</tr>
<tr class="signup_line_outer evenrow" >
<td >
<b>{lang mkey='albumsloaded'}:</b>
</td>
<td >
{checkuser userid=$user.id checkfor='albumscnt'}
</td>
</tr>
<tr class="signup_line_outer oddrow" >
<td >
<b>{lang mkey='videos_loaded'}:</b>
</td>
<td >
{checkuser userid=$user.id checkfor='videoscnt'}
</td>
</tr>
    <tr class="signup_line_outer evenrow" >
<td >
<b>{lang mkey='current_mship_level'}</b>
</td>
<td >
{if $user.level == '1'}
        <img src="{$image_dir}Gold.jpg" height="17" width="20" alt=" Gold Member" /> Gold
{elseif $user.level == '2'}
        <img src="{$image_dir}Silver.jpg" height="17" width="20" alt="Silver Member" /> Silver
{elseif $user.level == '4'}<img src="{$image_dir}Free.jpg" height="17" width="20" alt="Free Member" /> Free
   {/if}
</td>
</tr>
{if $config.about_me_in_smallprofile == 'Y' && $user.about_me != ''}
<tr class="signup_line_outer oddrow" >
<td >
<b>{lang mkey='about_me'}:</b>
</td>
<td >
{$user.about_me|nl2br|stripslashes}
</td>
</tr>
{/if}
</table>

All done  8)
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

Re: Detect if customer is gold member
« Reply #18 on: April 08, 2015, 08:08:34 AM »
Thank you for the fast answer. The mod works perfectly. Thank you. :D