Search found 699 matches

by kasimi
Fri Oct 20, 2017 1:45 pm
Forum: [3.2.x] Support Forum
Topic: Ajax error clearing notifications/cookies
Replies: 16
Views: 324

Re: Ajax error clearing notifications/cookies

Yes, that's most likely a BOM. Did you make manual changes to any files?
by kasimi
Fri Oct 20, 2017 1:30 pm
Forum: [3.2.x] Support Forum
Topic: Ajax error clearing notifications/cookies
Replies: 16
Views: 324

Re: Ajax error clearing notifications/cookies

That's valid JSON. The only thing I can think of now is that there's an invisible BOM that the JSON parser doesn't like. Go back to the Response tab and make sure there's no space character before the very first {. If there is, you have probably edited a file with a text editor that added a BOM.
by kasimi
Fri Oct 20, 2017 1:00 pm
Forum: [3.2.x] Support Forum
Topic: Ajax error clearing notifications/cookies
Replies: 16
Views: 324

Re: Ajax error clearing notifications/cookies

Hit Ctrl+Shift+E (on Mac it's Cmd+Option+E) to open the Network tool, trigger the error and click on the failed request. In the panel on the right, there's a Response tab with the data returned from the server. I suspect you will find the actual error message that the server produces there.
by kasimi
Fri Oct 20, 2017 11:50 am
Forum: [3.2.x] Support Forum
Topic: Ajax error clearing notifications/cookies
Replies: 16
Views: 324

Re: Ajax error clearing notifications/cookies

When debug mode is enabled, more details about the error are printed to the browser console. How to enable debug mode: open config.php , find // @define('DEBUG', true); and remove the // . If you can't find it, add @define('DEBUG', true); at the bottom of the file. Don't forget to undo these changes...
by kasimi
Fri Oct 20, 2017 8:07 am
Forum: Extension Writers Discussion
Topic: Questions: Which event starts first and sessions
Replies: 5
Views: 163

Re: Questions: Which event starts first and sessions

Using terminology from the code, each request starts a session but doesn't necessarily create one. Creating only happens on the first request, when there's no valid $session_id in the cookie or URL. I think the best option for you is core.user_setup ( _after ) which is called on every request for bo...
by kasimi
Mon Oct 16, 2017 9:15 am
Forum: Extension Writers Discussion
Topic: Function to dynamically decrement the cache time
Replies: 10
Views: 297

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

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

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

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

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

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

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

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

Re: phpBB Media Embed PlugIn

Extension Updated to version 1.0.1
See first post for Download Link

Go to advanced search

cron