I kept getting 500 errors every time I'd try to edit the module in the back-end, and on the front end, nothing with the module would work.
I ended up finding out in mod_highlighter_gk4 --> admin --> elements --> assets.php there is a sort of "typo" in the code where it starts with <?phpif(!defined('DS')){
There is supposed to be a space between <?php and if
I used the quickstart version of game_magazine for joomla 3.x. Once I added the space between the two elements above, everything worked flawlessly on the backend, but I still am unable to get the module to display information on the front end.
Ideas?
- Code: Select all
<?php if(!defined('DS')){
define('DS',DIRECTORY_SEPARATOR);
}
defined('JPATH_BASE') or die;
jimport('joomla.form.formfield');
class JFormFieldAsset extends JFormField {
protected $type = 'Asset';
protected function getInput() {
$doc = JFactory::getDocument();
$doc->addScript(JURI::root().$this->element['path'].'script.js');
$doc->addScript(JURI::root().$this->element['path'].'/colorpicker/DynamicColorPicker.js');
$doc->addStyleSheet(JURI::root().$this->element['path'].'style.css');
return null;
}
}
?>