Topics related to users, their user profiles, etc.

learn more… | top users | synonyms (6)

0
votes
1answer
5 views

Which table contains all of the module permission data?

I'm coming into an existing project and the previous developer totally messed up the site. There was a custom module made for a custom field and it shows up in the People > Permissions page. I cannot ...
3
votes
3answers
130 views

How do I load the user object?

I need to get the global $user object in Drupal 8. I did $account = \Drupal::currentUser(); in the definition of getSubscribedEvents() (a static method) inside a class file. I get the following ...
2
votes
1answer
25 views

How do I implement the following user profile verification?

After the user fills the registration form, if the profile is appropriate, the administrator user approves it, and the profile goes live; if it is not appropriate, the administrator user will reject ...
1
vote
3answers
50 views

\Drupal::currentUser() returns information about the anonymous user, even though I am logged in

I'am trying to check whether a user is logged-in or not; with \Drupal::currentUser()->id() I am getting the user ID for the anonymous user (i.e. 0), even though I'm logged in. How can I resolve ...
0
votes
0answers
9 views

How to set destination URI when migrating files

I have the following case: I'm trying to migrate Drupal 6 profile pictures into Drupal 8 file_managed table. All goes fine except that I'm unable to set new destination URI for column file_managed.uri....
1
vote
0answers
20 views

Ideas for notification of map events occurring in some user defined area?

I'm in charge of a full stack D8 (customer requirement) based project. It's mostly a Leaflet's web mapping application. The Leaflet part itself is almost done and it looks beautiful, fast and powerful....
2
votes
1answer
24 views

Is there a way for Forena to restrict the debugging messages to selected roles?

The Forena data source has the option of displaying the generated queries on the screen via the Debug option. The problem here is that the messages are displayed for all users or reports while this ...
0
votes
0answers
18 views

Remember me module not working? [closed]

On several websites I use the Remember Me module. But whenever I go back to those sites I need to login again. Most of the times I use Chrome or Mozilla on win64. I do not want to change settings in ...
-4
votes
0answers
24 views

I want to give per day offer for room booking using openhotel?

I am using Openhotel module. I want to give different offer for user per day.Is it possible using this module?
0
votes
0answers
16 views

How to implement an option for users to display label fields yes/no? [on hold]

How to implement a option where the user can indicate: Yes/No display me the help labels An extra field in Account Settings is possible but then? Some javascript or a custom module which sets the ...
1
vote
1answer
293 views

How Much Time spent on websites of user

In website have many AUTHENTICATED USER. I want to how many times spent of each user on site. I use login history module, it show only every login time of all user. I use time spent module, but not ...
0
votes
2answers
54 views

How can I display a login and registration form, with an extra field on registration, and hybridauth in a modal?

I need to display a modal login and registration form if a user accesses a particular page. On the registration form, I need to collect a phone number. I need to show the hybridauth login on the ...
0
votes
0answers
26 views

Change field widget type from textfield to select box

There is a text field city(field_city) for user account and it contains lots of data for users. Autocomplete feature is also implemented in this field. Now there a new requirement to change this text ...
0
votes
1answer
10 views

Customize user profile page

I want to fully customize the user profile page. I want to be able to show only the fields that I want, display views, blocks, etc... Some users will be able to see others users pages so I really ...
0
votes
0answers
31 views

I want to book the room session wise like morning and evening? [closed]

I want to book the room using Drupal 7. I am using OpenHotel module. It's working fine. But i need user have to book the room wise morning(12.00AM to 11.59AM) and evening (12.00PM to 11.59PM). I tried ...
0
votes
1answer
41 views

How to hide few default fields for specific user

I want to hide fields such as password, email when a particular user tries to edit few fields of other users. How can I achieve this?
0
votes
0answers
20 views

Change value for taxonomy_reference field in user profile

