Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [flags]

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

0
votes
0answers
8 views

pending friends not showing flag friends

I am using flag friends. everything is working fine, but when I use (pending friends) link or tab it shows no pending request. when I use (friend request) link or tab it shows all the friends who sent ...
0
votes
0answers
21 views

How do I programmatically get the flag creation time?

I need to get the creation time for a flag on a node. I started with the following code, but I probably need to use getEntityFlaggings() passing the node and the flag ID. $flag_service = \Drupal::...
0
votes
0answers
22 views

Flag/Unflag Taxonomy term when updating Taxonomy field in user profile

I asked this question a few days ago: Send email to all users that are tagged with the same tag a node is when created I decided to go a different route and use the flag and rules module to associate ...
0
votes
0answers
18 views

How to limit flagging in drupal 8?

Node compare is awesome plugin but it's just only in D7. I'm using Drupal 8. I have a views page which integrated with flag(compare it) and flipped table module to compare contents. It has limit to ...
1
vote
1answer
42 views

How can I get flag count of a flag?

I see extensive Drupal 7 documentation for the Flags module, but very little for Drupal 8. I have a Signup flag on a Drupal 8 node (which is an event). I need to suppress the Signup link when a ...
1
vote
1answer
57 views

How to change the labels TRUE and FALSE of a boolean field in views exposed filter

I am using the flag module to toggle a node type 'Task' as Done. I made a view that lists the tasks, and added a views exposed filter for the flag status, which is a boolean field. In this way users ...
0
votes
0answers
17 views

Get the field for a value of a “List (integer)” field using entity_load()

I am trying to get the label for a value of a List (integer) field using entity_load(). With the code I am using, I'm able to get the field key with $flagging->field_form_status['und'][0]['value'],...
1
vote
1answer
14 views

Node is flagged, node author comes back to the site, how to show how many new flags since last visit?

I created a "new activity feed" view page in which a user can see how many new comments have been posted to his own nodes since his last visit Eg : since you last last visit : - 21 new comments have ...
-4
votes
2answers
73 views

How to redirect user to login page when anonymous user click on the flag link?

Redirect user to login page when anonymous user click on the flag link. How to achive this? I have created flag links by function MYMODULE_preprocess_node(&$variables) { $node = $variables['...
0
votes
1answer
31 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 ...
2
votes
2answers
72 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
45 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
126 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
146 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
146 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
85 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
116 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" ...
1
vote
2answers
280 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
18 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
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
45 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
72 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
36 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
175 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 ...
1
vote
1answer
25 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
45 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
55 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
33 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
409 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
56 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
44 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
93 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
45 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
33 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
462 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
112 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
31 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
34 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
79 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 ...
1
vote
1answer
356 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
38 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
72 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
60 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
104 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
404 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
68 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
179 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
77 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 ...
1
vote
1answer
29 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 ...