Changeset 4743
- Timestamp:
- 01/31/2013 04:35:04 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/admin/converters/bbPress1.php
r4638 r4743 4 4 * bbPress 1.1 Converter 5 5 * 6 * @since bbPress (rxxxx) 6 * @since bbPress (r3816) 7 * @link Codex Docs http://codex.bbpress.org/import-forums/bbpress-1-x-buddypress-group-forums 7 8 */ 8 9 class bbPress1 extends BBP_Converter_Base { … … 33 34 ); 34 35 35 // Forum parent id (If no parent, 0. Stored in postmeta)36 // Forum parent id (If no parent, then 0. Stored in postmeta) 36 37 $this->field_map[] = array( 37 38 'from_tablename' => 'forums', … … 57 58 ); 58 59 59 // Forum to pic count (Stored in postmeta)60 // Forum total topic count (Stored in postmeta) 60 61 $this->field_map[] = array( 61 62 'from_tablename' => 'forums', … … 65 66 ); 66 67 67 // Forum reply count (Stored in postmeta)68 // Forum total reply count (Stored in postmeta) 68 69 $this->field_map[] = array( 69 70 'from_tablename' => 'forums', … … 139 140 ); 140 141 141 // Reply count (Stored in postmeta)142 // Topic reply count (Stored in postmeta) 142 143 $this->field_map[] = array( 143 144 'from_tablename' => 'topics', … … 148 149 ); 149 150 150 // Forum id (Stored in postmeta)151 // Topic parent forum id (If no parent, then 0. Stored in postmeta) 151 152 $this->field_map[] = array( 152 153 'from_tablename' => 'topics', … … 196 197 ); 197 198 198 // Poststatus (Spam, Trash or Publish)199 // Topic status (Spam, Trash or Publish) 199 200 $this->field_map[] = array( 200 201 'from_tablename' => 'posts', … … 208 209 ); 209 210 210 // Author ip.211 // Topic author ip (Stored in postmeta) 211 212 $this->field_map[] = array( 212 213 'from_tablename' => 'posts', … … 219 220 ); 220 221 221 // Forum id (If no parent,0)222 // Topic parent forum id (If no parent, then 0) 222 223 $this->field_map[] = array( 223 224 'from_tablename' => 'topics', … … 295 296 /** Reply Section *****************************************************/ 296 297 297 // Post id. Stores in postmeta.298 // Reply id (Stored in postmeta) 298 299 $this->field_map[] = array( 299 300 'from_tablename' => 'posts', … … 303 304 ); 304 305 305 // Topic id (Storesin postmeta)306 // Reply parent topic id (If no parent, then 0. Stored in postmeta) 306 307 $this->field_map[] = array( 307 308 'from_tablename' => 'posts', … … 312 313 ); 313 314 314 // Forum id (Stored in postmeta)315 // Reply parent forum id (If no parent, then 0. Stored in postmeta) 315 316 $this->field_map[] = array( 316 317 'from_tablename' => 'posts', … … 321 322 ); 322 323 323 // Topic title (for reply title). 324 // Reply title. 325 // Note: We join the topics table because post table does not include topic title. 324 326 $this->field_map[] = array( 325 327 'from_tablename' => 'topics', … … 333 335 ); 334 336 335 // Author ip.337 // Reply author ip (Stored in postmeta) 336 338 $this->field_map[] = array( 337 339 'from_tablename' => 'posts', … … 350 352 ); 351 353 352 // Reply status 354 // Reply status (Spam, Trash or Publish) 353 355 $this->field_map[] = array( 354 356 'from_tablename' => 'posts', … … 376 378 ); 377 379 378 // Topic id. If no parent, than 0.380 // Reply parent topic id (If no parent, then 0) 379 381 $this->field_map[] = array( 380 382 'from_tablename' => 'posts', … … 413 415 /** User Section ******************************************************/ 414 416 415 // Store old User id . Stores in usermeta.417 // Store old User id (Stored in usermeta) 416 418 $this->field_map[] = array( 417 419 'from_tablename' => 'users', … … 421 423 ); 422 424 423 // Store old User password . Stores in usermeta.425 // Store old User password (Stored in usermeta) 424 426 $this->field_map[] = array( 425 427 'from_tablename' => 'users', … … 522 524 * Verify the topic reply count. 523 525 * 524 * @param int $count bbPress 1.x reply count526 * @param int $count bbPress 1.x topic and reply counts 525 527 * @return string WordPress safe 526 528 */ … … 567 569 protected function callback_html( $field ) { 568 570 require_once( bbpress()->admin->admin_dir . 'parser.php' ); 569 $bbcode = BBCode::getInstance(); 571 $bbcode = BBCode::getInstance(); 570 572 $bbcode->enable_smileys = false; 571 573 $bbcode->smiley_regex = false;
Note: See TracChangeset
for help on using the changeset viewer.