Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
507 views

How to mandate the password policy in custom form fields?

I have custom form which has password field values and by using that user will be created in our website. So the requirement is to use password policy module functionalities to this form also. The ...
Suraj's user avatar
  • 884
0 votes
1 answer
27 views

How to change order and depth of user account tabs

With Tab Tamer we can change the weight/order of tabs in the user account under user/% (e.g. put user/%/edit after user/%/some_settings), but we can't set depth between the tabs (e.g. user/%/...
xinxin's user avatar
  • 31
0 votes
1 answer
300 views

Change default on login url

How do I change Drupal's default on login url from /user/<uid> to /user/<uid>/edit so that a user gets to there right after they log in? EDITED: Tried Rules: Events: User has logged in....
mikebrsv's user avatar
  • 101
1 vote
1 answer
96 views

Restrict language based content editing for nodes and blocks

I am running a D7 multi-language site. I am looking for a solution to restrict node AND block editing for english language, only. The editor should not be allowed to edit french content. How can ...
user avatar
0 votes
1 answer
230 views

Retain content while deleting user using services

I need to delete a user account using services module & does it fine. I can see that content(forum) created/updated by the user gets deleted. Is it possible to achieve below screenshot option ...
Prasanth R's user avatar
2 votes
1 answer
45 views

Suggestions for storing private user content lists

I have a feature on my Drupal7 site where users can store a list of personal stock symbols (NYSE, NASDAQ, etc) and then do different actions on that list; quote, chart, etc. These lists are private to ...
Gentwo72's user avatar
0 votes
1 answer
112 views

See Which User Created/Edited Block?

Is there any way in Drupal 7 to view which user last made edits to a particular block, or who created the block?
dubesor's user avatar
  • 175
0 votes
1 answer
395 views

Create a Rule that assigns a specific role to a user after they have completed a form

Ok, I have a customer that is wanting to have an applicant complete a specific webform and then have their user account be assigned to a specific role automatically. My thought was to go the ...
Nicole's user avatar
  • 41
1 vote
2 answers
178 views

Secure Drupal User Profile Information

I need to secure the user profile information, which contains predefined & custom fields such as username, profile picture & phone number. I do need to encrypt & store it in DB. And then ...
Prasanth R's user avatar
0 votes
1 answer
45 views

Replace username with unique hash when users delete their own accounts

When users delete their own accounts (with the core function), I don't want the username to be replaced by anonymous, but with a hash string, for example anonymous-dhjf4ued. I tried doing it with the ...
Pixelstyle's user avatar
2 votes
1 answer
49 views

Sending user edit form to user profile

I'm trying to send user edit page to the user profile page (/user), so I can get user profile informations and user edit form on the same page. function hook_preprocess_user_profile(&$vars) { ...
Aporie's user avatar
  • 375
0 votes
0 answers
66 views

How to get a list of users based on the radius?

I want to allow users (workers) to give their address using addressfield and also give a distance or radius they are prepared to travel. It is a job site. When a client posts a job (node) and provides ...
Umair's user avatar
  • 441
0 votes
0 answers
379 views

Oauth2, Duplicate entry '' for key 'name': INSERT INTO {users}

I'm trying to make an object to log user through oauth2. I need to put some conditionnal fields. Here is my code : public function createUserLocally() { // Get user datas from api $...
Aporie's user avatar
  • 375
-1 votes
1 answer
25 views

Remove user permission from content after creation

We have a business case where it is needed to remove user permission for a specific content type after submission. Think of it something like submitting an application. If there is better workflow ...
bayran's user avatar
  • 3
0 votes
1 answer
105 views

Drupal Commons, can't break-contact error

I am using Drupal Commons (7.x-3.46).. Whenever trying to "break contact" of a trusted-contacts, I get an error: An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. ...
dnoncoder's user avatar
0 votes
0 answers
24 views

User expirity resets after rule fires

I have a rule, that sets user expiration date from a date field (this is on the same user account, I need this for another rule). However, after the rule fires the user expiration date is beeing reset ...
buboreka's user avatar
  • 115
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
1 vote
1 answer
907 views

Sign out not working properly in OpenID Connect

I have integrated OpenID Connect(Generic), where my Signin was successful(Redirects to destination server, provided credentials, redirect to drupal & authenticated). While i make Sign out, it ...
Prasanth R's user avatar
0 votes
1 answer
94 views

