Maulik Posted November 25, 2017 Share Posted November 25, 2017 Hello, We want to move profile sidebar widget called "PERSONAL INFORMATION" in the right side area. Currently it's coming to the left area in sidebar. [reference : We have found the following code in the file called "profile", but when we tried to move that code in "profileTabs" file, the "$sidebarFields" variable is empty. Would you please help with that ? Check the code below : {{foreach $sidebarFields as $group => $fields}} <div class='ipsWidget ipsWidget_vertical cProfileSidebarBlock ipsBox ipsSpacer_bottom'> {{if $group != 'core_pfieldgroups_0'}} <h2 class='ipsWidget_title ipsType_reset'>{lang="$group"}</h2> {{endif}} <div class='ipsWidget_inner ipsPad'> <ul class='ipsDataList ipsDataList_reducedSpacing cProfileFields'> {{foreach $fields as $field => $value}} {{if $value !== ""}} <li class='ipsDataItem ipsType_break'> <span class='ipsDataItem_generic ipsDataItem_size3 ipsType_break'><strong>{lang="$field"}</strong></span> <div class='ipsDataItem_generic'><div class='ipsType_break ipsContained'>{$value|raw}</div></div> </li> {{endif}} {{endforeach}} </ul> </div> </div> {{endforeach}} Link to comment Share on other sites More sharing options...
Maulik Posted November 27, 2017 Author Share Posted November 27, 2017 Can anyone help with this ? Link to comment Share on other sites More sharing options...
Maulik Posted December 15, 2017 Author Share Posted December 15, 2017 If someone can help us then please ..!! Link to comment Share on other sites More sharing options...
bfarber Posted December 15, 2017 Share Posted December 15, 2017 You can't just move it into the tabs unfortunately. You would need to make further adjustments than simply moving the template HTML. Link to comment Share on other sites More sharing options...
Maulik Posted December 19, 2017 Author Share Posted December 19, 2017 Ok.. Do you have any idea how can we show content count per user ? How many posts, articles, blogs he has posted till now in the forum ? Link to comment Share on other sites More sharing options...
bfarber Posted December 19, 2017 Share Posted December 19, 2017 $member->member_posts This represents the user's total content count. We do not track (cache) content count per content type. Link to comment Share on other sites More sharing options...
Maulik Posted December 22, 2017 Author Share Posted December 22, 2017 Thanks.. @bfarber Link to comment Share on other sites More sharing options...
Maulik Posted January 3, 2018 Author Share Posted January 3, 2018 Hey @newbie LAC, Could you please help us here too ? As you did help us in issue same like this when we wanted to change the post layout. TIA. Link to comment Share on other sites More sharing options...
newbie LAC Posted January 3, 2018 Share Posted January 3, 2018 Hello, I don't see the right area on your screenshot. Link to comment Share on other sites More sharing options...
Maulik Posted January 4, 2018 Author Share Posted January 4, 2018 18 hours ago, newbie LAC said: Hello, I don't see the right area on your screenshot. Please check this one : https://prnt.sc/hvtidd We're talking about the default profile layout of Invision Community. Are you getting it ? Please let's know. Link to comment Share on other sites More sharing options...
newbie LAC Posted January 4, 2018 Share Posted January 4, 2018 1 hour ago, Maulik said: Please check this one : https://prnt.sc/hvtidd We're talking about the default profile layout of Invision Community. Are you getting it ? Please let's know. {{$sidebarFields = $member->profileFields();}} {{if $sidebarFields}} {{$fieldData = \IPS\core\ProfileFields\Field::fieldData();}} {{foreach $fieldData as $grId => $fields}} {{foreach $fields as $fId => $field}} {{if !(isset($sidebarFields['core_pfieldgroups_' . $grId]['core_pfield_' . $fId]) and (!$field['pf_member_hide'] or (\IPS\Member::loggedIn()->isAdmin() OR \IPS\Member::loggedIn()->member_id === $member->member_id)))}} {{unset($sidebarFields['core_pfieldgroups_' . $grId]['core_pfield_' . $fId]);}} {{endif}} {{endforeach}} {{endforeach}} {{endif}} Then use the code from your start post Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.