[3.1][3.2][3.3][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!
Ideas Centre
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)
User avatar
Toxyy
Registered User
Posts: 938
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek
Contact:

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

Post by Toxyy »

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!

Some of my extensions:
[3.3][BETA] Post Form Templates || [3.3][BETA] Anonymous Posts || [3.2][3.3][BETA] ACP Merge Child Forums || [3.2][BETA] Sticky Ad || [3.2][DEV] User Delete Topics || [3.3][DEV] Moderate While Searching || [3.3][RC] Short Number Twig Extension
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

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

Post by david63 »

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!

I now no longer support any of my extensions but they will start to become available here
User avatar
Toxyy
Registered User
Posts: 938
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek
Contact:

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

Post by Toxyy »

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!

Some of my extensions:
[3.3][BETA] Post Form Templates || [3.3][BETA] Anonymous Posts || [3.2][3.3][BETA] ACP Merge Child Forums || [3.2][BETA] Sticky Ad || [3.2][DEV] User Delete Topics || [3.3][DEV] Moderate While Searching || [3.3][RC] Short Number Twig Extension
User avatar
spaceace
Registered User
Posts: 1999
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

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

Post by spaceace »

outstanding work kasimi. saves me, and i'm sure others, a ton of time converting templates :D
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5859
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

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

Post by MattF »

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:
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

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

Post by david63 »

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!

I now no longer support any of my extensions but they will start to become available here
User avatar
</Solidjeuh>
Registered User
Posts: 1788
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 </Solidjeuh> »

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

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

Post by Scanialady »

German translation for version 1.1.1

Kasimi Twig Converter 1.1.1 German language files
My 2 cents: Whether an extension is in the CDB says nothing about its quality. It is more important to read the support topics for it. Better to avoid authors who do not answer support questions themselves, who do not update their stuff, and who do not fix bugs for years.
User avatar
Tastenplayer
Registered User
Posts: 999
Joined: Thu Jul 03, 2014 9:20 pm
Location: Village in the middle of Switzerland
Name: Jutta Koliofotis
Contact:

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

Post by Tastenplayer »

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 of my styles you can find in my phpBB Style Board & More
Be the best version of yourself rather than a bad copy of someone else!
Excuse me for my English, but I learned the language by speaking to people and not at school.
🎨 All my styles are updated to 3.3.8 and can be downloaded here
User avatar
</Solidjeuh>
Registered User
Posts: 1788
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 </Solidjeuh> »

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/
User avatar
Tastenplayer
Registered User
Posts: 999
Joined: Thu Jul 03, 2014 9:20 pm
Location: Village in the middle of Switzerland
Name: Jutta Koliofotis
Contact:

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

Post by Tastenplayer »

Thanks I read that. In the next days I have to take a closer look.
That this always must be in English! :lol:
More of my styles you can find in my phpBB Style Board & More
Be the best version of yourself rather than a bad copy of someone else!
Excuse me for my English, but I learned the language by speaking to people and not at school.
🎨 All my styles are updated to 3.3.8 and can be downloaded here
User avatar
</Solidjeuh>
Registered User
Posts: 1788
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 </Solidjeuh> »

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
User avatar
Tastenplayer
Registered User
Posts: 999
Joined: Thu Jul 03, 2014 9:20 pm
Location: Village in the middle of Switzerland
Name: Jutta Koliofotis
Contact:

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

Post by Tastenplayer »

you can always translate websites with google :D
Sure, see the Chinese manuals translated to German with google :lol: :lol:
More of my styles you can find in my phpBB Style Board & More
Be the best version of yourself rather than a bad copy of someone else!
Excuse me for my English, but I learned the language by speaking to people and not at school.
🎨 All my styles are updated to 3.3.8 and can be downloaded here
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

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

Post by rxu »

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
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

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

Post by kasimi »

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”