Hi Community
I tested CB1.2.1 (updateed from 1.2stable with exact the steps in the readme file) on my Joomla tespage, Joomla 1.5.11de in legacy mode (php5.2.5 and mysql5.0.45)
Everything works fine, but there is a problem with the moduls liveuserpro and s4j_useronline. After activate these modules i got these errors on frontpage:
liveuserpro:
[code:1]Notice: Use of undefined constant lvuMain - assumed 'lvuMain' in /web/community/modules/mod_liveuserspro/mod_liveuserspro.php on line 37[/code:1]
[code:1]Notice: Undefined variable: mosConfig_lang in /web/community/modules/mod_liveuserspro/mod_liveuserspro.php on line 58[/code:1]
[code:1]Notice: Undefined variable: content in /web/community/modules/mod_liveuserspro/mod_liveuserspro.php on line 278 and 279[/code:1]
in s4J useronline: (this comes 5times)
[code:1]Notice: Undefined variable: result in /home/.sites/75/site340/web/community/modules/mod_s4juseronline/helper.php on line 534[/code:1]
This is the code from helper.php line 494 - 534
[code:1] function GetFilterSQL($tblalisas, $tblalisasuser, $filter, $filtervalue) {
$user =& JFactory::getUser();
$userid = (int)$user->get("id"«»);
switch ($filter) {
case 1: // Only users with picture
$result = " AND $tblalisas.avatar IS NOT NULL AND $tblalisas.avatarapproved = 1 \n";
break;
case 2: // Only buddies
if($userid > 0) //TODO: DJ die andere richtung implementieren && und my id
$result = " AND $tblalisasuser.id IN (SELECT cm.referenceid FROM jos_comprofiler_members cm WHERE cm.referenceid = $tblalisasuser.id AND cm.pending=0 AND cm.accepted=1 ) \n";
break;
case 3: // Gender
$result = " AND $tblalisas.$this->_cb_gender_field = '$filtervalue' \n";
break;
case 4: // Same gender
if($userid > 0)
$result = " AND $tblalisas.$this->_cb_gender_field IN ( SELECT $this->_cb_gender_field FROM #__comprofiler xyz WHERE xyz.user_id = $userid ) \n"; //Same gender
break;
case 5: // Opposite gender
if($userid > 0)
$result = " AND $tblalisas.$this->_cb_gender_field NOT IN ( SELECT $this->_cb_gender_field FROM #__comprofiler xyz WHERE xyz.user_id = $userid ) \n"; //Same gender
break;
case 11:
$result = " AND $tblalisas.$this->_cb_custom1 = '$filtervalue' \n";
break;
case 12:
$result = " AND $tblalisas.$this->_cb_custom2 = '$filtervalue' \n";
break;
case 13:
$result = " AND $tblalisas.$this->_cb_custom3 = '$filtervalue' \n";
break;
case 14:
$result = " AND $tblalisas.$this->_cb_custom4 = '$filtervalue' \n";
break;
case 15:
$result = " AND $tblalisas.$this->_cb_custom5 = '$filtervalue' \n";
break;
}
return $result;
[/code:1]
I hope anyone can help me... these modules works fine with cb1.2stable