Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 1, 20169 yr Hello, I'm trying to display 200 characters of each member's About Me profile info on a HTML template that loops through all the members, however I cant seem to be able to display the info I want. Here's where I am: {truncate="{$user->member()->['pfield_17']}" length="200"} I'm obviously doing it wrong, I'm sure it is what you'd call a simple mistake, but guidance would be much appreciated. Also, Using your correction, how could I show the a custom profile field with the ID number 23?
March 9, 20168 yr @F. John, have you found a solution? I also need to check for a custom profile field value to change settings on a page upon on the value.
March 9, 20168 yr Found it! This one worked for me: {{$fields = \IPS\Member::loggedIn()->profileFields();}} {{$gmHouseNumber = $fields['core_pfieldgroups_1']['core_pfield_1']; }} House Number: {$gmHouseNumber} House number is stores in a first custom profile field in a first group.
Archived
This topic is now archived and is closed to further replies.