I want the editor-xtd plugins not to work on the front end how do i do that?

Post by sandy malteser » Wed Apr 09, 2008 1:54 pm
Post by sandy malteser » Fri Apr 11, 2008 3:48 pm
Post by sandy malteser » Tue Apr 15, 2008 12:41 am
Code: Select all
function onDisplay($name)
{
global $mainframe;
$user = &JFactory::getUser();
$doc =& JFactory::getDocument();
$template = $mainframe->getTemplate();
$link = 'index.php?option=com_media&view=images&tmpl=component&e_name='.$name;
JHTML::_('behavior.modal');
if ( $user->get('gid') > 23 ) {
$button = new JObject();
$button->set('modal', true);
$button->set('link', $link);
$button->set('text', JText::_('Image'));
$button->set('name', 'image');
$button->set('options', "{handler: 'iframe', size: {x: 570, y: 400}}");
} else {
$button = new JObject();
$button->set('modal', false);
$button->set('link', '');
$button->set('text', '');
$button->set('name', '');
$button->set('options', "{handler: 'iframe', size: {x: 570, y: 400}}");
}
return $button;
}
Post by altibel » Tue Nov 15, 2011 12:40 pm
Return to “Extensions for Joomla! 1.5”
© 2005 - 2021 Open Source Matters, Inc. All Rights Reserved.