Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

RSEvents! - How do I remove an option from the Host or Guest Menu

How do I remove an option from the Host or Guest Menu

In order to remove a specific option from the Host or Guest Menu you will have to edit the file, \components\com_rsevents\helpers\events.php. Here, you can browse the file for either the function createHostMenu or createGuestMenu, as each of them controls the specific menus of the event.

For example, if you wish to remove the Print Event option from the Guest Menu, the function createGuestMenu will have to be edited, from which the following code line will have to be deleted:

if ($rseventsConfig['event.show.print']) $guest_module .= '<li><a href="'.rseventsHelper::route('index.php?option=com_rsevents&view=events&layout=printevent&cid='.eventsHelper::sef($event->IdEvent,$event->EventName).'&tmpl=component',false).'" onclick="window.open(this.href,\'win2\',\'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no\'); return false;">'.JText::_('RSE_MENU_EVENT_PRINT').'</a></li>';

or commented out, like this:

//if ($rseventsConfig['event.show.print']) $guest_module .= '<li><a href="'.rseventsHelper::route('index.php?option=com_rsevents&view=events&layout=printevent&cid='.eventsHelper::sef($event->IdEvent,$event->EventName).'&tmpl=component',false).'" onclick="window.open(this.href,\'win2\',\'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no\'); return false;">'.JText::_('RSE_MENU_EVENT_PRINT').'</a></li>';

If, however, you wish to remove Invite People option from the Host Menu, the function createHostMenu will have to be modified, from which the following code section will have to be removed:

$host_module .= '<li><a href="'.rseventsHelper::route('index.php?option=com_rsevents&view=events&layout=invite&cid='.eventsHelper::sef($event->IdEvent,$event->EventName),false).'">'.JText::_('RSE_MENU_EVENT_INVITE').'</a></li>';

or commented out, like this:

//$host_module .= '<li><a href="'.rseventsHelper::route('index.php?option=com_rsevents&view=events&layout=invite&cid='.eventsHelper::sef($event->IdEvent,$event->EventName),false).'">'.JText::_('RSE_MENU_EVENT_INVITE').'</a></li>';

Note:

  • The Invite People, Add to Outlook Calendar and Print Event options from the Guest Menu can be disabled from RSEvents! >> Settings.

Feedback