{* $Id$ *} {title help="Forums" admpage="forums"}{tr}Forum Importer{/tr}{/title}
{button href="tiki-admin_forums.php" _type="link" class="btn btn-link" _icon_name="wrench" _text="{tr}Admin{/tr}"} {button href="tiki-forums.php" _type="link" class="btn btn-link" _icon_name="list" _text="{tr}List{/tr}"}
{* * If this is a new import, start by selecting the import method and we'll * go from there. *} {if $step eq 'new'} {* This part of the tool is not ready yet, so let's hide it for now...
{tr}Import Forum Contents from Tiki's DB and Server{/tr}
>

{tr}Import from Another DB or Server{/tr}
...OR...

End hiding of unfinished section... *}
{tr}Import from a Local SQL File{/tr}
{tr}Must be in tikiroot/{$tmpdir} or tikiroot/img/wiki_up{/tr}
{elseif $step eq 'test'}
{tr}Verification{/tr}
{if $passed eq 'true'} {else} {/if} {tr}File must be an SQL file and exist in either $tikiroot/temp or $tikiroot/img/wiki_up.{/tr}

{if $passed eq 'true'} File found: {$server}. {else} {tr}File was not specified, or could not be found in either location. Please put the file in either directory and Go Back. If the file exists in both locations, the $tikiroot/{$filecheck} location will be preferred.{/tr} {/if}

{if $passed eq 'true'} {else} {/if}

{elseif $step eq 'select'}
{tr}Select a Forum You Wish to Move (ONE at a time!){/tr}
{section name=fforum loop=$fromForums} {/section}
Select Forum Name Posts
{$fromForums[fforum].name} {$fromForums[fforum].comments}

{tr}Which Forum Do You Wish to Import this Into?{/tr}
{section name=tforum loop=$toForums} {/section}
Select Forum Name Posts
{$toForums[tforum].name} {$toForums[tforum].comments}

{if $noforumsF eq 'true'} There are no forums to migrate! {elseif $noforumsT eq 'true'} There are no forums to migrate into! Create one first. {else}

Please note that by clicking on Import Forum, depending on the size of your SQL file, import may take several minutes. Please be patient. {/if}

{elseif $step eq 'import'} {if $failed eq 'true'}
You must select both a source forum and a destination forum!

{else} {$tomove} actual posts moved from forum {$fF} to {$tF}.
(over time, forum counters may have skewed, so the actual number of posts moved may not equal the number of posts shown in the previous screen.) {/if} {/if}