Search found 681 matches

by kasimi
Sat Aug 19, 2017 3:58 pm
Forum: phpBB Custom Coding
Topic: Double e-mail box in registration form
Replies: 23
Views: 525

Re: Double e-mail box in registration form

For modern browsers you can use flexbox to reorder elements. Use the template event ucp_register_credentials_before to add the email confirmation field: <dl class="email_confirm_container"> <dt><label for="email_confirm">{L_EMAIL_ADDRESS_CONFIRM}{L_COLON}</label></dt> <dd><input type="email" tabinde...
by kasimi
Fri Aug 18, 2017 7:22 pm
Forum: [3.2.x] Support Forum
Topic: Creating a new account is currently not possible.
Replies: 6
Views: 195

Re: Creating a new account is currently not possible.

ACP -> General tab -> Client communication -> Email settings -> Enable board-wide emails -> set to yes
by kasimi
Fri Aug 18, 2017 7:43 am
Forum: [3.2.x] Support Forum
Topic: Creating a new account is currently not possible.
Replies: 6
Views: 195

Re: Creating a new account is currently not possible.

Make sure that Account activation (in the User registration settings section) is set appropriately and that board emails are enabled.
by kasimi
Tue Aug 08, 2017 8:59 pm
Forum: Extension Writers Discussion
Topic: Fatal error when trying to pass UrlGeneratorInterface::ABSOLUTE_URL
Replies: 2
Views: 103

Re: Fatal error when trying to pass UrlGeneratorInterface::ABSOLUTE_URL

In your code, PHP is looking for the UrlGeneratorInterface class in your current namespace. You can either put this below your namespace at the top of your file: use Symfony\Component\Routing\Generator\UrlGeneratorInterface; or use the full namespace: $this->helper->route('kinerity_knowledgebase_mai...
by kasimi
Tue Aug 08, 2017 6:59 pm
Forum: Extension Writers Discussion
Topic: How to use { in a template file
Replies: 13
Views: 341

Re: How to use { in a template file

Two alternatives that avoid phpBB's syntax parser. Still not the prettiest but they also work with ranges.
  • pattern="#[a-fA-F0-9]{{ '{ 5,25 }' | replace({' ': ''}) }}"
  • pattern="#[a-fA-F0-9]{{ '{%d,%d}' | format(5, 25) }}"
by kasimi
Tue Aug 08, 2017 2:06 pm
Forum: Extensions in Development
Topic: [BETA] Official Extension: Advertisement Management
Replies: 117
Views: 6565

Re: [BETA] Official Extension: Advertisement Management

cspld wrote:
Tue Aug 08, 2017 12:58 pm
Hello, I have a problem with the extension

Code: Select all

Unknown column 'ad_views_limit' in 'field list' [1054]
Disable and enable the extension to make sure all migrations have run.
by kasimi
Tue Aug 08, 2017 1:12 pm
Forum: Extension Writers Discussion
Topic: How to use { in a template file
Replies: 13
Views: 341

Re: How to use { in a template file

I didn't expect Twig to pick up single curly braces like this. :shock: There must be a prettier solution, but how about this? pattern="#[a-fA-F0-9]{{ '{{6}}' }}"
by kasimi
Tue Aug 08, 2017 12:08 pm
Forum: Extension Writers Discussion
Topic: How to use { in a template file
Replies: 13
Views: 341

Re: How to use { in a template file

Have you tried using double braces? pattern="#[a-fA-F0-9]{{6}}"

Don't forget there's also a short version to specify a color: #ABC
by kasimi
Tue Aug 08, 2017 10:18 am
Forum: Extension Writers Discussion
Topic: getting an ACP page refresh...
Replies: 5
Views: 214

Re: getting an ACP page refresh...

You can run JavaScript code that updates the counter after your AJAX call has completed. https://wiki.phpbb.com/Using_AJAX#Ajax_events
by kasimi
Tue Aug 01, 2017 12:54 pm
Forum: Extension Writers Discussion
Topic: Run one listiner event if ...
Replies: 10
Views: 337

Re: Run one listiner event if ...

Indeed there were two typos in the constructor, I fixed them.

It sounds like your services.yml is wrong. Adding '@user' and '%core.php_ext%' to your listener's arguments should make it work.
by kasimi
Tue Aug 01, 2017 11:02 am
Forum: Extension Writers Discussion
Topic: Run one listiner event if ...
Replies: 10
Views: 337

Re: Run one listiner event if ...

I haven't tested it, let's hope it works. Don't forget to adjust your service arguments. :) <?php /** * * @package phpBB Extension - Google Search * @copyright (c) 2015 HiFiKabin * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 * */ namespace hifikabin\googlesearch...
by kasimi
Mon Jul 31, 2017 6:11 pm
Forum: Extension Writers Discussion
Topic: Run one listiner event if ...
Replies: 10
Views: 337

Re: Run one listiner event if ...

page_header() , is called after search.php sets S_IN_SEARCH , so your event handler overwrites the value set in the core. Try this code instead: $in_search = $this->user->page['page_name'] === 'search.' . $this->php_ext; ... 'S_IN_SEARCH' => $in_search || $this->config['googlesearch_position3'],
by kasimi
Mon Jul 31, 2017 9:26 am
Forum: Extension Writers Discussion
Topic: Run one listiner event if ...
Replies: 10
Views: 337

Re: Run one listiner event if ...

I'm not sure I understand entirely, but if 'S_IN_SEARCH' => true, hides it for all options, have you tried 'S_IN_SEARCH' => $this->config['googlesearch_position2'], to only hide it for option 2?
by kasimi
Thu Jul 27, 2017 12:20 pm
Forum: Extensions in Development
Topic: [3.2][BETA] Telegram Notifications
Replies: 17
Views: 776

Re: [3.2][ALPHA] Telegram Notifications

The add_lang() method is from 3.1 and doesn't work with extensions: https://github.com/lassik/phpbb-ext-telegramnotifications/blob/b36e7dc8ce87b1ee66ed5c50bb969494b56fb152/acp/main_module.php#L20 Try using 3.2's language service instead: https://area51.phpbb.com/docs/dev/32x/extensions/new_in_rhea.h...
by kasimi
Sun Jul 16, 2017 6:19 pm
Forum: phpBB Custom Coding
Topic: Request class
Replies: 2
Views: 224

Re: Request class

The constructor of the request class copies the super globals and then disables access to them. In common.php, which you include, the request class is already instantiated. You get the error because you create another instance. Just remove the line. :)

Go to advanced search