Replace or Remove JEvents logo
The simplest change you may want to make is to change the JEvents logo for the frontend editing screen. You can do this by adding the following to your template css file or as of JEvents 3.0.13 to JEvents Custom CSS in JEvents Control Panel->Custom CSS and adapting it according to your needs. Note that the logo is loaded from
div#toolbar-box div.pagetitle.icon-48-jevents { background-image: url(../images/yourlogo.jpg); padding-left:100px!important; line-height:48px; }
To hide it completely use:
div#toolbar-box div.pagetitle.icon-48-jevents { background-image: none !important; padding-left:10px!important; line-height:48px; }
Template Overrides (serious changes)
On a more advanced topic, it is possible to create a template override for the JEvents event editing page.
Create the following folders templates/{YOUR TEMPLATE}/html/com_jevents/icalevent and templates/{YOUR TEMPLATE}/html/com_jevents/icalrepeat
In the templates/{YOUR TEMPLATE}/html/com_jevents/icalrepeat folder create a file called edit.php and a file called edit_datetime.php with the same following content (remove the space between the < and ?). Please note if you are using Joomla 2.5 then you should copy the files edit16.php and edit16_datetime.php instead.
< php defined('_JEXEC') or die('Restricted access'); include_once(JEV_ADMINPATH."/views/icalevent/tmpl/".basename(__FILE__));
REMEMBER TO REMOVE THE SPACE BETWEEN THE < AND THE ?php (we had to include them above to stop Joomla/JCE from stripping them out of the article)
Then copy the files with the same names from administrator/components/com_jevents/views/icalevent/tmpl/ to the folder templates/{YOUR TEMPLATE}/html/com_jevents/icalevent then modify these as you wish.
To ensure the javascript for handling repeat patterns and date validation its probably best to hide elements you don't want rather than removing them.
A couple of example files to achieve simple goals
1. To show duplicate save/cancel buttons at the bottom of the edit page:
<? php defined('_JEXEC') or die('Restricted access'); include_once(JEV_ADMINPATH."/views/icalevent/tmpl/".basename(__FILE__)); $cfg = JEVConfig::getInstance(); if (!$cfg->get("donebar",0)) { $bar = & JToolBar::getInstance('toolbar'); $barhtml = $bar->render(); echo $barhtml; $cfg->set("donebar",1); }
2. To disable the wysiwyg editor for all frontend users:
Replace the whole of the edit.php/edit16.php file with this content
< php defined('_JEXEC') or die('Restricted access'); $editor =& JFactory::getEditor(); $editor = JEditor::getInstance('none'); JFactory::$config--->set("editor","none"); include_once(JEV_ADMINPATH."/views/icalevent/tmpl/".basename(__FILE__));
3. To make fields (e.g. location and contact) into required fields
Find the function "Joomla.submitbutton = function (pressbutton) {" and the part of this code that reads
else if (form.ics_id.value == "0"){
alert( "<?php echo html_entity_decode(JText::_('JEV_MISSING_ICAL_SELECTION', true)); ?>" );
Then after this include this code
else if (form.location.value == "0" || form.location.value == ""){ alert( "Please provide a location" ); }
Repeat for the other fieldds you want to make compulsary