Search found 1693 matches

by VSE
Sun May 28, 2017 12:13 am
Forum: Extension Writers Discussion
Topic: [Tutorial] Convert to Twig Syntax
Replies: 17
Views: 397

Re: [Tutorial] Convert to Twig Syntax

Kuzia wrote:
Fri May 26, 2017 11:49 pm
What about form tokens? {S_FORM_TOKEN} is still in use?
See the very first example in the first post.
by VSE
Sun May 28, 2017 12:11 am
Forum: Extension Writers Discussion
Topic: phpBB QuickInstall Redesign
Replies: 11
Views: 361

Re: phpBB QuickInstall Redesign

Another RC release made with an "experiemntal" bit of AJAX to make for a nicer UX
by VSE
Fri May 26, 2017 6:31 am
Forum: Extension Writers Discussion
Topic: [Tutorial] Convert to Twig Syntax
Replies: 17
Views: 397

Re: [Tutorial] Convert to Twig Syntax

david63 wrote:
Fri May 26, 2017 6:29 am
Just as an aside to this discussion are there any plans as to when phpBB template syntax will be dropped?
Not in the forseeable future and not until prosilver has been abandoned for a completely new style which will definitely be written in twig.
by VSE
Fri May 26, 2017 6:18 am
Forum: Extension Writers Discussion
Topic: [Tutorial] Convert to Twig Syntax
Replies: 17
Views: 397

Re: [Tutorial] Convert to Twig Syntax

My issue is that now, the template MUST know upfront whether something is a language key, or may be filled in in PHP code, while before, that was totally transparent. This will break some extensions, as some might rely on using CORE language strings to modify content and convey additional messages....
by VSE
Thu May 25, 2017 4:46 pm
Forum: Extension Writers Discussion
Topic: [Tutorial] Convert to Twig Syntax
Replies: 17
Views: 397

Re: [Tutorial] Convert to Twig Syntax

Thanks again, VSE! And what happens with the language vars that are filled in in the code, like enabled.actions.L_ACTION_EXPLAIN in the above code? Would this be {{ action.L_ACTION_EXPLAIN }} ? If so, that might be an issue, as when you code the template, you MUST know whether the language key is a...
by VSE
Wed May 24, 2017 11:29 pm
Forum: Extension Writers Discussion
Topic: [Tutorial] Convert to Twig Syntax
Replies: 17
Views: 397

Re: [Tutorial] Convert to Twig Syntax

Very useful for a Twig newbie like myself! Thanks a lot! I miss a couple of things though: Testing whether a loop is empty, like in https://github.com/phpbb/phpbb/blob/3.2.x/phpBB/adm/style/acp_ext_list.html#L45 <!-- IF .enabled --> Nested loops (blocks of vars within blocks of vars), like in https...
by VSE
Wed May 24, 2017 11:00 pm
Forum: Extension Writers Discussion
Topic: [Tutorial] Convert to Twig Syntax
Replies: 17
Views: 397

Re: [Tutorial] Convert to Twig Syntax

@Matt - one part that you have missed is the passing and escaping of variables in templates to js which, I believe, when using Twig is different than when using phpBB syntax. Well technically this post is about converting from phpBB syntax to twig. phpBB syntax does not have any sort of JS/HTML esc...
by VSE
Wed May 24, 2017 2:27 am
Forum: Extension Writers Discussion
Topic: [Tutorial] Convert to Twig Syntax
Replies: 17
Views: 397

[Tutorial] Convert to Twig Syntax

Why should you convert to (or start using) Twig syntax in your extensions? 1. phpBB's template syntax is converted behind the scenes to use twig anyways, so if your extension is already written using twig syntax, it does not need to be converted, which means less processing/memory overhead from your...
by VSE
Tue May 23, 2017 7:29 pm
Forum: Extension Writers Discussion
Topic: Transfer args to language class via helper
Replies: 12
Views: 331

Re: Transfer args to language class via helper

Agree with Paul. Stick with the user->lang for 3.1 backwards compatibility.
by VSE
Sun May 21, 2017 4:28 am
Forum: Extension Writers Discussion
Topic: phpBB QuickInstall Redesign
Replies: 11
Views: 361

Re: phpBB QuickInstall Redesign

A new Release Candidate version is posted (download link in first post). A lot of polishing went into this. Not just some new paint, but a lot of updates to the wording/phrasing of things, and lots of little code fixes and changes, as well as some nifty new features. All info is contained in the Cha...
by VSE
Wed May 17, 2017 7:50 am
Forum: Extension Writers Discussion
Topic: phpBB QuickInstall Redesign
Replies: 11
Views: 361

Re: phpBB QuickInstall Redesign

neufke wrote:
Wed May 17, 2017 7:47 am
VSE wrote:
Wed May 17, 2017 12:51 am
Re-themed it based on Hanakin's Prosilver style guide.

Screen Shot 2017-05-16 at 5.46.00 PM.png
I like the darker blue navbar but that's just preference i guess... The OP/zip is not updated yet ?
This zip is always up to date with the repository.
by VSE
Wed May 17, 2017 12:51 am
Forum: Extension Writers Discussion
Topic: phpBB QuickInstall Redesign
Replies: 11
Views: 361

Re: phpBB QuickInstall Redesign

Re-themed it based on Hanakin's Prosilver style guide.
by VSE
Wed May 10, 2017 6:17 am
Forum: Extension Writers Discussion
Topic: phpBB QuickInstall Redesign
Replies: 11
Views: 361

phpBB QuickInstall Redesign

Hi folks. This topic is for those of you who use phpBB QuickInstall. I have been working on a redesigned GUI for the tool. You can download it here, to see it in action, and you can discuss here how it works/looks. https://github.com/phpbb/quickinstall/archive/1.3.0-RC2.zip It's still being develope...
by VSE
Mon May 08, 2017 8:04 am
Forum: Extension Writers Discussion
Topic: require_once
Replies: 7
Views: 211

Re: require_once

It's because require_once and include_once are slower than require and include.

So the preferred format is:

Code: Select all

if (!class_exists('some_class'))
{
    include 'some_class.php';
}
by VSE
Tue May 02, 2017 4:03 pm
Forum: Extension Writers Discussion
Topic: PHPBB implementing some features into my own site need help
Replies: 4
Views: 210

Re: PHPBB implementing some features into my own site need help

Please use the search. Everything you are asking about has been discussed quite a bit in these forums already.

If you know how to code, you may find some guidance from those discussions. Otherwise, you need to make extension requests in the proper forum for extension requests.

Go to advanced search