Kamis0ri89 Posted July 23, 2016 Share Posted July 23, 2016 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. Link to comment Share on other sites More sharing options...
Kamis0ri89 Posted July 23, 2016 Author Share Posted July 23, 2016 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> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.