MyBB Community Forums

Full Version: WordPress / MyBB bridge
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi there, I need a help here. I have an mods "WordPress / MyBB bridge", but its seems to be not work with my MyBB Version. This is appear when I try to activated this plugins :

Quote:MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1146 - Table 'mybb.mybb_mybb_settinggroups' doesn't exist
Query:
DELETE FROM mybb_mybb_settinggroups WHERE name = 'wpmybb'

Is it true because of my MyBB version? And if thats the reason, what should I do to modified plugins so I can activated this mods.

Thanks, and sorry for my english.
Yes, it looks like you're using a 1.2 plugin on a 1.4 forum, which won't work.
thanks for information Matt. And how to change this plugins to make it work? I mean with that error it seems not competible with mysql table.
Maybe this is the function for activated this plugin :

function wpmybb_activate()
{
	global $db;
	
	delete_settings();
	
	$query = $db->simple_select(TABLE_PREFIX."settinggroups", "COUNT(*) as rows");
	$rows = $db->fetch_field($query, "rows");
	
	$insertsql = array(
		'name' => 'wpmybb',
		'title' => 'WP/MyBB Options',
		'description' => 'Settings for the WP/MyBB plugin',
		'disporder' => $rows+1, 
		'isdefault' => 'no'
	);
	$db->insert_query(TABLE_PREFIX."settinggroups", $insertsql);
	$group = $db->insert_id();

	$insertsql = array(
		'name' => 'wpmybb_wpurl',
		'title' => 'WordPress URL',
		'description' => 'WordPress URL with no trailing slash',
		'optionscode' => 'text',
		'value' => '',
		'disporder' => 0, 
		'gid' => $group
	);
	$db->insert_query(TABLE_PREFIX."settings", $insertsql);
	
	$insertsql = array(
		'name' => 'wpmybb_accesscode',
		'title' => 'Access Code',
		'description' => 'WP/MyBB Access Code (must match the one in WordPress)',
		'optionscode' => 'text',
		'value' => '',
		'disporder' => 0, 
		'gid' => $group
	);
	$db->insert_query(TABLE_PREFIX."settings", $insertsql);
	
	rebuildsettings();
}

What is the different between 1.2.x and 1.4.x in this function?