Topics related to users, their user profiles, etc.

learn more… | top users | synonyms (1)

3
votes
1answer
39 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
22 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
38 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
20 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
29 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
57 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
23 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
32 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
25 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
16 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
212 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
votes
0answers
21 views

Want to create playlist for user? [closed]

I have develope music site. Now i want to some features add to the site. User will listening the song then the user will create the playlist and add a song to they playlist.how can i implement this? ...
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
33 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
44 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
30 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
25 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
2answers
17 views

How do I unpublish a users content with rules?

How can I unpublish a certain users content when a certain rule triggers? Is more information needed to answer this question?
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
25 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
45 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
22 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
23 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
50 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 ...
1
vote
1answer
24 views

How can I force administrator to provide a reason when cancelling a user account

I would like to find a way for drupal site administrator to provide a reason when an account has been cancelled / blocked. I would need a radio list such as below, then an automatic email is sent ...
0
votes
1answer
49 views

Display node in user profile page

I created a content type called successful story. In user profile page user-profile.tpl.php, I have inserted a link to create a successful story <?php print l(t('Add a successful story'), ...
0
votes
2answers
19 views

User create its content type

I created a content type called successful story; in this content type, there is a title field and a text field. I have two types of users, Role1 and Role2; Role2 can only create or delete a ...
0
votes
1answer
4 views

How to know which users/nodes failed to import in feeds logs?

I'm trying to convert my implementation from the location to geofield modules. Not finding an easy way to convert the data, I tried the manual way which is to export the data to CSV and then ...
0
votes
1answer
15 views

Users can import youtube video

In my website project, users can import youtube video via youtube url into their profile. But I've no idea which module can do this. Thanks for your help !
0
votes
1answer
30 views

Edit user profile template with module

How can I edit the user profile template in Drupal 7? I've created a module called sporthron in my project. sporthron.module contains : /** * Implements hook_theme(). */ function ...
3
votes
1answer
153 views

Author Fields into a content type template

I'm trying to load some of the information from the author into a node--article.html.twig. So I can provide some information like bio, social media,etc. Similar to this... I can easily get the ...
0
votes
2answers
61 views

Programmatically create a user account

I know that I can programmatically create a user using the following code, in Drupal 7. $new_user = array( 'name' => $name, 'pass' => $sifra, // note: do not md5 the password 'mail' ...
0
votes
1answer
18 views

Problem when visiting users profiles

In my website, users can connect, see their profiles, update their profiles and visit other users profiles So for each users, I created a profile page user-profile.tpl.php But I've some troubles ...
1
vote
1answer
13 views

Issue license without an order

I'd like to issue free Commerce Licenses to files for users of certain roles without creating orders. I haven't been able to find a tool for this in the Commerce License UI. Have I missed it? Or is ...