Questions tagged [users]

Craft member accounts.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Is it possible to get a users most popular categories based on Craft products?

So i wanna show the user the product categories that is most popular for that spesific user. Is that possible?
1
vote
1answer
31 views

How to change the Craft 3 activation email?

In my organization many of the employees believe the user activation email sent out by Craft is spam. How do I change the email text and possibly add an image, like our company logo, to the email?
1
vote
2answers
32 views

Frontend Form Search Users based on Tags

Context: I'm trying to build a search form that will filter users based on Name, Skills and School. Users who have any of the search criteria should appear in my results. Name Is a fuzzy keyword ...
1
vote
1answer
11 views

Customizing the destination after user activates the account

I would like to ask about activation e-mail which is sent to new user. Once the user clicks the link, it redirects to homepage. Is it possible to change the destination? I would rather like to make ...
1
vote
0answers
36 views

Assign user to group available even though not allowed? (Craft v3)

Working my way through the CMS to learn in more detail I'm currently at the users / permissions parts of the CMS. Here I just bumped into the following thing I don't understand: I have a Users Group ...
1
vote
1answer
25 views

How can retrieve users custom fields only?

I have created fields for users and also entry type. I want to get only users fields. I have retrieved custom fields but that returns all the fields. $users = \craft\elements\User::find()->id(...
1
vote
1answer
77 views

Change base URL for email activation link?

I am using Craft as a headless CMS and have set base Url/siteUrl to the url of my React/Gatsby site. I needed to do this as my navigation plugin, Navie, appends it by default. But now when users ...
1
vote
2answers
44 views

List authors on front end by total number of entries

I need to output a list of channel authors. There are about 40 authors but I want the 8 authors with the most entries. Not sure how to achieve this. What I have so far: {# get all the itbuzz ...
1
vote
1answer
20 views

Identifying users and site permissions when logged in

If I'm logged in as a user in user Group A, how can I tell which site I am currently viewing? I want to be able to create a multilingual site switcher. But my setup is complex. I have Company A, ...
1
vote
2answers
49 views

Add user to entry user field [RSVP to Event]

I'm trying to add an RSVP button for users to register their attendance at my events. Once they click the button, I would like them to be added to a field called eventAttendees on the event entry. My ...
1
vote
2answers
26 views

How to reference a user related to entry input in if statement

I am having trouble referencing a user in an if statement: {% set otherEntry = craft.entries().section('other').userFieldInOtherEntry("{externalVariable}").one() %} {% if currentUser is relatedTo(...
2
votes
1answer
99 views

How can I retrieve Users of a specific User Group with GraphQL?

I want all the users but filtered by User Group: query getAllUsers { users { id, username } } I cannot see any query parameter on the Schema
1
vote
0answers
160 views

How to authenticate as a Craft user with a frontend tool like Next.js, Nuxt.js, or create-react-app?

We're looking to use Craft CMS as an application platform (handling content storage, user authentication, etc) for an upcoming project while leveraging something like Next.js on the front-end. Here's ...
0
votes
0answers
35 views

Do not send email activation on public registration while keeping the requireEmailVerification setting on

Is there a way to not send Email Activation on public registrations while keeping the requireEmailVerification setting on. Because, I have two type of users. The one is the off street registration (...
1
vote
1answer
34 views

Can I manage/change the default flash message text?

I am looking to customise the default flash message text for certain behaviours but cannot seem to find any reference to them in the code or control panel - does this exist anywhere? And could it be ...
1
vote
1answer
33 views

How to extract a list of “copy password reset urls” for all users?

We are migrating users from a e-commerce site to a new craft commerce 2.x site. Apparently it's a little too confusing for our customers to use the "forgot password" link to obtain a new password. ...
1
vote
1answer
30 views

Simple user query with orderBy not working

Craft 3.3.13 This query does not order users correctly. {% set users = craft.users.groupId(3).orderBy('lastName asc') %} Bug?
0
votes
0answers
12 views

Clear Cache on user profile update

Using a module, would it be possible to clear the cache of a particular user when that user updates their profile? A use case for this is we have a directory of users (authors) but if they update ...
0
votes
0answers
57 views

User Event before Login - check if user has password and logged in before

Is there a User Event before the authentication is fired? I want to show a message if the user doesn't have a password yet and if it's his first login / check if he never logged in before - All in ...
1
vote
1answer
36 views

How to eager load user Images (photoUrl)?

I've been trying to eager load user Photos, but it does not seem to work. Here's my stripped down code: {% set entries = craft.users({ group: 'coWorkers', orderBy: 'lastName', with: [ ...
1
vote
1answer
25 views

Is it possible to populate a user field in the CP using custom logic upon registration?

Whenever a user is registered in the control panel, we'd like to have a special field (something like a special member id) that is populated either by manual entry or, if the field is left empty, run ...
2
votes
1answer
15 views

Permission for “Send an activation email now?” Option

So it looks like site admins have the ability to choose whether or not to send a new user an Activation Email through the "Send an activation email now?" checkbox option on the Register a new user ...
1
vote
1answer
24 views

Default Users Password Regex

Assume a front end registration form. I would like to validate user passwords before posting to the server. I have not been able to find the default password requirements as of yet for craft 3. Could ...
1
vote
1answer
48 views

PHP Login & Sessions without Craft Commerce?

I'm trying to implement this tutorial in my Craft CMS site, I've created all the files and they currently reside in public_html, but twig and the .htaccess of Craft CMS is interfering with it. Does ...
0
votes
0answers
81 views

Import user passwords

I'm using Feedme to import users from one Craft site to another via an XML feed. I'd like to include users passwords too. I thought that {{ user.password|hash }} would do the trick but when I test ...
1
vote
1answer
81 views

How to check if a user's new email has been verified

Background When the user setting Verify email addresses? is enabled, and the user's email is reset by a non-admin the address requires verification before being used as explained here. This does not ...
0
votes
0answers
82 views

Craft 3 - User Upload File

I have a front end form and it's goal is to upload a file that can be seen in the users area in craft 3 backend. How can i do this in craft 3 with twig. I know how to save users input fields like in ...
1
vote
1answer
148 views

Set User's entry field from PHP in Craft 3

From this question, I tried: $user->setAttributes(['products' => $userProductsIds]); return Craft::$app->getElements()->saveElement($user); Where $user is an instance of craft\elements\...
1
vote
1answer
74 views

Move users with Feed Me

Is it possible to move users along with their passwords? I can see the mapping option, but how do I output password in a template (I'm moving data between craft installations). The below code does ...
2
votes
1answer
92 views

Autologin after frontend registration

I have a frontend user account registration form and I d like to auto login the user automatically after the account creation. So the user can choose a subscription plan and pay immediately after, ...
1
vote
1answer
208 views

Craft 3 - login problem on mobile

I have a site which is online now. This site has a set password, log in, etc. features for my users. My users are able to sign in or set password (all user operations) on any browser but when they ...
2
votes
1answer
181 views

Multi-site - Setup remote asset volume to store assets on a per site/folder basis

We've got a Craft 3 (3.1.25) multi-site setup with three sites: Corporate (default) Brand A (brandA) Brand B (brandB) For this install there's 3 users setup with the following access to the sites. ...
1
vote
1answer
53 views

How to enforce capitalisation on users First Name and Last Name

We have developed a Craft 3 site that has user registration. Once a user account has been confirmed and activated, they are shown in a Contacts directory, which other users can search through. As the ...
2
votes
1answer
653 views

Craft 3 best way/steps to create a login client area in frontend

I have to make a website that needs an user area with login. In that area users should be able to upload to admin area or download files from admin area. Each user has its own account that is ...
1
vote
0answers
33 views

Customer (Member) Profile Page

I have a site where I'd like customers to login and be immediately presented with their profile page (and ONLY their profile page). On this page they can: 1. See progress reports on their jobs (...
1
vote
1answer
183 views

How to pragmatically set registered user status to pending and then manually send activation email

I have 2 front end registration forms. One for normal users and one for admins. In each form I have a hidden input with a group value like so: <input type="hidden" name="group" value="ypo"> In ...
1
vote
1answer
61 views

Language Switcher with Users

I have the following setup for a language switcher. I have Member Directory pages which are using Users (rather than Entires or Categories). How can I update this to get it working on these pages? {% ...
1
vote
1answer
27 views

Revoke user permissions but not change the usergroup

I have a client who would like to edit a users permissions. However instead of adding permissions on a per user basis, they would like to remove permissions for that user by unchecking the item. ...
1
vote
2answers
99 views

Commerce 1 get customer from user model

In PHP, is it possible to grab the customer model from a user model? EDIT: I just noticed that it is possible to attach a customer info field to the user. How do we achieve this?
1
vote
1answer
56 views

How would one allow users to edit only some other users entries but not all? Linked via a related field

I have users that are assigned to an organisation. An organisation can have many users. I would like users within the same organisation to be able edit entries (in this case projects) created by a "...
1
vote
2answers
60 views

Querying an array of users

I need to displaying some notifications on a Craft site, and I want to allow users to mark each notification as read. There won't be many users or notifications, so a plugin seems overkill. Instead I'...
1
vote
1answer
32 views

How to determine if a user's email has changed

I'm trying to determine if a user has changed their email address via a front-end form. From what I've gleaned, the best way to do this would be by checking the existing record during users....
1
vote
1answer
51 views

Can I use Craft to Manage Site Access?

User Access Question... Can I use Craft to create users that can only use the site? These users would only be viewers of the content. They would NOT have access to Craft or any of its features. ...
1
vote
1answer
94 views

Access Default User Photo

I'm calling user photo's from my template, but it error's out when trying to obviously call a user photo which is empty. What I'm trying to achieve is if there is no user photo, use the default ...
2
votes
2answers
315 views

How to store custom data into a user

I need some direction in how to store (complex) data into users (best practice) I'm working on a project for a fitness app. I created a structure with 2 levels for workouts where level 1 entries are ...
1
vote
2answers
446 views

Edit Entry Page

I currently have a freeform which allows logged in users to create an entry from the front end. I'm looking to build an edit page for each of these entry's so the user can come back and edit it if ...
0
votes
0answers
51 views

Only allowing users to change their own profiles

I have added public profiles following an answer on this stack exchange and it works great, the problem arises when adding a "User Profile Form" which allows users to update their own settings. The ...
1
vote
1answer
182 views

Log in User (Craft 3)

How can I log in a user in Craft 3 and redirect to a url? This doesn't work: $username = $user->username; $userCode = $user->teamCode; Craft::$app->user->login($username, $userCode); ...
1
vote
0answers
221 views

User account registration using Craft 3

I wanted to build a commerce website using Craft 3. And I wanted to create parent registration form so each parent will have an account to use on the site. Then after they sign in I want them to be ...
1
vote
1answer
197 views

Craft 3 setPasswordPath config not working for front end users

How do I change the link that's sent in a forgot password email that's sent to front end users in Craft 3? The setPasswordPath config isn't working for me. The users don't have access to the CP. In ...

1
2 3 4 5
9