By David Judah on Thursday, 20 March 2014
Posted in General Issues
Replies 7
Likes 0
Views 545
Votes 0
Hi there,

I do not want anyone to create a group on my site. I disabled it in the profile but the button still it shows. When I press on it I get 'Sorry, but you are not allowed to create groups on the site.'


Thanks,
David.
Hello David,

Are you a super admin? By the way, where are you seeing this button?
·
Thursday, 20 March 2014 17:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Yes, I am a super admin. The button is where it was always (top right corner in blue).
·
Thursday, 20 March 2014 17:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi David,

By default, super admin will be able to create group irregardless the access. If you do not want your super admin to create group as well, then you will need to customise the file 'JOOMLA/components/com_easysocial/themes/wireframe/groups/default.php' and look for line at 25:


<?php if ($this->my->isSiteAdmin() || $this->access->allowed( 'groups.create' ) && !$this->access->exceeded( 'groups.limit' , $this->my->getTotalCreatedGroups() ) ){ ?>


and replace the above with following:


<?php if ($this->access->allowed( 'groups.create' ) && !$this->access->exceeded( 'groups.limit' , $this->my->getTotalCreatedGroups() ) ){ ?>


Hope this help and have a nice day
Sam
·
Thursday, 20 March 2014 17:44
·
0 Likes
·
0 Votes
·
0 Comments
·
That does not make sense as even if I wanted to create a group with that button it tells me 'Sorry, but you are not allowed to create groups on the site'. Also, public can also see this button which I do not want.
·
Thursday, 20 March 2014 19:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

Perhaps if you do not want this button to be visible at all, you can just customize the theme files to remove the button? It's fairly easy
·
Thursday, 20 March 2014 22:50
·
0 Likes
·
0 Votes
·
0 Comments
·
I don't have a clue how to do that. I thought that if I just disable it at the backend it will go
·
Friday, 21 March 2014 00:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

All you need to do is to edit the file /components/com_easysocial/themes/wireframe/groups/default.php and remove the codes below:


<div class="es-widget-head center">
<?php if ($this->my->isSiteAdmin() || $this->access->allowed( 'groups.create' ) && !$this->access->exceeded( 'groups.limit' , $this->my->getTotalCreatedGroups() ) ){ ?>
<div class="btn btn-es-primary btn-create">
<a href="<?php echo FRoute::groups( array( 'layout' => 'create' ) );?>"><i class="ies-plus ies-small mr-5"></i> <?php echo JText::_( 'COM_EASYSOCIAL_GROUPS_START_YOUR_GROUP' );?></a>
</div>
<?php } ?>
</div>
·
Friday, 21 March 2014 01:43
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post