Hey there,
as you can see in the image, I would like to understand how I can display in header the number of followers of a page + administrator + owner (at least, in the image the '7' and not '5').
You can add the following code to the
function page() which is at
JoomlaFolder/administrator/components/com_easysocial/includes/template/helpers/cover.php to show your 'All', 'Members' and 'Admins' on the header:
$counters = array();
$counters['followers'] = $page->getTotalMembers();
$counters['admins'] = $page->getTotalAdmins();
$counters['total'] = $counters['followers'] + $counters['admins'];
and add this following code after '$theme = ES::themes();':
$theme->set('counters', $counters);
Also, add the following code after the part as shown in the screenshot which is at
JoomlaFolder/components/com_easysocial/themes/wireframe/helpers/cover/page.php for the rendering part to show your 'All', 'Members' and 'Admins' on the header:
<li>
<a href="javascript:void(0);" class="">
<i class="fa fa-group"></i><?php echo $counters['total'];?>
</a>
</li>
<li>
<a href="javascript:void(0);" class="">
<i class="fa fa-group"></i><?php echo $counters['followers'];?>
</a>
</li>
<li>
<a href="javascript:void(0);" class="">
<i class="fa fa-user"></i><?php echo $counters['admins'];?>
</a>
</li>
Can you have a try and see how it goes?
For your information, when I was trying to access your FTP, it gave me the following error:
Command: PASS **************
Response: 530 Login authentication failed
Error: Critical error: Could not connect to server