[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)
hubaishan
Translator
Posts: 95
Joined: Sun Apr 10, 2011 2:47 pm
Name: Saeed Hubaishan
Contact:

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

Post by hubaishan » Wed Nov 08, 2017 2:14 pm

Why twig?!
What can twig do, phpBB template can't?

User avatar
david63
Jr. Extension Validator
Posts: 13405
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 Nov 08, 2017 4:06 pm

hubaishan wrote:
Wed Nov 08, 2017 2:14 pm
Why twig?!
What can twig do, phpBB template can't?
Basically so that the phpBB team do not have to maintain the templating framework and can concentrate on working on the core.
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 as they will be ignored

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20560
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

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

Post by RMcGirr83 » Fri Dec 15, 2017 1:48 pm

hubaishan wrote:
Wed Nov 08, 2017 2:14 pm
Why twig?!
What can twig do, phpBB template can't?
Have a read as to why.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

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

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

Post by kasimi » Fri Dec 15, 2017 4:17 pm

MarkDHamill wrote:
Fri Dec 15, 2017 12:47 pm
The messenger class uses template tags that go in the /language/en/email folder, so extensions that do emailing like mine must create them in our extensions. In 3.0 it was not as sophisticated as the full templating system. You could not use loops, for example. Perhaps this is no longer the case.

It wasn't a big deal to convert my language files so I did it manually, but you might want to add it to the files to convert.
The latest commit on master adds this feature. Could you test it when you have a moment?

User avatar
Stoker 4.0
Registered User
Posts: 1466
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

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

Post by Stoker 4.0 » Sat Jan 20, 2018 3:51 pm

Version 1.2.0 trying to convert prosilver and get this error.

Code: Select all

Fatal error: Uncaught Error: Class 'ZipArchive' not found in /var/www/vhosts/phpbb3bbcodes.com/httpdocs/ext/kasimi/twigconverter/controller/main.php:276 Stack trace: #0 /var/www/vhosts/phpbb3bbcodes.com/httpdocs/ext/kasimi/twigconverter/controller/main.php(240): kasimi\twigconverter\controller\main->make_zip('./../store/', 'prosilver_twig_...', Array) #1 /var/www/vhosts/phpbb3bbcodes.com/httpdocs/ext/kasimi/twigconverter/controller/main.php(120): kasimi\twigconverter\controller\main->run('prosilver', Array) #2 /var/www/vhosts/phpbb3bbcodes.com/httpdocs/ext/kasimi/twigconverter/acp/main_module.php(28): kasimi\twigconverter\controller\main->convert('./../adm/index....') #3 /var/www/vhosts/phpbb3bbcodes.com/httpdocs/includes/functions_module.php(676): kasimi\twigconverter\acp\main_module->main('\\kasimi\\twigcon...', 'convert') #4 /var/www/vhosts/phpbb3bbcodes.com/httpdocs/adm/index.php(82): p_master->load_active() #5 {main} thrown in /var/www/vhosts/phpbb3bbcodes.com/httpdocs/ext/kasimi/twigconverter/controller/main.php on line 276

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

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

Post by kasimi » Sat Jan 20, 2018 3:57 pm

Your PHP installation is missing the ZIP extension: https://stackoverflow.com/questions/387 ... t-found-in

User avatar
Stoker 4.0
Registered User
Posts: 1466
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

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

Post by Stoker 4.0 » Sat Jan 20, 2018 4:12 pm

kasimi wrote:
Sat Jan 20, 2018 3:57 pm
Your PHP installation is missing the ZIP extension: https://stackoverflow.com/questions/387 ... t-found-in
Thanks, found it and installed it. Now it works ;)

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

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

Post by kasimi » Sat Jan 20, 2018 4:20 pm

I added an ext.php that checks for this: https://github.com/kasimi/phpbb-ext-twi ... 79d338fd10

User avatar
Stoker 4.0
Registered User
Posts: 1466
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

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

Post by Stoker 4.0 » Sat Jan 20, 2018 4:25 pm

Dont know if anybody else can use this guide to install zip in ubuntu. Worked for me and its simple:
https://www.digitalocean.com/community/ ... -in-ubuntu

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: Ger, Naguissa, Topic'it and 36 guests