Topics related to users, their user profiles, etc.

learn more… | top users | synonyms (6)

0
votes
1answer
12 views

Add location to to profile2 just after the user registers

I am trying to force add a location to a user's profile2 just after the user register's an account. The user's are able to add locations to their profile by using flags, but since there are no ...
1
vote
2answers
38 views

A specific menu for specific user

I'd like to know how can I create a Menu X that appears when a Member X login for example when a simple user login, a Menu with 4 sections appears but when a Member Y for example a user as manager ...
0
votes
1answer
22 views

Resetting admin user details

I forgot my drupal admin password and tried resetting it using forgot password option, but it fails to work( does not send the mail). Drupal 8 is installed on my localhost. I tried manually editing ...
1
vote
1answer
35 views

Set the value of a date field

I am trying to set the value of a user field which is a date. If i check the database, the date is in this format: 2016-06-30T07:52:51 I have the user ID and a new Unix timestamp value that I want ...
1
vote
2answers
15 views

Send mail to the admin when user fails to login

I need to implement the functionality to notify the admin user via email whenever someone fails to login entering wrong password. Basically simple email format containing the username for failed ...
1
vote
1answer
47 views

Add “read more” link on User Profile Teaser Display

I'm using Drupal 8 and I want to have a "Read More" Link on my Userprofile, that links from the Teaser Display to the Full Display. How can I do that? Content Types for Nodes bring the "Links" Field ...
0
votes
0answers
25 views

How can I have an account before registration?

I want to make site on Drupal 8 about some events. For every past event I shall have some information, including people, who was leading that event. But they shuld be able to register on that site, ...
1
vote
3answers
32 views

How to get User Profile form?

How do I get the user Profile form? I tried the following: $form = \Drupal::formBuilder()->getForm(ProfileForm::class); but this results in : Fatal error: Call to a member function ...
0
votes
0answers
14 views

CAPTCHA session reuse attack on login in drupal 8

I have placed recaptcha in user login form. After successfull login it throws following error.CAPTCHA session reuse attack detected. Primary tabs If I login for the first time it is not showing any ...
0
votes
0answers
19 views

How to refer one user with another?

I have two user registration forms, one for user role A and other is B. I have created a vocabulary called company with terms c1,c2,c3. I created a field in user registration form for role A with ...
1
vote
1answer
52 views

Votingapi REST server call internal server error - 'services exception: missing entity ID'

I am trying to post votes to 'fivestar' ratings on my D7 site, through my iOS app (xcode7, swift2). My iOS swift API to post a vote to the votingapi REST services post gives me a 200 status ok, and no ...
2
votes
2answers
274 views

How do I get an article's author email programmatically?

I would like to send an email to authors when their content updated. How can I get the email of author(s)? I think $to = \Drupal::currentUser()->get('mail'); is not my friend.
0
votes
0answers
12 views

Only press login button once? [duplicate]

My company's main web site is in Drupal 7. It's a complicated site, and we are handling authentication separately from Drupal. Our back-end developer asked me to ensure that the Login button can be ...
0
votes
0answers
13 views

Tokens for Profile 2 field

I created a field for users using the Profile 2 module with machine name "field_user_country" I created a block on my user profile page and i need to dynamically display the country of the currently ...
0
votes
1answer
29 views

Redirect user back to the private page after they have logged in

On my site I have a private page that can only be accessed when the user is logged in. If they aren't logged in they are directed to the login page. I want to redirect them back to that page after ...
1
vote
2answers
34 views

How to display users with same select list value on a custom user profile page

Firstly in my site, using Profile 2. i created a 'Select list field' that allows each user to choose his/her country. I then created a custom user profile page using views by following these steps: ...
0
votes
1answer
17 views

Adding functionality to a form button that would load user details / corresponding field data for “autofill”

I have a form that has a address field holding inputs for: name address phone etc. I've added a button on this form/field: Load my data which I would like to load user details/data. On click it ...
3
votes
1answer
38 views

Safe way to authentication users with REST

