[3.1][3.2][RC] Twig Converter

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Toxyy
Registered User
Posts: 320
Joined: Mon Oct 24, 2016 3:22 pm

Re: [3.1][3.2][RC] Twig Converter

Post by Toxyy » Mon Jul 03, 2017 11:45 pm

Well yeah but they aren't necessary for 3.2. I wouldn't mind removing them myself where needed but if this let you chose to add it or not for 3.2 that'd be nice :)
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

User avatar
david63
Jr. Extension Validator
Posts: 12824
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by david63 » Tue Jul 04, 2017 6:50 am

Toxyy wrote:
Mon Jul 03, 2017 11:45 pm
Well yeah but they aren't necessary for 3.2.
Why?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email or as they will be ignored

Toxyy
Registered User
Posts: 320
Joined: Mon Oct 24, 2016 3:22 pm

Re: [3.1][3.2][RC] Twig Converter

Post by Toxyy » Tue Jul 04, 2017 1:30 pm

Because that's what it says in the documentation....?

Kasimi's topic, like midway through op:

viewtopic.php?f=461&t=2424606
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

User avatar
spaceace
Registered User
Posts: 1743
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by spaceace » Tue Jul 04, 2017 11:37 pm

outstanding work kasimi. saves me, and i'm sure others, a ton of time converting templates :D

User avatar
VSE
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 4446
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by VSE » Wed Jul 05, 2017 1:18 am

This extension is awesome, though I see it as fitting more into our idea of extension development tools. I only wish this extension was around before I already converted all my extensions to Twig :cry:
Official phpBB Extensions My Extensions & MODs
Please do not PM me for support.
Dictated but not read.

User avatar
david63
Jr. Extension Validator
Posts: 12824
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by david63 » Wed Jul 05, 2017 6:44 am

VSE wrote:
Wed Jul 05, 2017 1:18 am
I only wish this extension was around before I already converted all my extensions to Twig
Me too - although converting them manually did provide an opportunity to "learn" about Twig.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email or as they will be ignored

User avatar
Froddelaar
Registered User
Posts: 483
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by Froddelaar » Wed Jul 05, 2017 2:58 pm

I'm A Stupid F*ck.. And Proud Of it!
Download +34.000 arcade extension games @ ~ https://www.froddelpower.be ~

Dutch Extension Translations @ https://github.com/Solidjeuh
Donations are always welcome @ https://www.froddelpower.be/donation

User avatar
Scanialady
Registered User
Posts: 141
Joined: Thu Jan 17, 2013 7:09 pm
Location: Germany
Name: Annette
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by Scanialady » Mon Jul 24, 2017 11:26 am

German translation for version 1.1.1

Kasimi Twig Converter 1.1.1 German language files
Webseite, Blog, Wiki
JV-Arcade / phpBB-Arcade / dmzx-Extensions Übersetzungsteam, andere deutsche Übersetzungen - german language files

User avatar
Tastenplayer
Registered User
Posts: 37
Joined: Thu Jul 03, 2014 9:20 pm
Location: Switzerland
Name: Jutta Koliofotis
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by Tastenplayer » Tue Aug 08, 2017 10:55 am

Is now somehow too high for me :lol:

So I install this extension in the testboard.
Then I convert my whole style or only the template files?

What is the effect? Makes this the style faster?
Startpage: https://www.my-tastenworld.ch
My Portal: https://www.portal.my-tastenworld.ch/Forum: https://www.forum.my-tastenworld.ch/
Be the best version of yourself rather than a bad copy of someone else!
Excuse me for my English, but I learned it by talking with people, not in school

User avatar
Froddelaar
Registered User
Posts: 483
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by Froddelaar » Thu Aug 10, 2017 8:12 pm

Tastenplayer wrote:
Tue Aug 08, 2017 10:55 am
Is now somehow too high for me :lol:

So I install this extension in the testboard.
Then I convert my whole style or only the template files?

What is the effect? Makes this the style faster?
More info: https://twig.symfony.com/
I'm A Stupid F*ck.. And Proud Of it!
Download +34.000 arcade extension games @ ~ https://www.froddelpower.be ~

Dutch Extension Translations @ https://github.com/Solidjeuh
Donations are always welcome @ https://www.froddelpower.be/donation

User avatar
Tastenplayer
Registered User
Posts: 37
Joined: Thu Jul 03, 2014 9:20 pm
Location: Switzerland
Name: Jutta Koliofotis
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by Tastenplayer » Fri Aug 11, 2017 3:32 pm

Thanks I read that. In the next days I have to take a closer look.
That this always must be in English! :lol:
Startpage: https://www.my-tastenworld.ch
My Portal: https://www.portal.my-tastenworld.ch/Forum: https://www.forum.my-tastenworld.ch/
Be the best version of yourself rather than a bad copy of someone else!
Excuse me for my English, but I learned it by talking with people, not in school

User avatar
Froddelaar
Registered User
Posts: 483
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by Froddelaar » Fri Aug 11, 2017 11:44 pm

Tastenplayer wrote:
Fri Aug 11, 2017 3:32 pm
Thanks I read that. In the next days I have to take a closer look.
That this always must be in English! :lol:
you can always translate websites with google :D

https://translate.google.com/translate? ... t=&act=url
I'm A Stupid F*ck.. And Proud Of it!
Download +34.000 arcade extension games @ ~ https://www.froddelpower.be ~

Dutch Extension Translations @ https://github.com/Solidjeuh
Donations are always welcome @ https://www.froddelpower.be/donation

User avatar
Tastenplayer
Registered User
Posts: 37
Joined: Thu Jul 03, 2014 9:20 pm
Location: Switzerland
Name: Jutta Koliofotis
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by Tastenplayer » Sat Aug 12, 2017 9:18 pm

you can always translate websites with google :D
Sure, see the Chinese manuals translated to German with google :lol: :lol:
Startpage: https://www.my-tastenworld.ch
My Portal: https://www.portal.my-tastenworld.ch/Forum: https://www.forum.my-tastenworld.ch/
Be the best version of yourself rather than a bad copy of someone else!
Excuse me for my English, but I learned it by talking with people, not in school

rxu
Extensions Development Team
Posts: 2752
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by rxu » Mon Aug 14, 2017 6:22 am

JoshyPHP wrote:
Mon Jul 03, 2017 4:58 pm
Yes, everything in phpBB expects bbcode.html to use the <!-- BEGIN ... --> syntax.
Well, in 3.2 adding twig compatible regex to the factory.php solves the issue for me, like that
FIND

Code: Select all

preg_match_all('#<!-- BEGIN (.*?) -->(.*?)<!-- END .*? -->#s', $template, $matches, PREG_SET_ORDER);
AFTER, ADD

Code: Select all

if (empty($matches))
{
	preg_match_all('#{% for (.*?) in .*? %}(.*?){% endfor %}#s', $template, $matches, PREG_SET_ORDER);
}

phpBB 3.1 requires similar changes to bbcode.php.

https://github.com/phpbb/phpbb/pull/4903

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 2053
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [3.1][3.2][RC] Twig Converter

Post by kasimi » Sun Oct 08, 2017 7:10 pm

Version 1.2.0 is now available in the first post.
  • Works with 3.2.x and the latest master branch (3.3.x), dropped support for 3.1.x
  • Entirely rely on core code's lexer class, thereby increasing chances of forward compatibility.

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: BigRed01, david63, nou nou, remoss and 24 guests

cron