Search found 791 matches

by kasimi
Sat Jul 21, 2018 11:08 am
Forum: Extension Writers Discussion
Topic: Event for the notification lists
Replies: 8
Views: 215

Re: Event for the notification lists

HanFox wrote:
Sat Jul 21, 2018 10:57 am
is it possible to manipulate the data displayed in notifications via an event
No, there is no event: https://github.com/phpbb/phpbb/blob/rel ... 4324-L4339
by kasimi
Sat Jul 21, 2018 8:04 am
Forum: Extension Writers Discussion
Topic: Getting topic content without view count?
Replies: 3
Views: 110

Re: Getting topic content without view count?

Add an extra argument to your request that serves as a flag that updating the view counter should be skipped. Then, in the core.viewtopic_modify_post_data event, do this: if ($this->request->is_set('your flag', false) && isset($this->user->data['session_page'])) { $this->user->data['session_page'] ....
by kasimi
Thu Jul 19, 2018 6:50 pm
Forum: Extension Requests
Topic: simplesaml auth extension for 3.1.x ?
Replies: 7
Views: 729

Re: simplesaml auth extension for 3.1.x ?

Noud, right now your contribution is visible only to you and the extension validators and testers. It can be accessed by anyone once it has at least one approved revision. :)
by kasimi
Thu Jul 12, 2018 9:15 pm
Forum: Extension Writers Discussion
Topic: Checking auth of poster
Replies: 23
Views: 497

Re: Checking auth of poster

As Paul suggested, you need to loop over the postrows again: <style> {% for postrow in loops.postrow %} {# CSS for each post here #} {% endfor %} </style> Though not for posts, I'm doing something similar here: https://github.com/kasimi/phpbb-ext-mchatonlinebanners/blob/master/kasimi/mchatonlinebann...
by kasimi
Wed Jul 11, 2018 12:52 pm
Forum: Extension Writers Discussion
Topic: Checking auth of poster
Replies: 23
Views: 497

Re: Checking auth of poster

You need to create a new instance of auth: https://github.com/phpbb/phpbb/blob/rel ... #L250-L252
by kasimi
Tue Jul 10, 2018 9:17 pm
Forum: Extension Writers Discussion
Topic: Drop/change the primary key of a table
Replies: 14
Views: 266

Re: Drop/change the primary key of a table

Unless it's a table that can have many many rows, I'd go with 3Di's suggestion in order to reuse as much core code as possible. In a custom method in a new migration that depends on the migration that added the table with the wrong primary key: Fetch all data from $table_name Fix the data to not vio...
by kasimi
Thu Jul 05, 2018 6:26 pm
Forum: phpBB Custom Coding
Topic: 3.2: Latest topics on external homepage
Replies: 4
Views: 335

Re: 3.2: Latest topics on external homepage

You need to define $forum_id_where to formulate a correct SQL query, for example:

Code: Select all

$forum_id_where = 'WHERE topic_id = 123';
by kasimi
Thu Jul 05, 2018 6:43 am
Forum: Extension Writers Discussion
Topic: Assigning value to user table field during registration
Replies: 5
Views: 193

Re: Assigning value to user table field during registration

Use a hidden field. Subscribe to the core.ucp_register_data_after event to grab the data from the request and add it to the event's data (users table) or cp_data (profile fields table) array, depending on where the data should be stored.
by kasimi
Sun Jul 01, 2018 3:04 pm
Forum: Extension Requests
Topic: Donated and automatic usergroup
Replies: 5
Views: 194

Re: Donated and automatic usergroup

The latest development version of the PayPal Donation Extension can do what you want: https://skouat.github.io/ext_paypal_donation/
by kasimi
Sat Jun 30, 2018 1:25 pm
Forum: phpBB Custom Coding
Topic: 3.2: Latest topics on external homepage
Replies: 4
Views: 335

Re: 3.2: Latest topics on external homepage

What's the complete value of your SQL query (the $topics variable in example 1)?
by kasimi
Sun Jun 17, 2018 8:41 am
Forum: Extensions in Development
Topic: [3.2][BETA] User Topic Count
Replies: 82
Views: 5560

Re: [3.2][BETA] User Topic Count

Because the "Topic Count" for all users is calculated and stored in the column when enabling the extension. Schema changes should be done in migrations only. Run your resync code via a custom method from within your migration on install: https://area51.phpbb.com/docs/dev/3.2.x/migrations/data_chang...
by kasimi
Mon Jun 11, 2018 10:42 am
Forum: Extension Writers Discussion
Topic: the path of extension
Replies: 4
Views: 241

Re: the path of extension

Inject the core.root_path parameter, assign 'AAFS_IMAGES_PATH' => $this->root_path . 'ext/meis2m/aafs/styles/all/theme/images' to the template and use src="{{ AAFS_IMAGES_PATH }}/list.gif" in your template file.
by kasimi
Sat Jun 09, 2018 8:03 am
Forum: Extension Writers Discussion
Topic: Calling Javascript from Template
Replies: 4
Views: 328

Re: Calling Javascript from Template

In your second code block, declare myStream: ... var myStream; var _nsid = '{NSID}'; var _key = '{KEY}'; ... Now put back the no conflict code and change var myStream = (function() to myStream = (function() to reference the global variable instead of using a local one. By the way, make sure you esca...
by kasimi
Wed May 09, 2018 8:43 am
Forum: Extension Writers Discussion
Topic: PHPBB_ENVIRONMENT, production vs development
Replies: 11
Views: 498

Re: PHPBB_ENVIRONMENT, production vs development

Blitze wrote:
Tue May 08, 2018 4:17 pm
I can open a bug and provide a PR to fix it.
Please do.
Blitze wrote:
Tue May 08, 2018 4:17 pm
As for Travis, is it possible to make it run in development so bugs like this are not simply ignored?
I'm sure there's a more elegant way, but you could try calling error_reporting(-1); in setUpBeforeClass().

Go to advanced search