Author Topic: Name to username  (Read 198 times)

happy

  • Prime Member
  • ****
  • Posts: 146
  • Karma: +0/-1
Name to username
« on: April 01, 2018, 05:34:40 AM »
Hi Maverick

I have one more query, on home.php i want to display member's real name (stored in f16) instead of

username

Please guide

Thank you

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 3108
  • Karma: +210/-7
    • Maverick Webworks
Re: Name to username
« Reply #1 on: April 01, 2018, 10:33:25 AM »
Open the home.php file and locate the following output array:
Code: [Select]
$output=array();
$query="SELECT `_photo` as `photo`,UNIX_TIMESTAMP(`date_added`) as `date_added` FROM

And add the 'f16' profile field like this:
Code: [Select]
$query="SELECT `_photo` as `photo`,UNIX_TIMESTAMP(`date_added`) as `date_added`,`f16` FROM
Now open the home.html file in the skins folder and include the output for the f16 profile field.

Now for example you could replace this:
Code: [Select]
<li>Hi <strong>{tplvars.myself.user}</strong></li>with this:
Code: [Select]
<li>Hi <strong>{output.f16}</strong></li>

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.

happy

  • Prime Member
  • ****
  • Posts: 146
  • Karma: +0/-1
Re: Name to username
« Reply #2 on: April 01, 2018, 10:53:12 PM »
Thanks Maverick, issue solved