[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!
Anti-Spam Guide
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
mrgoldy
Jr. Extension Validator
Posts: 1051
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

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

Post by mrgoldy » Wed Mar 07, 2018 9:29 pm

Out of curiosity;
Is it possible to run a vanilla prosilver through this converter and receive a working style? Or are there any files that will need adjusting afterwards? Have you (or anyone else for that matter) tried that already?
phpBB Studio / ''Proud member of the Studio"

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

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

Post by kasimi » Wed Mar 07, 2018 9:40 pm

David had this idea and the feature was added to version 1.1.0. phpBB converts all template files to Twig before caching them anyway, so converting prosilver shouldn't be necessary. That feature is mainly geared towards style authors.

User avatar
mrgoldy
Jr. Extension Validator
Posts: 1051
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

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

Post by mrgoldy » Wed Mar 07, 2018 10:09 pm

Currently on my phone and I hate the search on it, my bad :flushed:

And I am writing a style based on prosilver for personal use and due to extension writing I am now more used to the twig syntax than phpbb's.

Anyway, thanks for the quick response.
phpBB Studio / ''Proud member of the Studio"

User avatar
Galixte de EzCom
Registered User
Posts: 1028
Joined: Mon Oct 04, 2004 11:14 pm
Location: France
Name: Raphaël M.
Contact:

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

Post by Galixte de EzCom » Mon Jun 03, 2019 4:43 pm

Hi kasimi,
kasimi wrote:
Wed Mar 07, 2018 9:40 pm
oxpus wrote:
Mon Jun 03, 2019 6:23 pm
Colons are missing by twig style convertor extension
Source: https://github.com/oxpus/Download-32-Ex ... -498327691.

Is it possible to add this feature?

Regards.
Communau EzCom
📖 « Traductions d’extensions & styles pour phpBB 3.1.x & 3.2.x ».
📋 Lists of all extensions identified for phpBB 3.1.x & 3.2.x.
📋 Lists of all styles identified for phpBB 3.1.x & 3.2.x.
Image Tu as un forum et tu veux aussi un site web ? Regarde par ici.

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

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

Post by 3Di » Mon Jun 03, 2019 5:52 pm

Colons aren't missing if not hard-coded.

Example of old syntax: {L_CONTACT}{L_COLON}

Not {L_CONTACT}:
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

Post Reply

Return to “Extensions in Development”