I can authentication and login user with below code in Jquery $.ajax({ url : "http://domain.com/user/login", type : 'post', data : 'form_id=user_login_form&name=' + encodeURIComponent(...
0
votes
1answer
30 views

How do I use custom user forms?

After creating separate user registration form in Structure > Display Modes > Form Mode and creating those forms in Configuration > People > Manage Forms, how do I use these forms? I want different ...
0
votes
0answers
14 views

Adding a Field collection programatically removes the previously saved field collection's values

I am facing an issue with Drupal's field collection module where I am trying to create the field collection entities programatically. I am currently working with: Drupal 7 version 7.44 , Field ...
0
votes
1answer
25 views

How do I change hashing algorithm?

We are transferring our old data to Drupal 8. Our users' password has been encrypted by MD5 and Drupal 8 hashing system works with SHA algorithm. Which file should I edit to change the hashing system ...
1
vote
3answers
84 views

Argument 1 must be an instance of Drupal\tcdev\Controller\UserAuth, instance of Drupal\user\UserAuth given

I want to programmatically log in a user with a custom controller. I want to pass my data with $_POST to the route (I pass data from a mobile application); if username and password are correct, the ...
0
votes
1answer
61 views

Update from 8.1.3 to 8.1.7 gives me a fatal error on most pages

After attempting to update to version 8.1.5 I received the "The website encountered an unexpected error. Please try again later." error on many pages. I also get the following error in Recent Log ...
1
vote
0answers
24 views

How to add/reference user specific data on/for each node?

I have a content type for which there is a user reference field,I can select multiple users for every node. For each node I want to save some extra information for each selected user. Like another ...
2
votes
1answer
32 views

How to mark a node as read per user?

I'm wondering what the best solution is to mark a node as read per user. The below scenario is what I am trying to achieve: Admin creates a node which requires to be read and confirmed and flags ...
0
votes
1answer
21 views

How to add link to Comment Author's User Profile page

The below code is from the comment.tpl.php file: <div class="comment-avartar"> <?php print $picture ?> <div class="submitted"><?php print render($content['submitted_by'] ['#...
0
votes
0answers
16 views

How do I rewrite results distinctly in a field set to show all results in multiple field settings?

I am creating a view to list schools. And each school can have multiple teachers, which I want to display like this: Metropolis City High School - Clark Kent, Bruce Wayne Smallville Middle School ...
0
votes
0answers
12 views

simplesamlphp_auth not handling AuthnFailed status

My Drupal 7 site is configured to use simplesamlphp_auth 7.x-2.0-alpha2 (the Drupal module) / simplesamlphp 1.14 (the PHP SAML library) to authenticate with a customer's IdP (we are the SP). The ...
3
votes
1answer
30 views

How to allow content tagging by anonymous users?

I have a site, where the main purpose is the involvement of the public in their history. However, we all know some just don't want to register for a user profile with websites. In our case, there are ...
0
votes
2answers
48 views

Automatic username generation

How do I create a user registration form where username field cannot be modified by the user and is auto-generated on the basis of two other fields in form (dynamically). I know there are some ...
1
vote
0answers
18 views

Thumbnails are not created in Drupal 7

When selecting an image to a user profile, the original is saved in files/pictures, however no thumbnail is created. (also other app like Node-Gallery fail to create thumbnails). Directories where ...
1
vote
0answers
41 views

ADFS integration - user session creation without the user creation

I did not find my answer after reading some articles. For the user authentication, my Drupal site needs to communicate with a SAML IdP (ADFS). I have an additional requirement: The user must be ...
0
votes
1answer
21 views

Auto Assign Role weight

I am using Auto Assign Role Module to allow users to choose their role during registration. Block to choose role appears as first block, before the default fields (username, email and password). Is ...
0
votes
1answer
29 views

How do i attach a an element to user account?

I have added a custom form element in login form. I need to link this new element to user account on logging in. I need to add and get entry to the table "users_data" in Drupal 8. This can be done ...
0
votes
0answers
10 views

How to logged in drupal with phone number instead of username [duplicate]

i want to my users connect to her profile with Phone number/Email and password like in facebook i know how to connect with email address, but i want to know now how can i connect to drupal with a ...
0
votes
0answers
18 views

Unable to get the data property profile_id as the parent data structure is not set

I am trying to create a new user programmatically. Here is my code: $user = drupal_anonymous_user(); $new_user = array( 'name' => 'dinesh', 'pass' => user_password(8), 'mail' =>...
3
votes
1answer
35 views

How to replace spaces with dashes when redirecting users through Rules?

I have a rule that redirects users on login to a matching taxonomy term, ie. there is a taxonomy term that is identical to the user name and when a user logs in they are redirected to the url of that ...
0
votes
3answers
40 views

How do I use user_save() to add a new category?

In Drupal 7, there is user_save($account, $edit = array(), $category = 'account'). How do I create a new category for an existing account in Drupal 8? Also, $user = \Drupal::currentUser(); and $...
0
votes
0answers
16 views

Migration doesn't migrate any user account

I am using Drupal 7 module migrate to migrate users from a database table to Drupal users. Here is my migration class: class MyUserMigration extends Migration { public function __construct($...
0
votes
1answer
13 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 ...
5
votes
4answers
210 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
27 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 ...
2
votes
4answers
69 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 ...
1
vote
0answers
17 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
1answer
44 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
25 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 ...
-4
votes
0answers
26 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?
1
vote
1answer
311 views

How Much Time spent on websites of user [duplicate]

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
3answers
37 views

How do I limit the access basing on the user role?

How do I use an access callback to limit the access basing on the user role? For example, in my site I have the following roles: Administrator Authenticate User Anonymous user Teacher I want to ...
0
votes
2answers
65 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 ...