2009-05-27, 12:33 AM
I am starting my experience with myBB with writing a plugin for aMember. The version I have is 1.4.6 (1406) as a fresh download.
Around line 140 in the function akismet_install you have;
Thanks,
Larry
Around line 140 in the function akismet_install you have;
$query = $db->simple_select("settinggroups", "COUNT(*) as rows");
$rows = $db->fetch_field($query, "rows");
This is bad because as stuff is added/removed it is not the last settings group id just the number of rows... Should be something like $query = $db->simple_select( "settinggroups", "MAX(disporder) as rows" );
$rows = $db->fetch_field( $query, "rows" );
Test and working as I think you intended...Thanks,
Larry