Search found 1688 matches

by VSE
Wed May 24, 2017 11:29 pm
Forum: Extension Writers Discussion
Topic: [Tutorial] Convert to Twig Syntax
Replies: 7
Views: 144

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: 7
Views: 144

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: 7
Views: 144

[Tutorial] Convert to Twig Syntax

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

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: 9
Views: 300

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: 9
Views: 300

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: 9
Views: 300

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: 9
Views: 300

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-RC1.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: 209

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: 208

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.
by VSE
Sun Apr 30, 2017 7:38 am
Forum: Extensions in Development
Topic: [CDB] Simple mentions
Replies: 127
Views: 8100

Re: [3.2][RC] Simple mentions

Nice paul! Just a few comments: 1. Can the notification message also mention the post? e.g., "You have been mentioned by username in "Title of the post" I think it'd be super helpful to know where you've been mentioned :) 2. The ext seems to be titled "Simple mentions" but in composer.json the displ...
by VSE
Sun Apr 30, 2017 7:23 am
Forum: Extension Writers Discussion
Topic: [self-solved] Config values persist after delete data
Replies: 2
Views: 119

Re: [self-solved] Config values persist after delete data

config values are automatically removed when you delete an extension's data. always have been. post your migration as you're probably doing something wrong in there.
by VSE
Fri Apr 28, 2017 6:02 pm
Forum: Extension Writers Discussion
Topic: How to display user messages in ext.php
Replies: 77
Views: 2190

Re: How to display user messages in ext.php

For multiple conditions: public function is_enableable() { $is_enableable = true; $user = $this->container->get('user'); $user->add_lang_ext('vendor/ext', 'lang_file'); $lang = $user->lang; if (!some_condition_1) { $lang['EXTENSION_NOT_ENABLEABLE'] .= $user->lang('ERROR_MSG_1'); $is_enableable = fal...
by VSE
Fri Apr 28, 2017 5:58 pm
Forum: Extension Writers Discussion
Topic: How to display user messages in ext.php
Replies: 77
Views: 2190

Re: How to display user messages in ext.php

I have been doing some additional investigation, and it seems there is NO (supported) way to modify the $lang array but loading a language file IN 3.2; array access apparently works for getting (not for setting) but I have not tested it, and anyhow, it is deprecated, so should not be used in genera...
by VSE
Thu Apr 27, 2017 4:27 pm
Forum: Extension Writers Discussion
Topic: [Resolved] include in my Collapsible Forum Categories extension
Replies: 2
Views: 152

Re: include in my Collapsible Forum Categories extension

It has to be a forabg class...not forumbg.

Go to advanced search

cron