Textreparser documentation?

Discussion forum for Extension Writers regarding Extension Development.
User avatar
Ger
Recognised Extension Developer
Posts: 1486
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: Textreparser documentation?

Post by Ger » Tue Jun 12, 2018 7:14 am

JoshyPHP wrote:
Tue Jun 12, 2018 3:23 am
I don't know whether the CLI uses a lock and I hope not. I don't know why a lock exists.
This made me wonder, since I have seen the lock. It seems to be used only in the cron task: https://github.com/phpbb/phpbb-core/blo ... er.php#L72

I've corrected this in above post. Also, David63 was so kind to send me some textual improvements, those are also incorporated in above post.

Since almost anyone participating in this topic wrote that he doesn't know all the technical bits, I took a look at Github. It seems that Elsensee has written most of the text reparser code.
Elsensee wrote: Gentile poke
@Elsensee: would you be so kind to tell us if we've got the explanation here right?
My extensions: Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update and Modern Quote
Newest: Quoted Where + anonymize

Like my work? Buy me a coffee to keep it coming. :ugeek:
-Available for custom work-

User avatar
3Di
Registered User
Posts: 12551
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Textreparser documentation?

Post by 3Di » Tue Jun 12, 2018 7:34 am

It's all about CLi it seems, why not to add what the documentation says about the normal behaviour of an update 3.1/3.2?
phpBB 3.2 has a New Text Reparser class which will convert all posts, PMs, signatures, etc. to the new format shortly after updating to 3.2 (this is handled mostly by incremental cron jobs).
https://area51.phpbb.com/docs/dev/3.2.x ... ode-engine
When a board is updated from 3.1 to 3.2, the reparser is called into service in two ways. First, migrations are used to reparse some of the smaller database items (forum descriptions, for example). Second, cron tasks are used to incrementally reparse the larger database items (posts & PMs).
https://area51.phpbb.com/docs/dev/3.2.x ... t-reparser

Which explains a bit about the lock thinghy too.

Missing details about ansi and the meaning of it, also.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
Ger
Recognised Extension Developer
Posts: 1486
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: Textreparser documentation?

Post by Ger » Tue Jun 12, 2018 9:45 am

Thanks, incorporated as well.
My extensions: Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update and Modern Quote
Newest: Quoted Where + anonymize

Like my work? Buy me a coffee to keep it coming. :ugeek:
-Available for custom work-

User avatar
3Di
Registered User
Posts: 12551
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Textreparser documentation?

Post by 3Di » Wed Jun 13, 2018 2:57 am

Looks good to me.
Just remove those backticks from the update SQL query, please.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
Ger
Recognised Extension Developer
Posts: 1486
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: Textreparser documentation?

Post by Ger » Wed Jun 13, 2018 7:01 am

3Di wrote:
Wed Jun 13, 2018 2:57 am
remove those backticks from the update SQL query, please.
Why?
My extensions: Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update and Modern Quote
Newest: Quoted Where + anonymize

Like my work? Buy me a coffee to keep it coming. :ugeek:
-Available for custom work-

User avatar
3Di
Registered User
Posts: 12551
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Textreparser documentation?

Post by 3Di » Fri Jun 15, 2018 6:56 pm

I am not quite sure that query will work on every supported DB since doesn't seems to be ANSI SQL, I can't test that though.
Backticks can stay on MySql, yes.

As for more details on CLI commands, please read: https://area51.phpbb.com/docs/dev/3.2.x/cli/index.html
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

Post Reply

Return to “Extension Writers Discussion”

Who is online

Users browsing this forum: No registered users and 4 guests