So I had the previous version of IjoComment, i think was the 3.5.6 or somithing like.... and I unistaled it in order to install the 4.0 beta.
Ok I installed it withou a hitch but, the problem is everytime I go to
Components
> and try to click in any option of the IJoomla I ge this error.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home1/oquevoce/public_html/administrator/components/com_comment/toolbar.comment.html.php on line 29
So I'm asking you guys any idea what possible wrong??
Another strange think it seens the comments are working just fine on the front-end
By the way heres the code of the page:
<?php defined('_JEXEC') or die('Direct Access to this location is not allowed.');
/**
* Copyright Copyright (C) 2007 Alain Georgette. All rights reserved.
* Copyright Copyright (C) 2006 Frantisek Hliva. All rights reserved.
* License http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*
* !JoomlaComment is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* !JoomlaComment is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
require_once(JPATH_SITE.DS.'components'.DS.'com_comment'.DS.'joscomment'.DS.'utils.php');
require_once(JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_comment'.DS.'class.config.comment.php');
function existsAkoTable()
{
JFactory::getDBO()->setQuery ('');
}
class JOSCmosMenubar extends JToolbarHelper {
}
class menucomment {
function MENU_DEFAULT($component='')
{
$config = new JOSC_defaultconfig($component);
$config->load();
if (strpos(strtoupper($config->_local_charset), "UTF-8")===false) {
JOSCmosMenuBar::custom('convertlcharset', 'extensions_f2.png', 'extensions_f2.png', "Convert to $config->_local_charset", true);
}
unset($config);
JOSCmosMenuBar::publishList();
JOSCmosMenuBar::unpublishList();
// JOSCmosMenuBar::addNew();
JOSCmosMenuBar::editList();
JOSCmosMenuBar::deleteList(" Users will not be notified. To notify users use line delete button !");
JOSCmosMenuBar::spacer();
}
function SETTINGS_MENU()
{
// JOSCmosMenuBar::publishList();
// JOSCmosMenuBar::unpublishList();
/* expert mode is not still available - only used for joomlacomment DEMO */
// if (!(strpos(JURI::base(), 'http://localhost/liberator')===false)) JOSCmosMenuBar::custom('settingsexpert', 'extensions_f2.png', 'extensions_f2.png', "Expert Mode", false);
JOSCmosMenuBar::addNew('settingsnew');
JOSCmosMenuBar::editList('settingsedit'); /* $task='edit', $alt='Edit' */
JOSCmosMenuBar::deleteList('', 'settingsremove'); /* $msg='', $task='remove', $alt='Delete' */
JOSCmosMenuBar::spacer();
}
function SETTINGSEXPERT_MENU()
{
// if (!(strpos(JURI::base(), 'http://localhost/liberator')===false)) JOSCmosMenuBar::custom('settings', 'extensions_f2.png', 'extensions_f2.png', "Simple Mode", false);
// JOSCmosMenuBar::publishList();
// JOSCmosMenuBar::unpublishList();
JOSCmosMenuBar::addNew('settingsnewexpert');
JOSCmosMenuBar::editList('settingseditexpert'); /* $task='edit', $alt='Edit' */
JOSCmosMenuBar::deleteList('', 'settingsremove'); /* $msg='', $task='remove', $alt='Delete' */
JOSCmosMenuBar::spacer();
}
function CONFIG_MENU()
{
JOSCmosMenuBar::save('savesettings');
JOSCmosMenuBar::apply('applysettings');
JOSCmosMenuBar::cancel('settings');
JOSCmosMenuBar::spacer();
}
function CONFIGEXPERT_MENU()
{
JOSCmosMenuBar::save('savesettingsexpert');
JOSCmosMenuBar::apply('applysettingsexpert');
JOSCmosMenuBar::cancel('settingsexpert');
JOSCmosMenuBar::spacer();
}
function CONFIGSIMPLE_MENU()
{
JOSCmosMenuBar::save('savesettingssimple');
JOSCmosMenuBar::apply('applysettingssimple');
// JOSCmosMenuBar::cancel(''); /* -> view comments */
JOSCmosMenuBar::spacer();
}
function IMPORT_MENU($josctask)
{
JOSCmosMenuBar::apply($josctask['apply'], 'Preview');
//mosMenuBar::custom($josctask['import'], 'move.png', 'move_f2.png', 'Import selected' );
JOSCmosMenuBar::custom($josctask['importall'], 'move.png', 'move_f2.png', 'Import ALL', false);
JOSCmosMenuBar::spacer();
}
function FILE_MENU()
{
JOSCmosMenuBar::save();
JOSCmosMenuBar::cancel();
JOSCmosMenuBar::spacer();
}
function ABOUT_MENU()
{
JOSCmosMenuBar::back();
JOSCmosMenuBar::spacer();
}
function JUST_BACK()
{
JOSCmosMenuBar::back();
JOSCmosMenuBar::spacer();
}
function JOOMVERTISING_MENU()
{
JOSCmosMenuBar::back();
JOSCmosMenuBar::spacer();
}
}
Thanks guys any help is apreciate.