Jump to content

Hovercard


Kamis0ri89

Recommended Posts

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>

03777ae9ecfb1c09fa914a1f692c757f.png4f4e7d958f326301c4d822505b798a93.png

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

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
×
×
  • Create New...