any news about this?
Finally decided to make it based on threads and posts.
We add 2 field to xf_post: target_id and target_type and they become completely universal.
And there will be one big advantage of such approach: import from vBulletin or other forum will be straightforward.
Don't need to convert albums, cms articles and blogs. It will be keeped in database the same it was imported.
Threaded comments (already done
http://do4a.com/threads/1570/):
Thread:
---Article (post: target_id=0, target_type=post, post_id=100 )
------Comment (post: target_id=101, target_type=post, post_id=102 )
---------Comment (post: target_id=102, target_type=post, post_id=103 )
---Comment (post: target_id=0, target_type=post, post_id=104 )
------Comment (post: target_id=114, target_type=post, post_id=105 )
User's albums ( in TODO list ):
Thread (specified for all ragtek's albums):
---Album (post: target_id=0, target_type=post, post_id=200 )
------Photo (attachment: content_id=200, content_type=post, attachment_id = 1000)
---------Comment (post: target_id=1000, target_type=attachment, post_id=201 )
---------Comment (post: target_id=1000, target_type=attachment, post_id=202 )
---------Comment (post: target_id=1000, target_type=attachment, post_id=203 )
------Photo (attachment: content_id=200, content_type=post, attachment_id = 1001)
---------Comment (post: target_id=1001, target_type=attachment, post_id=204 )
---------Comment (post: target_id=1001, target_type=attachment, post_id=205 )
---------Comment (post: target_id=1001, target_type=attachment, post_id=206 )
---Album (post: target_id=0, target_type=post, post_id=201 )
------Photo (attachment: content_id=201, content_type=post, attachment_id = 1002)
---------Comment (post: target_id=1002, target_type=attachment, post_id=207 )
---------Comment (post: target_id=1002, target_type=attachment, post_id=208 )
---------Comment (post: target_id=1002, target_type=attachment, post_id=209 )
------Photo (attachment: content_id=201, content_type=post, attachment_id = 1003)
---------Comment (post: target_id=1003, target_type=attachment, post_id=210 )
---------Comment (post: target_id=1003, target_type=attachment, post_id=211 )
---------Comment (post: target_id=1003, target_type=attachment, post_id=212 )
Diary ( in TODO list ):
Thread (specified for ragtek's diary):
---Entry (post: target_id=0, target_type=post, post_id=200 )
------Comment (post: target_id=200, target_type=post, post_id=201 )
------Comment (post: target_id=200, target_type=post, post_id=202 )
------Comment (post: target_id=200, target_type=post, post_id=203 )
---Entry (post: target_id=0, target_type=post, post_id=201 )
------Comment (post: target_id=201, target_type=post, post_id=204 )
------Comment (post: target_id=201, target_type=post, post_id=205 )
------Comment (post: target_id=201, target_type=post, post_id=206 )