Author Topic: Free member or VIP member display  (Read 361 times)

csibusz

  • Prime Member
  • ****
  • Posts: 165
  • Karma: +17/-2
Free member or VIP member display
« on: June 10, 2016, 03:30:23 AM »
insert profile.php

Code: [Select]
$query="SELECT `user_id`,`membership` FROM `{$dbtable_prefix}user_accounts` WHERE  user_id=$uid ";
if (!($res=@mysql_query($query))) {trigger_error(mysql_error(),E_USER_ERROR);}
$ered['ered']=mysql_result($res,0,0);
if ($ered['ered']== 4){
$vip['vip']="Free member";
}else{
$vip['vip']="VIP member";
}


$tpl->set_var('vip',$vip);

Implement profile.html :
Code: [Select]
{vip.vip}
Inst:
Code: [Select]
$vip['vip']="Free member";
$vip['vip']="VIP member";
Free member change img

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1004
  • Karma: +56/-7
Re: Free member or VIP member display
« Reply #1 on: June 26, 2016, 11:17:38 AM »
Please clarify these instructions.

The code that you have placed for profile.html. give an example of how it should look in the profile.html file.

Also, what do you mean by Inst?
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

AF

  • Prime Member
  • ****
  • Posts: 117
  • Karma: +3/-2
Re: Free member or VIP member display
« Reply #2 on: September 04, 2016, 09:17:37 AM »
Please clarify these instructions.

The code that you have placed for profile.html. give an example of how it should look in the profile.html file.

Also, what do you mean by Inst?

Agree, if hes going to contribute he needs to actually explain things. This is like many of his other posts.