How to hide/override permissons for a local task(tab)?

I wish to restrict access to the local task /user/<uid>/activity. (Created by tracker module)

By default, if I give 'View user information' permission to whatever roles, then users with that roles can access all those local tasks. If I deny 'View user information' then all local task are unavailable.

I want all users to read user's basic information; however I want only one of these roles to have permission to look at listing of user activities.

How do I achieve this?

I think I will need to implement this a hook. (correct me if wrong)

How to create a payment method for an offline payment?

I'm trying to set up a checkout for an offline payment (COD where money is sent separately from the site logic) in order to set up an offline payment gateway. What I need: When the user selects an offline payment manually, completes it, the order should be updated to the "pending" status, but I get the "completed" status.

Perhaps I need to intercept the payment event for the first order with the "manual" method.

I couldn't find any manuals or documentation on how to create my own offline payment module.

Update:

How to stack content sideways on the front page?

I am working on a theme for Drupal 8/9 that is based upon Bootstrap 5. I use sass to generate style.css from .scss-sources.

I have a content type named "Polaroid". It has fixed width an height (300 by 350 px). I want to show this content stacked sideways. The visual effect I am looking for is similar to what you could get with the Drupal 7 project DAN Polaroid (screenshot below):

How to replace the default page and tab of profiles in the user account ?

I created a Views page with the following path to replace the default "Profile" module page for my "projects" profile type:

    /user/ID/project/list

https://i.stack.imgur.com/UXEMR.png

You have to click on "Projet" to display the profiles.

With the default page I have this display :

https://i.stack.imgur.com/mdj5W.png

In DBLOG lots of entries are created of a System type “… was not found”

After clearing all caches and when browsing pages via admin interface (logged in as administrator) a lot of entries of a System type are created in DBLOG. The pages are being displayed correctly.

Here is the scenario:

1. All caches cleared

2. Visit a single page while being logged in as administrator (browse via admin interface)

3. Check DBLOG

After viewing just one page 48 entries were created in DBLOG

11 x The "views_block" was not found
All 11 entries have the same details

How do I display the comment status ?

I created a comment type for the profile entity. When I create a profile, I can set comments as open, closed, or hidden.

I have created a view profile block, and I want to display in front of each profile whether the comments are open or closed.

How can I achieve this ?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x