Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -85,10 +85,6 @@ class _Mybb extends \IPS\convert\Software
|
||||
'table' => 'announcements',
|
||||
'where' => NULL
|
||||
),
|
||||
'convertRanks' => array(
|
||||
'table' => 'usertitles',
|
||||
'where' => NULL
|
||||
),
|
||||
'convertPrivateMessages' => array(
|
||||
'table' => 'privatemessages',
|
||||
'where' => array( 'fromid<>uid' )
|
||||
@@ -238,7 +234,7 @@ class _Mybb extends \IPS\convert\Software
|
||||
'field_validation' => function( $value ) { if ( !@is_dir( $value ) ) { throw new \DomainException( 'path_invalid' ); } },
|
||||
);
|
||||
|
||||
foreach( array( 'website', 'icq', 'aim', 'yahoo', 'skype', 'google' ) AS $field )
|
||||
foreach( array( 'website', 'icq', 'aim', 'yahoo', 'skype', 'google', 'usertitle' ) AS $field )
|
||||
{
|
||||
\IPS\Member::loggedIn()->language()->words["field_{$field}"] = \IPS\Member::loggedIn()->language()->addToStack( 'pseudo_field', FALSE, array( 'sprintf' => $field ) );
|
||||
\IPS\Member::loggedIn()->language()->words["field_{$field}_desc"] = \IPS\Member::loggedIn()->language()->addToStack( 'pseudo_field_desc' );
|
||||
@@ -556,7 +552,7 @@ class _Mybb extends \IPS\convert\Software
|
||||
'pf_show_on_reg' => $row['registration'],
|
||||
'pf_input_format' => '/' . $row['regex'] . '/i',
|
||||
'pf_member_edit' => ( $row['editableby'] == -1 ) ? 1 : 0, # MyBB allows you to define which groups can edit, so if this value is anything other than -1, assume it's admin only
|
||||
'pf_multiple' => ( $theirType == 'multiselect' ) ? 1 : 0
|
||||
'pf_multiple' => ( $theirType == 'multiselect' OR $theirType == 'checkbox' ) ? 1 : 0
|
||||
);
|
||||
|
||||
$merge = $this->app->_session['more_info']['convertProfileFields']["map_pfield_{$row['fid']}"] != 'none' ? $this->app->_session['more_info']['convertProfileFields']["map_pfield_{$row['fid']}"] : NULL;
|
||||
@@ -833,7 +829,6 @@ class _Mybb extends \IPS\convert\Software
|
||||
'timezone' => $row['timezone'],
|
||||
'allow_admin_mails' => $row['allownotices'],
|
||||
'members_disable_pm' => ( $row['receivepms'] ) ? 0 : 1,
|
||||
'member_title' => $row['usertitle'],
|
||||
'member_posts' => $row['postnum'],
|
||||
'member_last_post' => $row['lastpost'],
|
||||
);
|
||||
@@ -854,7 +849,7 @@ class _Mybb extends \IPS\convert\Software
|
||||
}
|
||||
catch( \UnderflowException $e ) {}
|
||||
|
||||
foreach( array( 'website', 'icq', 'aim', 'yahoo', 'skype', 'google' ) AS $pseudo )
|
||||
foreach( array( 'website', 'icq', 'aim', 'yahoo', 'skype', 'google', 'usertitle' ) AS $pseudo )
|
||||
{
|
||||
/* Are we retaining? */
|
||||
if ( $this->app->_session['more_info']['convertMembers']["field_{$pseudo}"] == 'no_convert' )
|
||||
@@ -954,30 +949,6 @@ class _Mybb extends \IPS\convert\Software
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert ranks
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function convertRanks()
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
|
||||
$libraryClass::setKey( 'utid' );
|
||||
|
||||
foreach( $this->fetch( 'usertitles', 'utid' ) AS $row )
|
||||
{
|
||||
$libraryClass->convertRank( array(
|
||||
'id' => $row['utid'],
|
||||
'title' => $row['title'],
|
||||
'posts' => $row['posts'],
|
||||
'pips' => $row['stars']
|
||||
) );
|
||||
|
||||
$libraryClass->setLastKeyValue( $row['utid'] );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert PMs
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user