By DHNGroup on Monday, 25 January 2016
Posted in General Issues
Replies 5
Likes 0
Views 338
Votes 0
Is there is a way to hide this button in Events and Category Events View for public/guest visitors?
I understand that I can hide this button and prevent registered users from creating events in Profile types ACL but what about guests?
Hey there,

The idea is to actually "tease" visitors on your site so that they will register for an account should they want to create an event

If you really need to hide this, edit the file /components/com_easysocial/themes/wireframe/events/default.php and at line 24 locate the codes below:


<div class="es-widget-create mr-10">
<?php if ($this->my->isSiteAdmin() || $this->access->allowed('events.create') && !$this->access->intervalExceeded('events.limit', $this->my->id)) { ?>
<a href="<?php echo FRoute::events(array('layout' => 'create')); ?>" class="btn btn-es-primary btn-create btn-block"><?php echo JText::_('COM_EASYSOCIAL_EVENTS_CREATE_EVENT'); ?></a>
<?php } ?>
</div>


Replace it with,


<?php if ($this->my->id) { ?>
<div class="es-widget-create mr-10">
<?php if ($this->my->isSiteAdmin() || $this->access->allowed('events.create') && !$this->access->intervalExceeded('events.limit', $this->my->id)) { ?>
<a href="<?php echo FRoute::events(array('layout' => 'create')); ?>" class="btn btn-es-primary btn-create btn-block"><?php echo JText::_('COM_EASYSOCIAL_EVENTS_CREATE_EVENT'); ?></a>
<?php } ?>
</div>
<?php } ?>
·
Monday, 25 January 2016 10:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you, I appreciate that. We run easysocial in a different context with a quite closed network for professionals so I wish that it would be an easy option to control such as elements...

One more question, please.
Is there a way to customize (remove/replace) random widgets on Category Events page?
Btw, is there sometimes on your road map a plan to introduce ACL for easysocial apps/widgets?
·
Monday, 25 January 2016 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

Yes, ACL for apps / widgets are something that we plan to add As for the remove / replace random widgets, can you please elaborate more on this please?
·
Monday, 25 January 2016 11:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Please look at the attachment that shows sidebar with widgets from Category Event page. I wonder if I have any control over these widgets and if I could replace them with some ES modules instead.
·
Monday, 25 January 2016 11:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

Ah, yes we do render modules in the position "es-events-sidebar-top" and "es-events-sidebar-bottom". You may place the modules that you want in these positions

You can customize this in /components/com_easysocial/themes/events/category.php

Cheers!
·
Monday, 25 January 2016 14:18
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post