Skip to:
Content

bbPress.org

Opened 12 years ago

Closed 11 years ago

#2126 closed defect (bug) (fixed)

Forum Importers do not currently import topic 'sticky status'

Reported by: netweb's profile netweb Owned by: netweb's profile netweb
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.2
Component: API - Importers Keywords:
Cc:

Description

None of the current importers include the ability to import a topics 'sticky status'

bbPress/BddyPress Group Forums

  • 'Topic' (Default) bb_topics.topic_sticky = 0
  • 'Sticky' bb_topics.topic_sticky = 1
  • 'Stick to front' bb_topics.topic_sticky = 2

phpBB

  • 'Topic' (Default) phpbb_topics.topic_type = 0
  • 'Sticky' phpbb_topics.topic_type = 1
  • 'Announcement' phpbb_topics.topic_type = 2
  • 'Global Sticky' phpbb_topics.topic_type = 3

SimplePress

  • 'Topic' (Default) sp_sftopics.topic_pinned = 0
  • 'Sticky' sp_sftopics.topic_pinned = 1

vBulletin & Invision - Update also when DB schema is available.


bbPress 2.x 'Sticky' Status stored in wp_postmeta eg.

meta_id post_id meta_key meta_value
322139 139026 _bbp_sticky_topics a:1:{i:0;i:139046;}

In above example '139026' = 'Parent Forum ID' and '139046' = 'Topic ID'

bbPress 2.x 'Super Sticky' Status stored in wp_options eg.

option_id option_name option_value autoload
5468 bbp_super_sticky_topics a :1:{i:0;i:139047;} yes

In above example '5468' = ??? and '139046' = 'Topic ID'

Related Ticket to follow RE 'Super Sticky = wp_options & 'Sticky' = wp_postmeta

Attachments (3)

2126.diff (719 bytes) - added by netweb 12 years ago.
These are the database table mappings for bbPress1.php
2126-converter.php.diff (4.3 KB) - added by netweb 11 years ago.
2126.1.diff (32.6 KB) - added by netweb 11 years ago.

Download all attachments as: .zip

Change History (15)

#1 @netweb
12 years ago

Related: phpBB 'Global Sticky' #2127 Imported phpBB 'Global Stickies' have invalid forum id

@netweb
12 years ago

These are the database table mappings for bbPress1.php

#2 @netweb
12 years ago

Above in 2126.diff I have not added callback_sticky_status as this is needed for all the converters to update wp_options and wp_postmeta.

I am not sure if this should be a callback_ in each converters own file or if this should be in converter.php either way I need someone else to write that or give me some pointers on how it should be done ;)

#3 @johnjamesjacoby
12 years ago

  • Milestone changed from Awaiting Review to 2.4

Cool. Moving to 2.4, so we can address it then.

#4 @netweb
12 years ago

Mingle Forums

  • 'Topic' (Default) wp_forum_threads.status = open
  • 'Sticky' wp_forum_threads.status = sticky

#5 @netweb
12 years ago

Related: #2157

#6 @johnjamesjacoby
11 years ago

  • Milestone changed from 2.4 to 2.5

No time. Moving to 2.5.

#7 @netweb
11 years ago

Patch incoming for all importers now supporting 'Stickies' during import

@netweb
11 years ago

#8 @netweb
11 years ago

In 2126.1.diff
Include stickies and super stickies import capabilities for the following forum importers:

  • AEF
  • bbPress1
  • Drupal7
  • Example
  • FluxBB
  • Invision
  • Mingle
  • MyBB
  • phpBB
  • PHPFox
  • PunBB
  • SimplePress
  • vBulletin v4.x
  • vBulletin v3.x
  • Xenforo
  • XMB

#9 @netweb
11 years ago

  • Keywords has-patch added

#10 @johnjamesjacoby
11 years ago

  • Owner set to netweb

#11 @johnjamesjacoby
11 years ago

  • Keywords commit added; has-patch removed

#12 @netweb
11 years ago

  • Keywords commit removed
  • Resolution set to fixed
  • Status changed from new to closed

In r5170

Include 'sticky' and 'super sticky' import capabilities for the following forum importers:
AEF, Drupal7, Example, FluxBB, Invision, Mingle, MyBB, phpBB, PHPFox, PunBB, SimplePress?, vBulletin v4.x, vBulletin v3.x, Xenforo and XMB forum importers

Note: See TracTickets for help on using tickets.