Search found 1008 matches

by kasimi
Thu May 21, 2020 9:39 pm
Forum: Extensions in Development
Topic: [3.3][RC] Filter by country - version 1.0.19
Replies: 404
Views: 45727

Re: [3.3][RC] Filter by country - version 1.0.11

MarkDHamill wrote:
Thu May 21, 2020 8:10 pm
  • Before I set and retrieve these explicitly as elements of an array.
This is how you're supposed to work with the config service. It implements the ArrayAccess interface for a reason. Don't call offsetGet(), offsetSet() etc. explicitly.
by kasimi
Mon May 11, 2020 9:10 am
Forum: phpBB Custom Coding
Topic: Why is {topicrow.VIEWS} not working in viewtopic_body.html ?
Replies: 7
Views: 392

Re: Why is {topicrow.VIEWS} not working in viewtopic_body.html ?

There is no template variable for topic views available within viewtopic. Open viewtopic.php Find, around line 780: // Send vars to template $template->assign_vars(array( On a new line below, add: 'TOPIC_VIEWS' => $topic_data['topic_views'], Now you can use {{ TOPIC_VIEWS }} in any viewtopic_*.html ...
by kasimi
Tue May 05, 2020 3:59 pm
Forum: Extensions in Development
Topic: [3.3][RC] Group Edit Time
Replies: 48
Views: 2643

Re: Best way to do without modifying core files?

@kinerity FYI you're listening to core.viewtopic_modify_post_action_conditions which is triggered for each post that is rendered. In your handler, you have one SQL query and another there's another one in the group_memberships() function that you call, which results in an additional 2 * num_posts qu...
by kasimi
Thu Apr 30, 2020 3:22 pm
Forum: Extensions in Development
Topic: [3.3][BETA] Custom Code
Replies: 856
Views: 114734

Re: [3.3][BETA] Custom Code

Use this: {% set topic_images = { 120: { 3052: 'jbauck', ... }, 121: { 3138: 'dbauer', ... }, } %} {% if topic_images[FORUM_ID][topicrow.TOPIC_ID] %} <img src="images/forumicons/showcase/{{ topic_images[FORUM_ID][topicrow.TOPIC_ID] }}.jpg" alt=""> {% endif %} Technically you don'...
by kasimi
Sat Apr 25, 2020 12:22 pm
Forum: Extension Writers Discussion
Topic: refresh index from ACP...
Replies: 10
Views: 959

Re: refresh index from ACP...

To be clear, this was merely an observation and a suggestion for you to consider looking into. It didn't and won't affect the validation results. If you have more questions about this point of your validation report, please continue in the Validation Discussion topic.
by kasimi
Wed Apr 22, 2020 6:09 pm
Forum: Extensions in Development
Topic: [3.2][3.3][ALPHA] BBCode Permissions
Replies: 13
Views: 1538

Re: [3.2][3.3][ALPHA] BBCode Permissions

There are permissions for both, see the two tabs in the first screenshot.
by kasimi
Wed Apr 22, 2020 9:46 am
Forum: Extensions in Development
Topic: [3.2][3.3][ALPHA] BBCode Permissions
Replies: 13
Views: 1538

Re: [3.2][3.3][ALPHA] BBCode Permissions

1.0.0-a2 released.
by kasimi
Mon Apr 20, 2020 9:44 pm
Forum: Extension Writers Discussion
Topic: Set permissions on a Forum
Replies: 4
Views: 489

Re: Set permissions on a Forum

A role can't be applied to forums. A role can only be applied to a group/user (global permissions) or a pair of group/user and forum (local permissions). You will need to: Create a group. Use the permission tool to create a role: $role_name = 'SOME_ROLE_NAME'; $role_type = 'f_'; $this->permission_to...
by kasimi
Mon Apr 20, 2020 7:45 pm
Forum: Extension Writers Discussion
Topic: Set permissions on a Forum
Replies: 4
Views: 489

Re: Set permissions on a Forum

You can use the migrator.tool.permission service:

Code: Select all

$role_name = 'ROLE_FORUM_STANDARD';
$auth_name = 'f_some_permission';
$this->permission_tool->permission_set($role_name, $auth_name, 'role', true);
by kasimi
Sun Apr 19, 2020 4:57 pm
Forum: Extensions in Development
Topic: [3.2][3.3][ALPHA] BBCode Permissions
Replies: 13
Views: 1538

[3.2][3.3][ALPHA] BBCode Permissions

BBCode Permissions Description This extension adds various permissions for using and viewing BBCodes. The permissions allow you to not only prevent users from using them, but also to hide or replace BBCode contents in posts (forum-based local permissions), private messages (global user permissions)...
by kasimi
Wed Apr 15, 2020 10:00 am
Forum: [3.3.x] Extensions Database Releases
Topic: phpBB.de - Move Message
Replies: 1
Views: 1257

Re: phpBB.de - Move Message

Extension validated/released
by kasimi
Wed Apr 15, 2020 10:00 am
Forum: [3.2.x] Extensions Database Releases
Topic: phpBB.de - Move Message
Replies: 1
Views: 943

Re: phpBB.de - Move Message

Extension validated/released
by kasimi
Tue Apr 14, 2020 6:29 pm
Forum: [3.3.x] Extensions Database Releases
Topic: Max-width switch
Replies: 1
Views: 775

Re: Max-width switch

Extension validated/released
by kasimi
Tue Apr 14, 2020 6:29 pm
Forum: [3.2.x] Extensions Database Releases
Topic: Max-width switch
Replies: 1
Views: 629

Re: Max-width switch

Extension validated/released
by kasimi
Tue Apr 14, 2020 9:17 am
Forum: Extension Writers Discussion
Topic: Locking post if certain BBCode is present
Replies: 7
Views: 702

Re: Locking post if certain BBCode is present

Quick follow-up: post_edit_locked is not a boolean but an int field. These are the possible values: define('ITEM_UNLOCKED', 0); define('ITEM_LOCKED', 1); define('ITEM_MOVED', 2); So you should change your code to $event['data']['post_edit_locked'] != ITEM_LOCKED and $event->update_subarray('data', '...

Go to advanced search