Hi to all,
I'm trying to update this plugin: http://mods.mybboard.net/archive/view/wp-mybb because it's under GNU General Public License as you can see here: http://mods.mybboard.net/download/wp-mybb.
I updated it and it works fine but I have wanted add a new feature, an option to insert the user id of the user that will be the author of the threads which are the blog's articles.
So in the file wpmybb.php I added this:
I'm trying to update this plugin: http://mods.mybboard.net/archive/view/wp-mybb because it's under GNU General Public License as you can see here: http://mods.mybboard.net/download/wp-mybb.
I updated it and it works fine but I have wanted add a new feature, an option to insert the user id of the user that will be the author of the threads which are the blog's articles.
So in the file wpmybb.php I added this:
$insertsql = array(
'name' => 'wpmybb_uid',
'title' => 'Uid User',
'description' => 'Insert the uid of user that will create threads',
'optionscode' => 'text',
'value' => '',
'disporder' => 3,
'gid' => $group
);
$db->insert_query("settings", $insertsql);
And then I replaced this:$data['user_id'] = 1;
with this:$data['user_id'] = $mybb->settings['wpmybb_uid'];
and now it doesn't open threads when I post on blog...