Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Use it for the module implementing a flexible flagging system, completely customizable by the administrator users: the Flag module.

0
votes
1answer
16 views

Disabling node editing after first node flagging

I use flagging for signing petitions. Petitions should be editable until the first signing (flagging) is done. Now I look for a solution to disable node edition after first signing. My first thought ...
-1
votes
0answers
23 views

How to create subscriptions using Flags and Rules?

Desired Behavior On a given node, we want an authenticated user to be able to click a link to subscribe to the item and any time that content is updated or a comment is made, the user who subscribed ...
-1
votes
0answers
7 views

How can I integrate Flag module with Search API and Views?

I need to use Search API and Views have robust filtering options. I'm using the Flag module so that users can flag content and then I use the Flag module Filter and sort criteria integration within ...
1
vote
1answer
17 views

Is there a way to add non indexed fields to a search api view?

I’m wondering if it’s possible to add non-indexed fields to a search API indexed view? I want the standard flags fields to be available on the indexed search view. And I was thinking I could do this ...
0
votes
0answers
28 views

Rules, Flags, Follower and New Content Notification

I am trying to setup a couple of rules. So far I have messed with rules some but since I am new, haven't had any success. This is what I am trying to achieve. Have created a user flag called FOLLOW. ...
0
votes
1answer
46 views

View, flag, and followers

I have a user flag that is called "follow" and am trying to setup the following views in Drupal 8. I want to create 3 views for my website's user profile pages: A list of users flagged by a user (...
0
votes
1answer
54 views

Token for Total Flag Count

I have created a flag for my comments named HELPFUL. If users find a comment helpful they vote it as such. The challenge that I have is how do I show the total votes for the flag next to the button? ...
0
votes
0answers
130 views

Flag count is incrementing only after page reload

I have a views with like and unlike flag. When I click on like flag the count not increments. But when I reload the page, then only like's count will change. How can I solve this issue? Note: I have ...
1
vote
1answer
40 views

How to show users who have not flagged a node with any flag?

Drupal 7. I have a content type that can be flagged with 3 different flags. I need to display a view of users who have not flagged any of them. The users that are allowed to flag are listed in an ...
2
votes
1answer
33 views

How to stop users from flagging other users if they have a custom taxonomy term?

I'm working on a project where users vote other users using the Flag module. Each user has a department term reference field. I would like to stop a user from flagging another user if they have the ...
1
vote
1answer
54 views

How to redirect user to an url when node is flagged?

My problem is related to the Drupal 8 versions of these two modules: rules and flag. What I want to achieve Some node types on my site are offering a global flag as a link (for e.g. "report error" ...
0
votes
0answers
88 views

How to use the flag counter in a twig template of a node?

The version dev of the module "Flag" for "Drupal 8" has added a new sub module "Flag Count": https://www.drupal.org/project/flag/issues/2708291 I copied the code {% set count = '[' ~ flagcount(flag,...
0
votes
1answer
17 views

Error when trying to delete user

I installed the heartbeat module to track user activities on my website. It took me hours to configure it but everything seemed to be working as I wanted until I tried to delete a test user from the ...
0
votes
0answers
121 views

How to change destination URL of modal form action in “flag” module Drupal 8?

I m using a flag module to flag nodes in drupal 8. In flag module settings, we have selected link type as "Field Entry Form" & form behaviour as "modal dialog". Now, When user clicks on flag link ...
0
votes
1answer
32 views

Showing flagged content to users

I have flagged contents in a block.But only admin can see the these flagged contents(contents are product variations).I want to show these contents to all authenticated users and anonymous users.Is it ...
0
votes
1answer
44 views

list users informations who flagged an entityform with views

I'm using drupal 7 with entityform, views, rules All is in the title, i need to list some profils fields (name, mail etc..) of users who flagged an entityform. Exemple : User X send an entityform. ...
1
vote
1answer
66 views

How to create a rule to flag users when they're approved as a Trusted Contact?

I need some help with Drupal Commons (7.x-3.46), Trusted Contacts (one of its modules), and Rules. I need to create a rule so that whenever a user is approved as a trusted contact, the user is also ...
0
votes
2answers
34 views

Ability to flag each uploaded image separately after doing multiupload

I want to create some kind of photography website where users will be able to flag some images for later use. This is the user story: Photographer upload images of the client event on the website ...
0
votes
1answer
87 views

Drupal 8: Build “visitor history” using Flag/Rules

I need to build a history for visitors so they can see which pages they've visited (ideally filtered by type). To do this, it seems that the correct combo is to use Flag module and then Rules. I'd ...
0
votes
0answers
27 views

Fetch the fields of a node after flagging the flag on the node

I have a node flag called "send" Then another flag called "received" which is a flagging of the send flag. The flag "send" has fields while the flagging "received" also has fields. I am trying to ...
0
votes
0answers
43 views

Flag node after it has been viewed

I'm trying to create a read/unread flag for my news articles. With rules, this should be no problem, in my opinion. What I have: A Rule on event: Content is viewed NO CONDITIONS An action: Create ...
1
vote
1answer
24 views

Allow a user to manage his/her own users and be able to assign roles

I need to give access to a specific user with a specific role to be able to give the user role but not the administrator My case is that the website I'm building needs different kinds of admins and ...
0
votes
1answer
33 views

Rules Flag Count

I have added a flag [FOLLOW] that allows users to follow each other. Using Display Suite, I am trying to add a token field that will count total number a FOLLOWS a user has received. From what I can ...
0
votes
1answer
54 views

In a view how to replace the date of creation of the comment by the date of the flag?

I created a "like" flag on the nodes. I created a view that displays the comments. I want my view to show only comments posted since the flag date. The solution will be to create a filter criteria ...
0
votes
1answer
31 views

Replace the date of a filtering criterion with “Views PHP”?

I created a "like" flag on the nodes. I created a comment view. I want my view to show only comments posted since the flag date. The solution will be to create a filter criteria with the filter "...
0
votes
1answer
246 views

How to display in a view the comments of a flagged node?

1) I created a personal "Flags" called "Follow" on the nodes. 2) I created a page view (comment) that displays the comments of the flagged nodes. So far everything works. Now I want comments to be ...
0
votes
2answers
44 views

Exposing a type of field operation (flag lists) for search index view

I installed the flag list operations module which gives me the ability to do operations on my views results. But this flag list operations doesn't show up on my search index view as seen below. I'm ...
2
votes
2answers
36 views

Flag : access, context, role

I have a site where members (with different roles) can post projects. My goal : To show to "recruiters" (role) a view of all the users who have flagged their nodes. In other words, the flag ...
0
votes
1answer
66 views

How can I hide a node flag using twig

