Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -99,6 +99,14 @@ class _Invisioncommunity extends \IPS\convert\Software
|
||||
}
|
||||
|
||||
return array(
|
||||
'convertAchievementBadges' => array(
|
||||
'table' => 'core_badges',
|
||||
'where' => NULL
|
||||
),
|
||||
'convertAchievementRanks' => array(
|
||||
'table' => 'core_member_ranks',
|
||||
'where' => NULL
|
||||
),
|
||||
'convertAcronyms' => array(
|
||||
'table' => 'core_acronyms',
|
||||
'where' => NULL
|
||||
@@ -119,10 +127,6 @@ class _Invisioncommunity extends \IPS\convert\Software
|
||||
'table' => 'core_groups',
|
||||
'where' => NULL
|
||||
),
|
||||
'convertRanks' => array(
|
||||
'table' => 'core_member_ranks',
|
||||
'where' => NULL
|
||||
),
|
||||
'convertProfileFieldGroups' => array(
|
||||
'table' => 'core_pfields_groups',
|
||||
'where' => NULL
|
||||
@@ -230,7 +234,6 @@ class _Invisioncommunity extends \IPS\convert\Software
|
||||
return array(
|
||||
'convertEmoticons',
|
||||
'convertGroups',
|
||||
'convertRanks',
|
||||
'convertMembers',
|
||||
'convertReputationLevels',
|
||||
'convertClubs',
|
||||
@@ -253,7 +256,6 @@ class _Invisioncommunity extends \IPS\convert\Software
|
||||
switch( $method )
|
||||
{
|
||||
case 'convertEmoticons':
|
||||
case 'convertRanks':
|
||||
case 'convertMembers':
|
||||
case 'convertReputationLevels':
|
||||
case 'convertClubs':
|
||||
@@ -367,12 +369,65 @@ class _Invisioncommunity extends \IPS\convert\Software
|
||||
return array( "f_search_index_rebuild", "f_clear_caches" );
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert Achievement Badges
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function convertAchievementBadges(): void
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
$libraryClass::setKey( 'id' );
|
||||
|
||||
foreach( $this->fetch( 'core_badges', 'id' ) AS $row )
|
||||
{
|
||||
/* Remove non-standard columns */
|
||||
$this->unsetNonStandardColumns( $row, 'core_badges' );
|
||||
|
||||
/* Add name after clearing other columns */
|
||||
$row['title'] = $this->getWord( 'core_badges_' . $row['id'] );
|
||||
|
||||
/* Path for custom icon */
|
||||
$imagePath = $row['image'] ? $this->app->_session['more_info']['convertEmoticons']['upload_path'] . '/' . $row['image'] : NULL;
|
||||
$row['image'] = $row['image'] ? pathinfo( $imagePath, PATHINFO_BASENAME ) : NULL;
|
||||
|
||||
$libraryClass->convertAchievementBadge( $row, $imagePath );
|
||||
$libraryClass->setLastKeyValue( $row['id'] );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert Achievement Ranks
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function convertAchievementRanks(): void
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
$libraryClass::setKey( 'id' );
|
||||
|
||||
foreach( $this->fetch( 'core_member_ranks', 'id' ) AS $row )
|
||||
{
|
||||
/* Remove non-standard columns */
|
||||
$this->unsetNonStandardColumns( $row, 'core_member_ranks' );
|
||||
|
||||
/* Add name after clearing other columns */
|
||||
$row['title'] = $this->getWord( 'core_member_rank_' . $row['id'] );
|
||||
|
||||
/* Path for custom icon */
|
||||
$imagePath = $row['icon'] ? $this->app->_session['more_info']['convertEmoticons']['upload_path'] . '/' . $row['icon'] : NULL;
|
||||
|
||||
$libraryClass->convertAchievementRank( $row, $imagePath );
|
||||
$libraryClass->setLastKeyValue( $row['id'] );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert acronym
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function convertAcronym()
|
||||
public function convertAcronyms()
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
$libraryClass::setKey( 'a_id' );
|
||||
@@ -515,32 +570,6 @@ class _Invisioncommunity extends \IPS\convert\Software
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert ranks
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function convertRanks()
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
$libraryClass::setKey( 'id' );
|
||||
|
||||
foreach( $this->fetch( 'core_member_ranks', 'id' ) AS $row )
|
||||
{
|
||||
/* Remove non-standard columns */
|
||||
$this->unsetNonStandardColumns( $row, 'core_member_ranks' );
|
||||
|
||||
/* Add name after clearing other columns */
|
||||
$row['title'] = $this->getWord( 'core_member_rank_' . $row['id'] );
|
||||
|
||||
/* Path for custom icon */
|
||||
$iconPath = $row['icon'] ? $this->app->_session['more_info']['convertEmoticons']['emoticon_path'] . '/' . $row['icon'] : NULL;
|
||||
|
||||
$libraryClass->convertRank( $row, $iconPath );
|
||||
$libraryClass->setLastKeyValue( $row['id'] );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert profile field groups
|
||||
*
|
||||
@@ -1134,7 +1163,7 @@ class _Invisioncommunity extends \IPS\convert\Software
|
||||
$this->unsetNonStandardColumns( $row, 'core_member_history' );
|
||||
|
||||
/* our content is already formatted for member history, so we'll use that method instead */
|
||||
$libraryClass->convertMemberHistory( $row );
|
||||
$libraryClass->convertMemberHistory( $row );
|
||||
$libraryClass->setLastKeyValue( $row['log_id'] );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user