Hi,
I’m currently using
IPBWI to integrate Invision Power Board functions like user information and group information to my MODx web project. Unfortunatly, every single function I try to use with IPBWI through MODx returns this:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: usort() [function.usort]: Invalid comparison function.
Error type/ Nr.: Warning - 2
File: /home/norcan2/public_html/forum/sources/handlers/han_parse_bbcode.php
Line: 442
Line 442 source: @usort( $this->ipsclass->cache[’emoticons’] , array( &$this->bbclass, ’smilie_length_sort’ ) );
Parser timing
MySQL: 0.0083 s (5 Requests)
PHP: 0.4770 s
Total: 0.4853 s
Error while inserting event log into database.
Is the MODx parser having a conflict with the IPB code? I’m sorry I’m not able to post the IPB code here due to copyright stuff, but I’ll try to supply more information about how I’m doing this.
On a webpage, I’m using a snippet call to read if the currently logged on member is a part of a certain group. If not, then return some text saying he’s not an admin.
Snippet code:
<?php
include('../forum/ipbwi/ipbsdk_class.inc.php');
$SDK =& new IPBSDK();
if($SDK->is_ingroup(4)) echo '<p>Congratulations! You are an admin :)</p>';
else echo '<p>Uh, you are not an admin - too bad!</p>';
$group = $SDK->get_groupinfo();
?>
The error seems to occour even if I just call the IPBSDK class:
include('../forum/ipbwi/ipbsdk_class.inc.php');
$SDK =& new IPBSDK();
Uhm... Help