I want to hide the flag on a node if a boolean field is unchecked. My Code in node.html.twig {% if node.field_registration_status.value == 0 %} <div class="registration-closed"> {{ ...
1
vote
1answer
43 views

How to eMail a periodic summary of flagged nodes to users of some role?

I'd like to create a periodic summary email that gets sent to a specific role. The summary email would include things such as: flagged content / users count new users count new nodes most viewed ...
1
vote
1answer
27 views

How to add a flag link to a view that contains only fields with relationships

Normally one would add a flag link as field in a view, in order to be able to flag an entity of a views row. However, I cannot add a flag link to a view that only shows entities using a relationship, ...
0
votes
1answer
319 views

Can't get Flagging API to accept POST request

trying to use the REST API that comes with the flagging module on Drupal 8. I've enabled and secured the endpoint that comes with the module: /entity/flagging: POST I'm nearly there, but following ...
2
votes
1answer
98 views

Flags: flagging unflagging rules, how to check if an user has already flagged a node?

I'm using Drupal 7 and I created 3 flags for article content type; these flags are global flags: bad, nice and cool. Now, I want create a rule in order to check if an user has already flagged an ...
2
votes
1answer
29 views

How can I automatically assign users to a node based on a taxonomy?

I've Googled this but might just not be using the right search phrases. I'm building an RFP repository for my company. Each RFP question will have a Category assigned to it. Within Drupal, I'd like to:...
0
votes
0answers
27 views

Show view result of both flagged users and the flagging user

I have a views listing the user profile of the users I have flagged by adding a relationship flag, and user profile. Then adding a contextual filter uid for the current user. I want the view to also ...
0
votes
1answer
70 views

How do I programmatically set up multiple default flags?

How do I programmatically set up multiple default flags? The documentation shows how to create a single flag using mymodule_flag_default_flags(). If I need two or three default flags for my custom ...
0
votes
1answer
198 views

Printing “Add to favorites” flag link in custom Twig template [duplicate]

I want to add an "Add to favorite" system for my users to my website using the Flag module in Drupal 8. But I can't print "Add to favorite" link into my custom Twig template.
1
vote
2answers
33 views

Subscribe flag to auto-subscribe authors

I have set up a flag so that users can flag certain types of nodes and receive an email notification if there is any activity on it, such as comments. It's paired with the answers module. What I can't ...
3
votes
1answer
60 views

How to use “replacement tokens” created for a Message type in Views?

In my case a user with the role ("team member") flags a node created by normal user. I want to display "@team member_id flagged @node_id created by @user_id". Maybe later on I would like to add ...
4
votes
1answer
45 views

How can I track all Flagging/Unflagging history for statistics?

Is there any way to track the flag/unflagging of a node/user without the Heartbeat module? Or a way to track all user/node interaction to use it after for statistics?
1
vote
1answer
89 views

How to set a flag at node when user view node?

I have a content type 'page'. When a user views this node, I want a flag to be set automatically not by flage module link. Any help?
1
vote
1answer
284 views

How to access commerce_product field of line-items using Rules to flag the Commerce Product?

Related to this question: How to mark product if it has already been purchased by current user? I have a Drupal Commerce shop, where I'm trying to use the Flag module to mark products to inform users ...
1
vote
1answer
55 views

How to “flag” product that had already been purchased before “flaging feature” was added?

In reference to this question and answer: How to mark product if it has already been purchased by current user? Now that I know how to "flag" the items in a way that lets me notify customer to avoid ...
0
votes
1answer
152 views

Hide flag field from certain nodes in view

I'm new to Drupal, so I may be missing some "obvious" things I've installed the flag module, so users can flag their content to make it appear on top of other views. The thing is, when I display the ...
1
vote
0answers
71 views

How do I use the message module with the flag?

On Drupal 8 I installed the "Message" and "Flag" modules. I created a flag "Report content" and I want a message to be sent to the site administrator as soon as a content is reported. Messages will ...
0
votes
0answers
252 views

Working with flag fields

I have a Drupal 7 website which I'm writing a companion mobile app with Drupalgap. The website uses a couple of global flags, which have fields associated with them. I'm using drupalgap flag module,...
1
vote
1answer
28 views

Get content of current user + Of the users that are flagged or followed

I have a site, where users can follow each other using Flag. Currently, I am able to create a view which shows content from all the user the currently logged in user is following. This is done adding ...
0
votes
0answers
142 views

Create public or private nodes in groups

1) On my drupal 8 site, I use the "Group" and "Flags" modules. How do I create public or private nodes in groups? if the node is private, it is displayed only to the member of the group. if a node ...
0
votes
1answer
137 views

hook_flag_flag() is not working

I am working in one of the project using the Flag module. I want to add custom event when user flag any content. I am trying to use hook_flag_flag() but it is not working. This is the code I am using ...
0
votes
1answer
56 views

rules condition to check whether user has flagged another

Hi I have two user roles, client and consultant. Currently a client is able to flag a consultant as their selected consultant. Now here is where im stuck. I am looking to use rules to display a ...