Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Group Owner vs. Group Admins

10 years 11 months ago
  • James's Avatar
    Topic Author
  • James
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired

I'm having trouble differentiating between group owner and group admin. Is it possible to echo on my group pages only the group owner without showing the entire adminsList?

Presently, this code shows all the group admins -:

<?php echo $adminsList;?>
How do I show only the group owner?
Thanks.

10 years 11 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi james,

do this sample hack.. open this file components/com_community/views/groups/view.html.php, find this code :

array_push($adminsInArray, '<a href="' . CUrlHelper::userLink($admin->id) . '">' . $admin->getDisplayName() . '</a>');

replace with :
if($admin->id==$group->ownerid){
                    array_push($adminsInArray, '<a href="' . CUrlHelper::userLink($admin->id) . '">' . $admin->getDisplayName() . '</a>');
                    break;
                }

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW