By The NAF on Sunday, 13 March 2016
Posted in General Issues
Replies 3
Likes 0
Views 380
Votes 0
Hi guys

When an event becomes featured on my site, I need to be able to prevent further edits to the details (announcements and new discussions etc are fine, but changing the locaton, to a closed event or the description etc is not).

Is this possible please?

Thanks!
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here. I am sorry but unfortunately this is not possible out of the box. However, what you can do is to modify the theme file and locate the codes below at line 47,


<li>
<a href="<?php echo FRoute::events(array('layout' => 'edit', 'id' => $event->getAlias()));?>"><?php echo JText::_('COM_EASYSOCIAL_EVENTS_EDIT_EVENT');?></a>
</li>


Replace it with,


<?php if (!$event->isFeatured()) { ?>
<li>
<a href="<?php echo FRoute::events(array('layout' => 'edit', 'id' => $event->getAlias()));?>"><?php echo JText::_('COM_EASYSOCIAL_EVENTS_EDIT_EVENT');?></a>
</li>
<?php } ?>


This way, the edit button will not be visible if the event is featured.

P/S: Please take note that we do not provide support for customizations and we are only assisting you out of good faith
·
Sunday, 13 March 2016 15:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Awesome, I'll try this, thanks - and thanks for the good will
·
Monday, 14 March 2016 15:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Glad we can help . I hope you'll achieve what you are aiming for with the customization that Mark gave you.

By the way, please remember to assign your domain to your license to obtain for support in the future. You can do so by accessing your license area at http://stackideas.com/dashboard
·
Monday, 14 March 2016 15:51
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post