Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
129 views

How can I programmatically flag a user?

I am creating a new user programmatically in drupal7. At the time of user creation is there any way to flag the user automatically. I am using flags module. I tried in the hook_user_presave function ...
Jaseer Kinangattil's user avatar
2 votes
1 answer
40 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 ...
staion16's user avatar
1 vote
1 answer
94 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 ...
dnoncoder's user avatar
2 votes
1 answer
22 views

How to disallow flags to get triggered if one of the user fields is empty?

I have a user flag "Status" and I have some fields for that user like name, phone etc. How do I not let moderators trigger that flag if any of that user field is empty?
innocent rock's user avatar
2 votes
1 answer
347 views

Which user related token(s) can be used to create a Rule for setting up a message type?

I have created few activity logs using the Message module. All works ok, but when I try to create a message type for example "username started following you on github". When setting up the rules for ...
Umair's user avatar
  • 441
5 votes
1 answer
5k views

How to create custom rules action event conditions?

Is there any universal formula or module to create custom rules actions, events and conditions? So that I just have to replace the required values and rest of the code remains the same. I searched, ...
Umair's user avatar
  • 441
1 vote
1 answer
96 views

How can I log the flags users put, then auto unflag them?

I used this link to set up a UserPoints Store: Drupal 7 - How to Set up a Simple UserPoints Store. I need help finishing one thing: When user flags item some code starts working and logs the fact ...
Sammy7's user avatar
  • 157
3 votes
2 answers
1k views

How to mark a node as read per user?

I'm wondering what the best solution is to mark a node as read per user. The below scenario is what I am trying to achieve: Admin creates a node which requires to be read and confirmed and flags ...
pacusi's user avatar
  • 65
1 vote
1 answer
120 views

How to make the Rules module block flagged users from sending entityform submissions?

I am trying to create a simple block user functionality on my site. I have a "Block/Unblock User" Flag that other users can block and unblock so they stop getting contact emails from (via entityform) ...
Brandon's user avatar
  • 193
2 votes
2 answers
149 views

How to restrict access to a path like user/%/flag?

I have created a views to display flagged content. But the flag page is accessed by all users. I want users to access only their own flagged page.
user avatar
1 vote
2 answers
67 views

List of content types posted/commented by users I follow

I'm running a D7 system Where users can follow each other using 'Follow' flag on user's profile. Now I've been assigned a task to come up with a view where I can have a list of content posted/...
Ozyy's user avatar
  • 49
0 votes
1 answer
75 views

Display Text using flags on user profile?

I'm running a D7 site and want to use a flag to display message/text on user profiles. I'm currently using 'Form' to capture message when user flags himself/herself but cannot find a way to display ...
Ozyy's user avatar
  • 49
0 votes
1 answer
102 views

Flags to create mutual friends?

I'm running a D7 system where users follow each other by using a 'follow' flag and then on user profile I've added a view to show all the users followed by a 'logged-in-user'. What I'm struggling ...
Ozyy's user avatar
  • 49
0 votes
1 answer
50 views

Flag not updating on user profile?

I'm using panels to display user profiles and each profile has a 'follow' flag (non global). I've used a view called 'follow-users' to capture few users and one of the field within that View is the ...
Ozyy's user avatar
  • 49
0 votes
1 answer
177 views

Use Case : Registration of a Team for some event

Here is my use case: The users can register for the website and then form TEAMS. One of the users would be the TEAM LEADER. The team leader can register for various events for his/her team(s). ...
shivams's user avatar
  • 274
1 vote
1 answer
461 views

Assigning a badge to a user using Flag, Badges and Rules

I am interested in assigning to user a Badge after he favorites 3 nodes. I want to do this with Flag, User badges and Rules. How can I do that?
Dion's user avatar
  • 2,398
4 votes
3 answers
3k views

Restrict forum access based on user (user list)

I need to restrict access to forums so that only selected users can access an individual forum. (The users should apply for a forum and a moderator should decide if the user should be allowed to ...
Elin Y.'s user avatar
  • 7,422
1 vote
0 answers
187 views

Flags, Entity reference, users and content upload

I am using the entity reference module and flags to achieve a certain use case. Let me elaborate. In my site, there are nodes of type "TASK". They have a flag on them "Take Task". Now a logged in user ...
user145078's user avatar
0 votes
1 answer
242 views

Create block user flag, hide users from view

I have created a social site where users can flag other users as "blocked". The primary view for the site lists users along with a bit of profile2 data and a "block" flag link. Users cannot see ...
emc's user avatar
  • 863
3 votes
2 answers
675 views

Flags - Recreate the 'poke' function

I need to create a flags view that displays a list of users that have "poked" the current user with D7, Views 3 and Flag 3. I've read through this question and drupal.org/node/296971, neither ...
emc's user avatar
  • 863
2 votes
1 answer
81 views

Create a view to show users who flagged other users

I have created a User flag as Report Abuse. Users may flag other users with this flag. Now i want to create a view where the users who are flagged along with the flagging user are shown. However i am ...
why's user avatar
  • 1,147
5 votes
2 answers
262 views

Flagging users as spam and giving a reason for doing so

I am creating a community site using Drupal7. The users of my site should be able to report other users as spam users. For this I am using the Flag module. I have created a flag called Report User for ...
user145078's user avatar
1 vote
0 answers
52 views

Creating a view to show a user the flag he/she has been flagged with

I have created 3 flags for users and only admin can flag it. Lets say the name of the flag is "Cool", "Boring", "Super". The admin goes to the profile of user A and flags him with "Cool" and "Super" ...
why's user avatar
  • 1,147
3 votes
1 answer
123 views

Contents, Flags, Users and Node views

I am in the process of making a social networking web site with Drupal7. Most of the tasks are done. However, i am stuck at this issue big time. I have created custom content type, Challenge. Using ...
why's user avatar
  • 1,147
2 votes
1 answer
802 views

Conditional Flags in Panels

I have created two flags using the Flag module and they are placed on my custom content type, 'Challenge'. Both the flags can only be flagged but not unflagged. The first flag is "Accept". The second ...
why's user avatar
  • 1,147
3 votes
3 answers
3k views

Count the number of content flagged by logged in user

I want to get the number of items (content) flagged by the logged in user. <?php $flag = flag_get_flag('flag1'); print $flag->get_count($nid); ?> The above line would display the total ...
why's user avatar
  • 1,147
8 votes
3 answers
5k views

How to display a flag to anonymous users?

I'm using the Flag module, but I have a problem in displaying a flag to anonymous users. I have 2 flags called "make feature" and "add to Favorites". I want to display this flag to anonymous users ...
Pranav Gandhi's user avatar
1 vote
1 answer
433 views

Creating list of content for each user

I have a custom content type named Movie. Every user must have 2 lists of movies: Seen movies Not seen movies For this purpose, I am using the Flag module to attach 2 links ("Seen" and "Unseen") on ...
Azad Salam's user avatar
0 votes
1 answer
1k views

How to add additional tab in the User Profile page using views

I have installed the flag module and it comes with some 2 views that are added to the list of views. One of them will stick to the user page as an additional tab and when clicked will show a list of ...
Marcos Buarque's user avatar