How to grant referenced user access to Profile page

I use Node access user reference module in many projects. I have a very similar task: Grant access to a profile page for those user who is referenced in that profile. Unfortunately, Node access user ...
StG's user avatar
  • 302
2 votes
1 answer
65 views

How to delete all Drupal content owned by a particular user?

It seems like there should be a drush command to achieve this, but I cannot find one. I am not clever enough to fashion an SQL query that will delete all nodes owned by a user as well as clean up all ...
Blake Frederick's user avatar
-2 votes
3 answers
498 views

How to create a rule to email all users with a profile field X with same value as the current-user?

I'm using Drupal 7.57 and I have 2 roles in my website, role X and role Y. I want to compare a field (field_code_postal) of the X member profile of the current-user, with the fields (...
Quentin's user avatar
  • 23
1 vote
0 answers
92 views

Proper Workbench Access/Moderation/Email + Node permissions for my use case?

I've been banging my head against the wall all weekend trying to figure this out but just can't seem to get 100% of the way there... I fix one thing, causing another thing to break. Making me question ...
Chris K's user avatar
  • 57
0 votes
1 answer
17 views

profile2 image field not show images

I tested my profile2 image field at upload moment and the file upload successfully and unexpectedly after save changes the image fid appears like 0 but the image don't show. What I do? Thanks!
josotoru's user avatar
0 votes
2 answers
934 views

How to use user_external_login_register() with user authenticated by token?

So, I'm working on an Oauth2 implementation, and I'm forced to use a custom module as the existing modules all have slightly differing functionalities than my use case, assume Drupal-to-Drupal ...
nizz0k's user avatar
  • 1,182
1 vote
1 answer
60 views

How to show the user badges in my tpl.php file?

This maybe a dumb question but what am I doing wrong? From here: https://www.drupal.org/node/942014 It says I have to insert: if (module_exists('user_badges')) { print user_badges_for_uid($uid);...
Graham Miranda's user avatar
-1 votes
1 answer
34 views

Why aren't I allowed to log in?

I have a local setup for an online running Drupal 7 website on Ubuntu 14.04. I upgraded to Ubuntu 16.04 and I restored the local setup. I can access the website on localhost, but it doesn't allow me ...
Iqbal's user avatar
  • 191
0 votes
1 answer
48 views

User resetting password, week later needing to reset it again

I have a develop and a production version of a site running behind a firewall. In production the users passwords are somehow being reverted and once the user resets it, they get a random amount of ...
jasonflaherty's user avatar
-1 votes
1 answer
18 views

What is the $user array consists of for Drupal 7?

I couldn't find a good reference to what the $user object consists of. I know $user->uid provides to uid. What else?
Patoshi パトシ's user avatar
0 votes
1 answer
228 views

Adding multiple users to a field using user/autocomplete

I have the following code to add a field to my custom module to add in users. But I can only add in one user using the user/autocomplete feature. $form['usershare'] = array( '#title' => t('...
Patoshi パトシ's user avatar
2 votes
2 answers
163 views

Shared subset of users in a multi-site instance

Can I have a shared subset of users in a multi-site instance? In other words, I have the same list of administrators across all sites. Can these administrators be admins for all sites through a shared ...
user avatar
1 vote
1 answer
77 views

How can I handle the user access to specific taxonomy terms?

There is a node form with a term reference field which's terms list I want to filter based on users/ permissions. I've tried several modules in which I can grant access either user- or role-based for ...
Alex's user avatar
  • 2,553
1 vote
1 answer
453 views

How to send an e-mail to a user selected in a webform via a user reference field?

I have a webform, that the HR use. I have a form component of the users, that is a user reference field. I would like to use Webform Rules to send an e-mail notification to the selected user. If I ...
buboreka's user avatar
  • 115
0 votes
1 answer
29 views

Validate and submit functions not calling on template.php

I have an user register form alter on my template.php and this is the code: function mymodule_theme(&$existing, $type, $theme, $path){ $hooks = array(); $hooks['user_register_form'] = array( ...
josotoru's user avatar
0 votes
2 answers
942 views

Change max length of signature field to more than 255 characters

How can I change the max length of the drupal 7 signature field to more than 255 characters? I've already changed the sql data type from 255 to varchar(900), yet drupal still shows the error, as soon ...
and93hil's user avatar
0 votes
1 answer
173 views

How to send an email once a new member is invited using the Group module?

I am using the Group module on a Drupal 7 project. I would like the system to send an email notification once a new member is invited. I'm assuming I could use the Rules module to perform this task, ...
Kenyon Johnston's user avatar
1 vote
2 answers
43 views

Is there a way to automatically cancel an account after 14 days?

I'm working on a website where we are offering trial access and I want a way to automatically cancel an account after the account is more than 14 days old EXCEPT if they have submitted a feedback form ...
joelewing's user avatar
1 vote
1 answer
146 views

how to access $user from commandline?

I'd like to access $user from the commandline to see what properties are available on it. I could sdpm($user) in my code and go inspect it in my browser, but isn't there a way I can inspect it right ...
alec's user avatar
  • 178
2 votes
1 answer
103 views

Create a hidden character field?

How can I create a hidden character field in D7 for a text field that hides the user input like the password field does? For example a field called "social security number" should not display the ...
and93hil's user avatar
3 votes
0 answers
407 views

How to implement SSO with Oauth2 to login users from another site?

So, I apologize in advance as I'm only now getting familiar with all the Oauth2 terminology. I have an existing Drupal 7 site with its own active user base. The organization I support has recently ...
nizz0k's user avatar
  • 1,182
2 votes
2 answers
87 views

Alternative to the need for dozens of roles to access special materials

My organization wants to create access to specific resources and materials based on a role, but the issue is that there is the potential for dozens of such roles, each granting access to specific ...
Christia's user avatar
  • 1,667
0 votes
3 answers
2k views

How to anonymise user names and emails?

The developer stages need their user names and email address anonymised. I did not find anything googling the subject matter. Maybe somebody developed a Drush extension for this? Any other suggestions ...
ñull's user avatar
  • 161
1 vote
1 answer
174 views

user_delete function is very slow

I am writing a script to delete 200+ users. To achieve this, I write a db_select query and got all the UIDs. The I wrote foreach loop to delete users using 'user_delete' function. But this is taking ...
Pankaj Sachdeva's user avatar
1 vote
1 answer
44 views

How to display a Rules Link only if access to display the linked content was granted?

I'm using the Drupal Commerce 7.x, Rules Link, and Content Access modules. In my site Classified ads can be created, and then people can use credits (via User points) to pay for unlocking "contact ...
Quentin's user avatar
  • 23
1 vote
1 answer
239 views

How to access node properties of another node using the Rules Link module?

I wonder how to access node properties via another node with Rules. I already store the link of my other node in a field (of the original node), but I don't know if we can do that. I'm using the ...
Quentin's user avatar
  • 23
0 votes
1 answer
71 views

How to allow users to edit the profile of users in the same department?

Department is a term reference or a list (text) field of the user entity. I want to let managers edit the profiles of users in the same department as the manager. I know I should define a custom ...
fishfree's user avatar
  • 129
0 votes
1 answer
196 views

Required field not being shown on password reset page

We have a terms and conditions checkbox boolean which is required to create an account. It's created in the Manage Fields section under People. We have set that checkbox to Required, and it works. ...
DMAC's user avatar
  • 1,053
0 votes
1 answer
285 views

Banned IP address is still able to access the site

I've blocked the IP address at admin/config/people/ip-blocking and I can see it also in the flood control logs as a blocked IP, but the IP is still accessing the site and I can see errors in the ...
longboardnode's user avatar
0 votes
3 answers
5k views

Changing a user password through phpMyAdmin

Hopefully this should be a quickly resolvable query: If I only have phpMyAdmin as a means of changing a password - e.g. say I can't login and need to change the Admin password (and Drush is equally ...
Mo-ster's user avatar
  • 403
0 votes
1 answer
90 views

Webform display for specific roles

Suppose we have 20 webforms A user which has Admin role as well User1 role should only view its corresponding webform (eg: weform1 and webform2)rest webform should not display at(admin/content,/admin/...
user avatar
1 vote
1 answer
667 views

Why does cron run as an anonymous user?

I ran into an issue recently where my hook_cron function was failing when triggered by cron. The problem was that I was calling EntityFieldQuery, which does access checks and since cron runs as an ...
Blake Frederick's user avatar

1
2
3 4 5
44