Support Toolkit

Reparse BBCode sets topic author to last poster. - Support Toolkit

Reparse BBCode sets topic author to last poster.

by usju » Sun Nov 30, 2014 8:23 pm

Hello,

I'm converting a forum from Typo3/mm_forum to phpBB (3.0.10) using this tool :
viewtopic.php?f=65&t=2115251

Everything works fine but I found that I need to use the STK to reparse BBCode or else the quotes/ nested quotes do not show up. After running the 'Reparse BBCode' functions (I have to check the select the 'Reparse all BBCodes' option for it to reparse all the posts) on every topic the topic author is set to the details of the last poster in that topic.

Is this a know issue, maybe with phpBB 3.0.10? Is there any way around this or is there a bug fix?

Thanks!
usju
Registered User
Posts: 13
Joined: Sun Nov 30, 2014 8:12 pm
Contact:

Re: Reparse BBCode sets topic author to last poster.

by usju » Mon Dec 01, 2014 5:27 am

I edited my fist post as only the topic author is reset, not the topic date/time as I first mentioned
usju
Registered User
Posts: 13
Joined: Sun Nov 30, 2014 8:12 pm
Contact:

Re: Reparse BBCode sets topic author to last poster.

by usju » Mon Dec 01, 2014 11:41 am

Would this be a solution (different but similair looking problem):

Due to a bug in the BBCode Reparser in all Support Toolkit versions prior to v1.0.5, some topics might be marked as started by a guest. To resolve this issue run the following query against your database.

Code: Select all

UPDATE phpbb_topics SET topic_first_poster_name = (SELECT username FROM phpbb_users WHERE user_id = topic_poster) WHERE topic_first_poster_name = '';


If you use a different prefix don't forget to change phpbb_ to the prefix that you've chosen during installation.


https://www.phpbb.com/customise/db/offi ... tk/faq/628
usju
Registered User
Posts: 13
Joined: Sun Nov 30, 2014 8:12 pm
Contact:

Re: Reparse BBCode sets topic author to last poster.

by usju » Thu Dec 11, 2014 1:14 pm

I just noticed that after running the re-parse function the number of reply counts for each topic gets increased by one.
('topic_replies' & 'topic_replies_real' in 'phpbb_topics' in the database)
usju
Registered User
Posts: 13
Joined: Sun Nov 30, 2014 8:12 pm
Contact:

Re: Reparse BBCode sets topic author to last poster.

by Oyabun1 » Thu Dec 11, 2014 9:06 pm

usju wrote:I just noticed that after running the re-parse function the number of reply counts for each topic gets increased by one.
('topic_replies' & 'topic_replies_real' in 'phpbb_topics' in the database)
That doesn't happen on a standard board.

And the topic author isn't changed by reparsing BBCodes.

Seems the Typo3/mm_forum convertor has messed up.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Reparse BBCode sets topic author to last poster.

by usju » Fri Dec 12, 2014 5:25 am

deleted
Last edited by usju on Fri Dec 12, 2014 7:57 am
usju
Registered User
Posts: 13
Joined: Sun Nov 30, 2014 8:12 pm
Contact:

Re: Reparse BBCode sets topic author to last poster.

by usju » Fri Dec 12, 2014 7:08 am

Thank you for your reply.

It's the generic message importer (through XML files here):
viewtopic.php?f=65&t=2115251
that we are noticing these issues with.

I just did a quick test with a freshly setup board and made some test posts (not imported with the generic XML import tool) and ran the BBcode re-parser. Everything works as expected in that case.

The post count issue is already there before running the BBcode re-parser.
The topic author problem will occur (before the BBcode re-parse tool) when you edit a post in an existing thread. I guess the BBcode re-parse just brings out this issue en masse because it touched all the posts.

So it seems indeed that the generic XML import tool has some faults and the re-parser itself is not at fault.

Oyabun1 I see that you actually made changes/contribution to the generic XML message importer tool in the past:
viewtopic.php?f=65&t=2115251&start=15#p13267042

If you have some time it would be greatly appreciated if you could go through the code again and try to fix the issues!

I have the opportunity to test any changes in the tool as I am in the process of converting an other forum with this tool and have several VMs running to test.
usju
Registered User
Posts: 13
Joined: Sun Nov 30, 2014 8:12 pm
Contact: