Topics related to users, their user profiles, etc.

learn more… | top users | synonyms (1)

-2
votes
0answers
8 views

how to use current username in sql command [on hold]

I am trying to get some data from the database. I need the name specific data from the database. How can i return the current Drupal user name and use it in WHERE statement. The code below does not ...
0
votes
0answers
11 views

Create a registration form

I've already customized the default user_register form with hook_form_register_form_alter(). That form is using complex multistep form and connects with a web service for validating etc. Right now I ...
0
votes
2answers
15 views

I can't override the user_pass hook

because I use a websevcice to manage my users, I need to override the user_pass() to send a new password via my webservices. This is what i did: /** * Implements hook_validate() */ function ...
1
vote
1answer
19 views

Extend Drupal 8 User Profiles

I need to build a module to handle Users profiles, and need to extend automatically the basic Drupal user object upon installation. For Drupal 7 I found a way with: field_create_field($field); But ...
0
votes
0answers
19 views

Adding “Online/Offline” field to a view with User Relationships

The intent here is to only show in a view the users connected by a relationship, like "My Friends" [User Relationships (UR) module] and indicate those friends that are presently online. Like, I am ...
0
votes
1answer
22 views

Is there any way to check user activation link has been sent

I have created user by profile-2 module with some certain roles,Initially user is in block state,there is one user manager that approved this user and send activation link by email.so how to check ...
0
votes
2answers
24 views

Automatize user accounts

I have a database with x users. I would like to add those accounts on my drupal database without having to recreate them one by one. I would like to do a script mike that but i'm not really sure it ...
1
vote
1answer
18 views

Add mail to user register with user_external_login_register

I'm creating a module that should add an external authentication server, and I'm using user_external_login_register function. The problem is that the user created with this functions does not have a ...
0
votes
2answers
19 views

Merge Users from Prod to Staging/Dev

I have users registering on my prod environment, but I also have accounts created internally on my staging environment. Is there a drush command similar to sql-sync or Drupal module that will simply ...
0
votes
2answers
18 views

how to create user view with last login zero or never logged in

I am trying to create user view for those user who never logged in. For this i need a filter as last login is equal to zero. Any body knows how to select filter as last login is zero. When i used ...
0
votes
1answer
22 views

Access only to home page for no authorized users

Anonymus should only have access to home page and see all content there. When anonymus click any link, he should be redirected to login page. function template_preprocess(&$variables, $hook) { ...
1
vote
0answers
16 views

Why do batch operations not run for user deletion?

On a client's website, batch operations don't run when cancelling/deleting a user account (No progress bar shows up and no process runs). Neither of the users have any content related to them as ...
1
vote
1answer
30 views

How to bulk create an extra node for each user

I need to create an additional node for each authenticated active user on a Drupal 7 site. The nodes will be populated with default content from taxonomies, and also with some field content based on ...
0
votes
2answers
9 views

Expose the user form into a page

I've been thinking for a user-friendly navigation into my website. I wanted to exposed the user form into a page where they can just easily update their information. I've installed the module profile ...
0
votes
0answers
13 views

Logged-in users getting logged out on some pages

Here's my problem. Some users are logged into Drupal. When they navigate through the website and hit certain pages, they get "logged out" until they navigate to another one, where they are logged in ...
0
votes
1answer
25 views

Importing existing users into a new Drupal site

We have an existing Drupal site that has a requirement to inherit about 10k users into, and we've been able to gather most of this data through CSV exports on the Database, and Views Export/VBO. What ...
0
votes
0answers
11 views

Printing profile2 fields in custom user-profile.tpl.php

I created a custom user-profile.tpl.php template and im trying to print Profile2 fields as suggested in Theming with Profile2, however i have no luck since the Profile2 fields are not being printed. I ...
1
vote
1answer
36 views

User suddenly logged in as another user

I face new problem in my site, we have reports from users that when they are surfing our site with their account, suddenly logged in as another user and continue surfing site as it. I searched all ...
0
votes
1answer
14 views

Unable to see URL path setting menu for a user edit page

I want to see "URL path setting" tab which appears while editing any content, but can't see it while editing a user. need help or suggestion regarding this. thanks
0
votes
0answers
35 views

Can't login via /user page

I have a Drupal 7 site and all seems to be working well except for one problem I have just discovered. Users can login via the login block on the home page with no problems. However, if they go to ...
0
votes
1answer
19 views

How to show view for submitted result of a webform by a user

How i can show all submitted value of a webform by a user in a view in a tab of a user profile section. Iam using drupal 6.For example when user click on a tab say form on his profile the webform ...
0
votes
1answer
14 views

Can failure to increase new user's UID consistently by one be related to this line inside user.module file?

I have noticed at my Drupal 7 that there are gaps between the uid's of new users. The UID of a new user should increase by one from the highest assigned UID in database. However, I have noticed gaps ...
0
votes
1answer
23 views

using hook_user() to capture user actions

I am trying to create a method to log the actions of users, specifically when they log in and out. I am using hook_user() method to do this. This is my code. function mymodule_user($op, &$edit, ...
0
votes
0answers
11 views

Copy textarea texts to user profile field

I use Webform on my site. And users have a address field in their profile. My site is a Facebook canvas app, so not use registration form or any form... They click app, authorized content and fill ...
5
votes
4answers
120 views

Change user ID of existing users

When I check my users list via by ID, I get IDs like these: User: admin Id: 1 User: second user ID: 11 User: another user ID: 21 I want them to be consecutive numbers from 1 to N. What's my ...
0
votes
1answer
19 views

What function or $user variable do I edit to manually increase a user's session timeout?

I'm using the simpleSAMLphp module which redirects the user offsite to login and then hits them back to drupal in a logged in state, but for some reason the sessions aren't getting applied. When the ...
0
votes
1answer
28 views

Create a view with user filter by default and all users after reset

I come here because i want to create a view who display all content of type "Document" of my website, but by default i want to show the content of type "Document" of the user connected. And after when ...
0
votes
1answer
38 views

Display Author Pane in view (with Display Suite View Mode)

I'm new to Drupal, but I couldn't find an answer for my problem in any other thread. I've installed and configured Author Pane and I'm able to see it in places like a node page or advanced forum ...
1
vote
0answers
21 views

simple SAML php Drupal Initial Load causes partial loading of $user variable

I have a very weird issue where the $user variable doesnt load fully during an initial login into the site. I am using simpleSAMLphp login module which routes me outside of the drupal site to ...
2
votes
1answer
43 views

Send E-Mail When User Profile Fields Updated

I am looking to update my brain regarding a set of rules in Drupal 7. What I am wanting to do is: Send e-mail to arbitrary e-mail address (mine) when a user updates any of their user profile fields. ...
0
votes
1answer
29 views

a little javascript help [closed]

I'm trying to pass some basic tracking information into a javascript snippet. this is the example they provide. woopra.identify({ email: "johndoe@mybusiness.com", name: "John Doe", ...
0
votes
1answer
25 views

Restrict access to edit page for specific user

I have 2 accounts where I need to prohibit them from editing the profile. I managed to hide the edit button but when I type edit into the URL it still allows them to edit the user profile. if ...
-3
votes
1answer
31 views

How to check author role in Views PHP

I need to check author role using views php. I've already added a relationship and added a field(excluded from view) User: role. How can I check if author role is equal to 'administrator'?
0
votes
1answer
36 views

How to Import users in drupal 7 database without hash the password

I want to import users from one database to another, without password changed suppose, I have password as $S$DfAoLR.OJWl04tkzgnZeE3TdJHlz6NxBNpArOKhQAewyyHDFDD, so after import user the password ...
0
votes
2answers
29 views

How to send user password during registration? [duplicate]

How to send user password during registration. I have to send html email when user register in the site using rules module in drupal 7 and i have to send the username and user password in that mail. i ...
1
vote
1answer
36 views

How do you allow users to create own menus?

The idea is that a user should be able to create a menu to structure his uploaded content. How would you go about making this possible without giving the user access to edit other users menus? ...
0
votes
1answer
31 views

Remove choice for user delete from Roles which can adminster the Users

I have a User Role called Supervisor which can create new accounts of role Supervisor. The Supervisor can also delete other users with supervisor role. While deleting Other users the Supervisor gets ...
2
votes
2answers
70 views

Displaying a standard picture when user has not uploaded a picture

I am using the following code. if ($logged_in) { $user = user_load($user->uid); print theme('image_style', array('style_name' => 'thumbnail_scale_n_crop_120_x_120', 'path' => ...
0
votes
1answer
20 views

Maintenance mode only when there are no active users

When there are updates available for Drupal, I enable the maintenance mode, update, and disable the maintenance mode again. As far as I understand it, users that were right in the middle of editing ...
0
votes
1answer
12 views

title_callback not working for certain user in hook_menu

I am developing a module to manage Human Ressources. I implement hook_menu with a title_callback like this: $items['intranet/hr/%user'] = array( 'title callback' => 'user_page_title', 'title ...
0
votes
1answer
37 views

Is there a way to register on my Drupal site with mobile number and password instead of email?

Is there a way to register on my Drupal site with mobile number and password instead of email? I would like to have my users register on my Drupal site with either mobile number and password or email ...
1
vote
0answers
18 views

How to get a notification when user is blocked following flood

I'm trying to get an email sent to me everytime an account is banned following a flood (5 tries). Unfortunately, a user that is blocked isn't set to "status = 0", so I cannot use a rule based on ...
0
votes
0answers
9 views

create automatic job id to show user for every node creation?

I have to create one content type. Content type name as JOB. I want to show JOB ID for every node submission page. If user want to save new job order means JOB ID automatically generate and show to ...
0
votes
1answer
30 views

How to display admin login?

I have created two logo block in left and right in my page.tpl.php page. I am not able to see admin login. Please guide me.
1
vote
2answers
31 views

Delete user and change Content Author

Is it possible to Delete the user and keep its content as created by the one who deleted the user. Suppose, abc is a user as content creator/editor only and have created 2 contents. abc got fired ...
0
votes
1answer
16 views

filter based on user reference

I have a content type "book" that has an entity reference field that references users and pulls in a name. Users also has fields for a picture and an author website. I would like to add a block at ...
1
vote
1answer
37 views

Added a new field to user profile, how do I set a value for existing users? [duplicate]

I have added a new field to the user profile on my site (i.e. in /admin/config/people/accounts/fields), a boolean value that can be either 0 or 1. Existing users have no value. How can I easily set a ...
0
votes
1answer
14 views

Searching for a user details (including custom fields) in People Administration Page

I want to search people on my people page in admin. I searched around and found this great plugin :- User search to People Admin - This helps me search user through their email, usernames perfectly. ...
0
votes
2answers
20 views

How to hide roles from user_profil_form while keeping value?

After loading user_profil_form form, I tried to hide the roles fields. It worked fine, however after submitting the form, my user roles are removed and it's only linked to "authenticated user". Is ...
0
votes
0answers
12 views

cURL hangs the hook_user_update

I am using a cURL to notify remote site of some updates on my site. I use it with hook_user_update() which is used when user data is saved. Problem is that it takes a lot of time to do that (maybe ...