b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: admin ] [ index: admin ] [ all elements ]

Procedural File: import-mt.php

Source Location: /blogs/admin/import-mt.php

Page Details

This file implements importing of Movable Type entries into b2evolution.

This script was developed and tested with b2evolution 0.9.0.4 (on Sourceforge CVS) and Movable Type 2.64 and 2.661. It should work quite alright with b2evo 0.9 and later though.

This file is part of the b2evolution/evocms project - http://b2evolution.net/. See also http://sourceforge.net/projects/evocms/.

Author:  fplanque: François PLANQUE
Author:  blueyed: Daniel HAHLER
Version:  $Id: import-mt.php,v 1.1.2.25 2005/10/03 23:33:02 blueyed Exp $
Copyright:  (c)2003-2005 by Francois PLANQUE - http://fplanque.net/. Parts of this file are copyright (c)2004-2005 by Daniel HAHLER - http://thequod.de/contact. Credits go to the WordPress team (@link http://wordpress.org), where I got the basic import-mt.php script with most of the core functions. Thank you!
Filesource:  Source Code for this file
License:  GNU General Public License (GPL)
Includes
require (dirname(__FILE__)."/$admin_dirout/$htsrv_subdir/login.php") [line 136]
[ Top ]

require ('../conf/_config.php') [line 115]

Set to true to get a lot of var_dumps, wrapped in pre tags

[ Top ]

require ('../b2evocore/_main.php') [line 128]
[ Top ]

require (dirname(__FILE__)."/$admin_dirout/$core_subdir/_conf_error_page.php") [line 121]
[ Top ]


Constants
MTEXPORT  [line 75]

MTEXPORT = ''

Enter the relative path of the import.txt file containing the MT entries.

If the file is called import.txt and it is in /admin, then this line should be:

  1.  define('MTEXPORT''import.txt');

You only need this to force a specific file instead of using a dropdown list (UI selection)


[ Top ]


Functions
cats_optionslist  [line 1288]

void cats_optionslist( $forcat  )
Parameters:
   $forcat: 


[ Top ]
cat_children2  [line 1322]

void cat_children2( $ccats, $blog_ID, $parent_ID, [ $level = 0]  )
Parameters:
   $ccats: 
   $blog_ID: 
   $parent_ID: 
   $level: 


[ Top ]
chooseexportfile  [line 1545]

void chooseexportfile( )


[ Top ]
debug_dump  [line 1534]

void debug_dump( $var, [ $title = '']  )
Parameters:
   $var: 
   $title: 


[ Top ]
dieerror  [line 1524]

void dieerror( string $message, [string $before = '']  )

Die with a message.

Parameters:
string   $message:  the message (wrapped in div and p tag of class error)
string   $before:  optional head


[ Top ]
fieldset_cats  [line 1201]

void fieldset_cats( )

associative array that maps MT cats to b2evo.

key is the MT category name. values: holds type and value: types:

  • 'blogid': blog_id, new name
  • 'catid': cat_id
  • 'defaultset': -
  • 'ignore': -



[ Top ]
import_data_extract_authors_cats  [line 1359]

void import_data_extract_authors_cats( )

extracts unique authors and cats from posts array



[ Top ]
renderer_list  [line 1437]

void renderer_list( )

Outputs a list of available renderers (not necessarily installed).



[ Top ]
ripline  [line 1586]

void ripline( $prefix, &$haystack  )
Parameters:
   $prefix: 
   &$haystack: 


[ Top ]
tidypostdata  [line 1597]

void tidypostdata( $string  )
Parameters:
   $string: 


[ Top ]


Documentation generated on Tue, 20 May 2008 01:51:39 +0200 by phpDocumentor 1.4.2