Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 23, 20168 yr I want to add profile custom fields to the hover card. Now i'm not to great with PHP which in lies my issue. <li class="ipsDataItem"> <span class="ipsDataItem_generic ipsDataItem_size3"><strong>{lang="member_core_pfield_2"}</strong></span> <span class="ipsDataItem_main">{$member->member_core_pfield_2_desc}</span> </li> No matter what I try to do to figure this out it does not seem to work. Any help on this topic is appreciated.
July 23, 20168 yr Author For those looking to do what I did just add this line. in the <li> section of it after the </li> of another item. {{$member = \IPS\Member::load( \IPS\Request::i()->id );}} {{$fieldData = $member->profileFields();}} <li class="ipsDataItem"> <span class="ipsDataItem_generic ipsDataItem_size3"><strong>Steam</strong></span> <span class="ipsDataItem_main">{$fieldData['core_pfieldgroups_1']['core_pfield_2']}{{if $fieldData['core_pfieldgroups_1']['core_pfield_2']}}{{else}}{lang="N/A"}{{endif}}</span> </li>
Archived
This topic is now archived and is closed to further replies.