Search found 694 matches

by kasimi
Mon Oct 16, 2017 9:15 am
Forum: Extension Writers Discussion
Topic: Function to dynamically decrement the cache time
Replies: 10
Views: 272

Re: Function to dynamically decrement the cache time

It depends on the timezone you've set or the server defaults to, and it takes DST into account. Use the first day of the next month and add UTC to get what you want: $end_last_month = strtotime('first day of this month midnight UTC') - 1; $end_this_month = strtotime('first day of next month midnight...
by kasimi
Sun Oct 15, 2017 6:43 pm
Forum: Extension Writers Discussion
Topic: Function to dynamically decrement the cache time
Replies: 10
Views: 272

Re: Function to dynamically decrement the cache time

A bit shorter and more expressive:

Code: Select all

$ttl_diff = strtotime('last day of this month midnight') - time();
by kasimi
Sun Oct 08, 2017 7:10 pm
Forum: Extensions in Development
Topic: [3.1][3.2][RC] Twig Converter
Replies: 44
Views: 2210

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

Version 1.2.0 is now available in the first post.
  • Works with 3.2.x and the latest master branch (3.3.x), dropped support for 3.1.x
  • Entirely rely on core code's lexer class, thereby increasing chances of forward compatibility.
by kasimi
Sat Sep 23, 2017 9:04 am
Forum: Extension Writers Discussion
Topic: Caching original array after a while loop
Replies: 2
Views: 178

Re: Caching original array after a while loop

The regular sql_query() method has the optional $cache_ttl argument too: https://github.com/phpbb/phpbb/blob/rel ... #L304-L312
by kasimi
Fri Sep 22, 2017 7:44 pm
Forum: Extensions in Development
Topic: [3.1][3.2][RC] qrLogin :: login to forum with free phone app && qrcode
Replies: 40
Views: 1612

Re: [3.1][3.2][RC] qrLogin :: login to forum with free phone app && qrcode

Due to security concerns, this topic has been locked and the download link has been removed. If the extension author wishes to continue development, please PM anyone on the Extension Customisations Team to request this topic be unlocked. Please provide a download link for the extension with all secu...
by kasimi
Sat Sep 16, 2017 8:00 pm
Forum: phpBB Custom Coding
Topic: [3.2] complete links in postings
Replies: 9
Views: 443

Re: [3.2] complete links in postings

  • Open [root]/phpbb/textformatter/s9e/link_helper.php
  • Find

    Code: Select all

    if (utf8_strlen($text) > 55)
  • Replace with

    Code: Select all

    if (false)
by kasimi
Sat Sep 09, 2017 9:46 am
Forum: [3.2.x] Extensions Database Releases
Topic: Google Analytics
Replies: 2
Views: 547

Re: Google Analytics

Extension Updated to version 1.0.3
See first post for Download Link
by kasimi
Sat Sep 09, 2017 9:46 am
Forum: [3.1.x] Extensions Database Releases
Topic: Google Analytics
Replies: 4
Views: 4410

Re: Google Analytics

Extension Updated to version 1.0.3
See first post for Download Link
by kasimi
Sat Sep 09, 2017 9:45 am
Forum: [3.2.x] Extensions Database Releases
Topic: phpBB Media Embed PlugIn
Replies: 2
Views: 871

Re: phpBB Media Embed PlugIn

Extension Updated to version 1.0.1
See first post for Download Link
by kasimi
Thu Aug 31, 2017 8:57 am
Forum: Extension Writers Discussion
Topic: New to PHPBB, Trouble Finding The Right Event
Replies: 3
Views: 233

Re: New to PHPBB, Trouble Finding The Right Event

Have a look at core.user_add_after . It is triggered at the end of the user_add() function which is called right after core.ucp_register_user_row_after is triggered. All user data will have been added to the database at this point. If you only want to handle manual registrations, as opposed to autom...
by kasimi
Wed Aug 30, 2017 12:30 pm
Forum: phpBB Custom Coding
Topic: Would like to change whois in ACP
Replies: 3
Views: 347

Re: Would like to change whois in ACP

You found the correct function in the code but to fetch the information it uses the whois protocol for which whatismyipaddress.com doesn't offer an API, it seems.
by kasimi
Fri Aug 25, 2017 8:07 pm
Forum: Extension Writers Discussion
Topic: Attribute is not serializable as XML 1.0
Replies: 4
Views: 254

Re: Attribute is not serializable as XML 1.0

I don't think the semicolon is supposed to be there.

Code: Select all

class="inputbox"; 
by kasimi
Sat Aug 19, 2017 3:58 pm
Forum: phpBB Custom Coding
Topic: Double e-mail box in registration form
Replies: 32
Views: 1344

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

Re: Creating a new account is currently not possible.

ACP -> General tab -> Client communication -> Email settings -> Enable board-wide emails -> set to yes

Go to advanced search