Search found 794 matches

by kasimi
Mon Aug 20, 2018 12:35 pm
Forum: Extension Requests
Topic: Keeping forum topics in order
Replies: 6
Views: 159

Re: Keeping forum topics in order

You can set the default order with this extension: https://www.phpbb.com/customise/db/exte ... rt_topics/
by kasimi
Fri Aug 17, 2018 7:40 am
Forum: Extensions in Development
Topic: [BETA] [3.2] Prime Notify
Replies: 80
Views: 6093

Re: [BETA] [3.2] Prime Notify

You need to return '@primehalo_primenotify/primenotify_topic_notify';
by kasimi
Sat Jul 28, 2018 9:16 am
Forum: Extensions in Development
Topic: [3.2][RC] Glossary 2.1.2
Replies: 342
Views: 21722

Re: [3.1][3.2][RC] Glossary 2.1.0

Regarding the migration error, this line:

Code: Select all

array('config.add' => array('lmdi_glossary_version', '1324')),
should be

Code: Select all

array('config.add', array('lmdi_glossary_version', '1324')),
by kasimi
Sat Jul 21, 2018 11:08 am
Forum: Extension Writers Discussion
Topic: Event for the notification lists
Replies: 8
Views: 377

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: 5
Views: 342

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

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

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

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

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

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

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

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

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

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

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.

Go to advanced search