1
alien-shot
CBB 3.08 and multieditor 0.2
  • 2010/5/5 14:49

  • alien-shot

  • Just popping in

  • Posts: 42

  • Since: 2009/8/21


I have installed XOOPS 2.3.3, module CBB 3.08, a module multieditor 0.2!
I need to anonymity could write in the forum and create new topics! But multieditor module gives an error:

Fatal error: Call to a member function isAdmin () on a non-object in / home / avb / avb.ru / docs / modules / multieditor / multieditor_include.php on line 55

Line 55:



if ($xoopsUser->isAdmin()) // CHECK IF CURRENT USER IS AN ADMINISTRATOR (beta)
{
//echo ("ADMIN");//debug
// get Admin group editor
// COME OTTENGO ID del GRUPPO ADMINISTRATORI????
$user_editor_id = get_group_module_editor($main_module_id,1); // '1' is administrator group (I think???)
// COME OTTENGO ID del GRUPPO ADMINISTRATORI????
$user_editor = get_editor_by_id($user_editor_id['editor_id']);
}
else
{
echo ("NOT ADMIN");//debug
$temp_editors = array();
foreach ($user_groups as $user_group)
{
$temp = get_group_module_editor($main_module_id,$user_group);
$temp_editors[] = get_editor_by_id($temp['editor_id']);
}
foreach ($temp_editors as $temp_editor)
{
if (($temp_editor['weight'] < $compare_weight) || !isset($compare_weight))
{
$user_editor = $temp_editor;
$compare_weight = $temp_editor['weight'];
}
}
}



how to fix this error? Thanks!

2
ghia
Re: CBB 3.08 and multieditor 0.2
  • 2010/5/5 14:59

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Try latest version 0.3

The module is beta, this means testing only!

3
alien-shot
Re: CBB 3.08 and multieditor 0.2
  • 2010/5/5 15:06

  • alien-shot

  • Just popping in

  • Posts: 42

  • Since: 2009/8/21


I tried version 0.3, too, but this bug is on line 33

4
alien-shot
Re: CBB 3.08 and multieditor 0.2
  • 2010/5/5 15:27

  • alien-shot

  • Just popping in

  • Posts: 42

  • Since: 2009/8/21


Solved the problem!

if ($ xoopsUser-> isAdmin ()) / / CHECK IF CURRENT USER IS AN ADMINISTRATOR (beta)

Replace

if (is_object ($ xoopsUser) & & $ xoopsUser-> isAdmin ()) / / CHECK IF CURRENT USER IS AN ADMINISTRATOR (beta)

Login

Who's Online

164 user(s) are online (124 user(s) are browsing Support Forums)


Members: 1


Guests: 163


ForMusS,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits