Topics related to users, their user profiles, etc.

learn more… | top users | synonyms (1)

0
votes
1answer
12 views

How can I check if the current user is accessing his/her own user page?

I would like to print something in page-user.tpl.php only when the current user is accessing his own user page. (any URL starting with /user/%uid/ but when %uid/ is the user id of the current logged ...
2
votes
3answers
21 views

How to only allow a user to edit his/her own users?

For instance, my site contains two roles: employer. company. Every company has to be able to add, edit and delete there own employees. As you may understand, companies should not be able to edit ...
0
votes
1answer
20 views

How to reset/save $_SESSION variables in forms for each user?

I need to add captcha to user login form after 3 failed logins. To do so I built the following module, and used $_SESSION['failed_login'] to keep track of the number of the failed logins. This ...
1
vote
3answers
116 views

How to change the user role programmatically?

I am assigning a role to user by this code: $user = user_load($user->uid); $role = user_role_load_by_name("10-dis"); $user->roles = $user->roles + array($role->rid => ...
0
votes
0answers
20 views

verify operations through email

I need to ensure that the user is the one who is acting on the website by sending hash code generated to his emial or sms message before complete an operation. we have implemented account balance so ...
0
votes
1answer
12 views

How do I amend roles for the Administer Users by Role module?

I'm using the Administer Users by Role module. I have a role set up as Publisher which has all the boxes ticked under the "Administer Users by Role" option (under People/Permissions as shown in the ...
2
votes
2answers
42 views

Is this a possible attack on database?

In the logs (Drupal 7), I have seen the next entry (I have edited some compromised info). It seems a failed (only I hope it actually failed) attempt to access the login account. I have tried to ...
0
votes
1answer
27 views

Unable to send email local configuration problem

I'm getting strange email errors on User Registration, when a user creates an account on my website, it emails them a link to activate their account, however, its started showing errors at the top of ...
0
votes
1answer
20 views

Change the updated timestamp for users

I have a custom module that do some processes after a user entity is updated. I need to just trigger a timestamp update so my module can act on them accordingly. I wrote a script that is going through ...
0
votes
0answers
27 views

Why only guests can submit a webform api form?

I use Drupal 7 and the webform API. I made a contact form which works pretty well when you enter the site as a guest, but for authenticated users it doesn't store the data after submitting without ...
0
votes
1answer
45 views

website doesn't load [on hold]

I had a fully working Drupal site and had some problems with uploading files on a specific page. So I started looking closely at the code and noticed some oddities (basically a lot of random ...
4
votes
2answers
53 views

How to assign a specific role to each newly registered user?

Is it possible in Drupal 8 to assign a specific role to each newly registered user?
0
votes
1answer
31 views

Migrate : user update resets user roles

Using the Migrate module, I created an import task that creates and updates user info from a csv file. The update is launched using drush. drush -l http://localhost.atrium.com mi Utilisateur --update ...
3
votes
2answers
42 views

How to restrict content access within a site?

In a community site. I want to restrict users to have some private parts of the site like forum, groups and discussion board with their scope (should not be visible to others). That is a specific ...
0
votes
1answer
25 views

users forced to reset password

I'm on 7.39 and I get a lot of reports from users that re forced to reset their password every time they visit the site. I'm honestly clueless about how to debug and haven't been able to find similar ...
1
vote
3answers
30 views

How to make a particular role user and their content not accessible/viewable to other users?

How do I make the user page (/user/uid) of a particular role (PendingFreelancer) and the content they create not accessible/viewable to other users?
0
votes
1answer
60 views

Programmatically logout user without redirect

I have the following code in my module: <?php function MODULENAME_init() { if (!user_is_logged_in()) { global $user; $user = user_load(31); ...
1
vote
0answers
24 views

How to get user edit form in mini panel?

Could you, please, explain me how to get user edit form in mini panel ? I need to replace standard user edit form and to do it in block but have some problem with that - it seems that nothing happens. ...
4
votes
1answer
35 views

How to auto-assign a user a particular role when that user gets autocreated in a content form?

I need to auto-assign newly autocreated users from the content editing form a particular role. I created this new content-type : Music Track and created a new field - Artist for it. The Artist field ...
1
vote
1answer
26 views

How to display the user email on account pages?

On the user account page all feilds are displayed except for the email. I have tried to modify the user-profile.tpl, and added print $user->mail but it displays the logged in user and not the ...
0
votes
0answers
19 views

Is it possible to efficiently emulate revisioning of a user text field?

This use case is a little unusual but hopefully easy to understand. I have a text field on the user account, Nickname. I want to use this instead of the actual user name because I want users to be ...
0
votes
0answers
17 views

Unable to delete a user with lots of content?

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?id=462&op=do StatusText: OK ResponseText: Fatal error: Maximum execution time of 30 seconds exceeded ...
1
vote
1answer
25 views

Custom fields in user's default tab

I'm a first-time stackexchange user, long time Drupal 6 developer. I'm just starting playing with Drupal 8 and I know I'm going to love it when I get used to working in it but right now I'm in that ...
2
votes
3answers
223 views

How to export users with passwords?

How to export users with passwords? The Users export module cannot help, it export without passwords.
1
vote
1answer
30 views

Where can I find the link between field answers and the user who submitted it?

Noob here. I can't figure out how entity forms stores which user submitted each answer for it's fields on the database. All I can see is a table for each field, and the columns within being: ...
1
vote
1answer
16 views

How do I add a password field during registration?

i am using Drupal 8. I want to set the password field and confirm password field during registration. On admin/configuration this option is not available. Is there a setting to achieve this?
-4
votes
2answers
34 views

drupal 7 link taxonomy term with users

How can i add all my users to a taxonomy term author so that when you start typing an author name it will suggest you names of all users with those letters?
1
vote
3answers
46 views

Hide and Show Menu items using rules

I want to HIDE and/or ENABLE certain menu links that are present on my main navigational bar depending whether users are/ aren't part of any group. I am currently using the Rules module with these ...
1
vote
1answer
30 views

how to make a content type that ties to the user and user can only add one? [closed]

Drupal 8 So I want users to add a actor profile or crew profile or both. I am thinking both would be content types. The user should only be able to add one of each and it ties to the user. Anyone ...
3
votes
1answer
31 views

How do I disable user pictures?

In Drupal 7, you can disable user pictures just by unchecking the appropriate box on the Config -> People screen. How can I disable user pictures in Drupal 8? I see that the default D8 install adds ...
0
votes
0answers
26 views

A view to show/log content/webform submitted by a user? A view to show user history?

I built a Drupal website where a user logs in to the website and is redirected to a webform page to fill a form. He fills a form (or can pick between other forms to fill) and submits it. And then ...
3
votes
1answer
46 views

Correct usage of hook_user_login and hook_user_presave for saving data to user

I have a custom module that syncs LDAP-data to custom user fields (every 24 hours, depending on when the user logs in). Everything seems to be working, but I'm not an expert on PHP and Drupal hooks so ...
0
votes
1answer
20 views

Turn Drupal into a USER API

I'm developing the main website (A) for an organisation in D7 but for other reasons there are microsites (B) related to this website using CMSs. I need to give this other users an endpoint in which ...
1
vote
2answers
7 views

How to edit the People (users admin view) to include filter by user name?

I want my admins to be able to search through the admin users view by the user name. I have a site with a lot of users and periodically the admins want to be able to check on various user fields. Is ...
1
vote
2answers
38 views

Generate new password for users periodically and notify user of new password

I am running a private Drupal 7 site where all user accounts are created by admins and managers. I need to ensure that all users have access to the email account that their accounts were created with. ...
0
votes
3answers
20 views

How do I unpublish a user's content with rules?

How can I unpublish a certain user's content when a certain rule triggers?
0
votes
1answer
18 views

Users who just registered can login & change profile information, but cannot create certain contents until admin lets them

Users who just registered can login & change profile information, but cannot create certain contents until an admin says they can. I know this can't be achieved using the Drupal Approved/Not ...
0
votes
1answer
28 views

Show the logged in user their account status

How do I make a Views block(or by other means) to let the user who is logged in know of their account status i.e. when it is awaiting approval, or was not approved?
0
votes
2answers
29 views

How do you restrict specific content types per user role

I'm trying to restrict specific content types per user role so that some users can only edit certain content. I've tried configuring content access module but can't seem to restrict content types.
0
votes
1answer
18 views

Making a block to show the status of the user account?

How do I use a Views block (or other means) to show the status of the user account, specifically awaiting approval, approved, and not approved ?
1
vote
1answer
16 views

Searching way to **not** send mail after user registration

I want user from a certain domain to be able to register without approval, while others need te be approved by a user manager. I defined a rule that after a new user registers, through text ...
0
votes
1answer
46 views

Add new user via Commerce or Add User account

I am working with a community site where new members should be able become members by purchasing an annual membership using commerce_license. I see 2 ways forward: Members add an account application ...
3
votes
2answers
24 views

Control content access based on value of List (text) field in user profile?

When my users sign up, they must choose whether they are a Man or a Woman, via a List (text) field. If a user chooses "Man", they should only be able to see Woman users on the site. Likewise, if a ...
1
vote
1answer
24 views

How to display the user registration or profile field on the search page?

How can I render/display user profile or registration field on search result page (user search)?
0
votes
2answers
52 views

How do I get the username from the user ID?

I want to print the username knowing just the user ID. How do I achieve this?
3
votes
1answer
31 views

How to access to the user info on the search page?

When I was trying to resolve this question: How to display the user picture on the search page? I found that in the THEME_preprocess_search_result function I can't access to the user information (I ...
0
votes
0answers
17 views

Views relationship based on user viewing node

So this is what im looking to do: I have added a field to my users where they can enter their age in a numerical value. I also have a referenced product which can only show on its referencing node. ...
1
vote
1answer
52 views

How to display the user picture on the search page?

I want to show the user picture on the search page. Currently only its show the user email or name, but I want to show the user profile picture. How can I do that?
0
votes
1answer
18 views

Display user name with flags

I've this code who show the number of users who 'flagged me' (I'm using flag module) $flag = flag_get_flag('poke'); if ($flag) { print "The number of people who voted for this proposal:"; print ...
1
vote
1answer
21 views

Send prefill message PrivateMsg

I need a feature for my website, I want that users can send pre-filled messages to others users. Like in an user's profile page, they just have to click on a button and then, the pre-filled message ...