Calculating post_checksum

Converting from other board software? Good decision! Need help? Have a question about a convertor? Wish to offer a convertor package? Post here.
Anti-Spam Guide
Locked
GibsonLP
Registered User
Posts: 65
Joined: Wed Aug 17, 2005 8:06 am

Calculating post_checksum

Post by GibsonLP » Tue Jan 11, 2011 4:47 am

Hi again, I somehow missed this field and didn't ask about it in my original post, sorry for that -
I see that there is a post_checksum field, it looks like an md5 but when I run md5 on one of the posts in my own forum - the result was different than the value in the database, is there anything in post_text that is not being included in the checksum calculation? is there any other value included besides this field?

Thanks!

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: Calculating post_checksum

Post by D¡cky » Tue Jan 11, 2011 6:08 am

The function is $foo = md5($message_parser->message)
What the message parser has to submit to the database may not be exactly what is stored in the database. I am thinking escaped characters which is probably why you are getting a different MD5 value.

I actually wouldn't worry about the post_checksum. The phpBB2 to phpBB3 convertor does not calculate it. The field is used when editing a post to see if any actual changes have been made when submitting such as if someone else had edited the post while you were editing it.
Have you hugged someone today?

GibsonLP
Registered User
Posts: 65
Joined: Wed Aug 17, 2005 8:06 am

Re: Calculating post_checksum

Post by GibsonLP » Wed Jan 12, 2011 7:19 pm

Thanks!

NewToPHPBoards
Registered User
Posts: 230
Joined: Wed Feb 03, 2016 1:38 pm

Re: Calculating post_checksum

Post by NewToPHPBoards » Sat Feb 27, 2016 11:19 am

Sorry to bring this thread back from the dead.

Is it still true, that in PHPBB version 3.1.6, I don't need to worry about calculating the checksum for a import of posts via a migration?

User avatar
FoFa
Registered User
Posts: 200
Joined: Wed Dec 03, 2008 9:21 am
Name: Daniel L.
Contact:

Re: Calculating post_checksum

Post by FoFa » Wed May 11, 2016 12:03 pm

Hello,

Maybe you could create a new topic... Well, use submit_post() function and all will be done automatically.

But... what kind of migration are you talking about ?
Formly ForumsFaciles :wink:

Locked

Return to “[3.0.x] Convertors”

Who is online

Users browsing this forum: Google [Bot] and 9 guests