Search found 702 matches

by kasimi
Thu Nov 16, 2017 10:33 am
Forum: Extension Writers Discussion
Topic: Queries amount, sessions, empty response
Replies: 7
Views: 199

Re: Queries amount, sessions, empty response

Adding this empty JsonResponse solves everything. Is this allowed? Yes, it is indeed required. it still baffels me that when you forget a single "," at the end of a line in a language file the entire page turns white This is not limited to language files. You need to set up your development environ...
by kasimi
Tue Oct 24, 2017 7:51 pm
Forum: phpBB Custom Coding
Topic: Adding a users IP address to registration notification email
Replies: 17
Views: 607

Re: Adding a users IP address to registration notification email

The array you have added your variables to isn't used when assigning data to the admin_activate.txt email template. Since phpBB 3.1 the respective notification class is sending these emails, and it defines its own variables: https://github.com/phpbb/phpbb/blob/release-3.2.1/phpBB/phpbb/notification/...
by kasimi
Tue Oct 24, 2017 1:44 pm
Forum: Extension Writers Discussion
Topic: [3.2.1 ] Migration refuses to populate a custom table
Replies: 11
Views: 465

Re: [3.2.1 ] Migration refuses to populate a custom table

I don't know why it isn't working, but some notes: In your second post, the update_schema() method doesn't return the custom method. If your backup column is in the same table, you can just do this: UPDATE phpbb_users SET pia_user_avatar = user_avatar Just I am using new indexes created in the users...
by kasimi
Fri Oct 20, 2017 1:45 pm
Forum: [3.2.x] Support Forum
Topic: Ajax error clearing notifications/cookies
Replies: 27
Views: 547

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: 27
Views: 547

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: 27
Views: 547

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: 27
Views: 547

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

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

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

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: 46
Views: 2477

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

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

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

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)

Go to advanced search

cron