In user profile I have feild "Industry" of type taxonomy reference. Need change value in him. function my_theme_name_preprocess_user_profile(&$vars) { global $language; $langcode = $language-...
1
vote
0answers
21 views

Disable message response when message was sent to all users of a role

Is it possible to disable the functionality to reply to a message, when this message was sent to all the users of a role? I know it is possible to disable the functionality to reply to messages, but I ...
1
vote
2answers
102 views

How can I create a menu link that shows only to authenticated users?

How can I create an user account menu link that shows up only to registered/authenticated users in Drupal 8? I do not want anonymous users to see it. For example, I want to have "add node" menu link. ...
4
votes
2answers
74 views

How can I block users from registering with disposable email addresses?

I have a site where users send messages to one another using the Private Message module, and they are notified of messages by email. On this site, there are a variety of spammers, scammers, and ...
0
votes
0answers
35 views

Are there any ways to have the users from a site using a version log in on a site using a different version?

Current I am using Drupal 8, which generally works beautifully. However, there are several modules that currently are only available for Drupal 7. Specifically, I am interested in having Drupal 7 ...
0
votes
2answers
35 views

Cannot Disable User Programmatically With user_cancel()

I want to disable user using user_cancel method. //A function that disables a user. function myid_admin_disable_user(){ try{ $edit = array( 'user_cancel_notify' => true,...
1
vote
1answer
50 views

Is there a way to provide the login provision for anonymous user when anonymous commenting is enabled?

I have enabled provision for Anonymous commenting. But it provides the only option of Your Name Email Address Homepage What I would like is, above this, there should be a provision of Login. ...
0
votes
0answers
8 views

How to display users' mail on their profile page in field group?

I use field_group module to display other information about users like alternative email address or telephone number. But I would like to display users' mail ($account->mail) address that they give ...
1
vote
1answer
38 views

Returns 403 error after user login

My site was copied from production to test server. It works on Drupal 7 + Nginx + PostgreSQL. On production, user login works fine, but on test server I receive a 403 error on users/admin (or user/1) ...
1
vote
1answer
17 views

Create a non admin area form to update user form

I'm trying to see if there's an example of a form that isn’t in the admin area and is used to update user details. Is it possible to create this type of form? Where can I find such an example?
0
votes
1answer
12 views

How to add separator field to user profile

I'm creating new fields for the user profile. I have this: Company Name City Logo etc I need to add a new field or some kind of header/separator with this "CONTACT INFORMATION" and then a bunch ...
3
votes
1answer
27 views

customize login block markups

This is sample modal sample of boostrap modal <div id="signin" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="...
0
votes
0answers
6 views

profile page not found for anonymous users except English

Setup: Drupal 7.23, default language=English (with Korean, Spanish), profile pages using Panels. Situation: Logged in users (any language) can view profile pages fine. Anonymous users in English ...
1
vote
1answer
16 views

What is the alternative for user_check_password in drupal 8

What is the alternative for user_check_password(), How I can verify a plane password with a user account?
0
votes
2answers
30 views

Different ways of logging in a user without having them to type anything?

I'm on Drupal 8 and currently looking to replicate similar functionality like: https://www.drupal.org/project/urllogin -- They do not have a D8 version yet. I need to auto login a specific user ...
3
votes
1answer
23 views

Allow anonymous user to search custom account field

I have a custom account field called license number. How do I allow anonymous users to search for that license number and, after they select it, view that user's profile?
1
vote
0answers
23 views

Users restricted from editing own profiles

I found that non-site-admins cannot edit any of the custom fields attached to their profile. I have found the Organic Groups (fixed) feature request "Authenticated users cannot edit his custom profile ...
0
votes
0answers
26 views

How to restrict commenting for users that already submitted their comment? [duplicate]

I need users that have already submitted one comment to a node to be restricted from further commenting on this node. So they only could edit their existing comment.
2
votes
2answers
41 views

Setting anonymous user timezone on page load

I'm developing a radio site where show times are displayed. Since it's an Internet radio station, I need to be able to display times in the user's timezone. I'm able to detect which timezone a user ...
1
vote
0answers
16 views

Show/hide entity registration form fields depending on registration state

I'm using the Entity Registration module on Drupal 7. I want to show/hide custom fields on the registration form depending on the state of the registration. I thought to use the Conditional Field ...
0
votes
0answers
27 views

Share images between users

Please is there a Drupal module that allows users to share images with each other privately? I know the Private Message module allows users to send messages privately to each other. Thats fine, but i ...
2
votes
1answer
28 views

How do you use Drush to import a bunch of users via a csv file from the command line terminal?

I have a csv file of users and I would like to use the "drush user-create" command to create an account with these users and have them blocked by default with no password. I noticed that there is a -...
1
vote
0answers
19 views

How would one upload a list of users via a .csv file into Drupal 8 and have them blocked by default?

The user import modules exists for Drupal 7, but how would one import a list of user from a csv file into Drupal 8? And once they are imported, have them blocked by default. Now when the users come ...
1
vote
1answer
26 views

Two step user approval after registration

I'm new to Drupal, and need help on user registration. A user registers on the site by filling in fields which include: name , DOB, users email(user1), password and official contact email address(...
0
votes
2answers
54 views

management menu invisible for the second administrator

I am using Drupal 7.26, and I need a second administrator user. I created a user who can see the authenticated user's menu, but not the management menu which I (as user #1) can see. How can I fix ...
0
votes
2answers
44 views

Edit a form retrieved using FormBuilder::getForm()

I found out how to get a node creation form, but I want to display and modify it (e.g. delete some fields I don't need). This is my code. public function buildForm(array $form, FormStateInterface $...
1
vote
1answer
47 views

How to combine several form objects into one?

i'm working with Drupal 8 and i want to combine the user form and a node creation form into my custom form. So i've created the form skeleton : <?php namespace Drupal\fritr_register_friterie\...
1
vote
0answers
33 views

Single sign-on between different versions [closed]

I have two websites one in Drupal 7 and other in Drupal 8. I want to implement single sign-on between these two websites. My users are registered in Drupal 7 and I want my users authenticated from ...
1
vote
1answer
36 views

Alter Ubercart Billing/Delivery Panes with User Profile Info

I'm trying to set a user's profile fields into the checkout process. A user must change these data only in own profile. The uc_addresses module is unsuitable for my needs. In the order form I need to ...
0
votes
2answers
29 views

How can I upload a .eps file?

I added an image field to my user on this page admin/config/people and marked the allowed file extensions to be eps, png, jpg. However, it doesn't allow me to upload .eps file, but only .png and .jpg....
2
votes
3answers
180 views

How to give access to the files of node for individual users?

In my website I have these modules enabled: File Entity (fieldable files), Media, Rules, Entity reference. The default download method is: Private local files served by Drupal. So when userA upload ...
0
votes
0answers
7 views

Create user through code [duplicate]

I want to create a user in the system through code not in the admin/people interface. Is that possible? For example: username: fsuu user_role: 'administrator' password: 'fsarewuk'
1
vote
2answers
51 views

Send email to users, except author comments

Hello! I have node with field [field_users] (entity reference) I create rule [after saving new comment] Actions: Loop for field: [comment:node:field-users] inside loop i create var [users:mail] ...
1
vote
0answers
28 views

One Time Login Short Link URL returns 404

I'm new to Drupal and I'd like to generate a login one time short URL and email it. Those tasks are set with a rule. So, I'm using the One Time Login Short Link module but the link sent returns a 404 ...