Topics related to users, their user profiles, etc.

learn more… | top users | synonyms (6)

3
votes
2answers
5k views

How can I create page.tpl for user’s profile page?

Searching in Google I found user-profile.tpl.php , but in fact this is the node of profile page while I want to create page.tpl.php foe the profile page. Also page-user.tpl.php includes login page, ...
2
votes
3answers
74 views

Redirect users with specified roles to specified term pages

I want to redirect users to one term according their role; for example, if users have the worker role, redirect them to term/8. How can I do this?
2
votes
2answers
11k views

Unable to send e-mail. Contact the site administrator if the problem persists

*hostname.domain.com is substituted throughout for my actual subdomain* My Setup I have Drupal 7.14 on an OpenVZ VPS running Ubuntu 11.10 (also tested with 10.04). Ubuntu has installed the ...
2
votes
2answers
348 views

What could cause uids to not be numbered consecutively?

I just noticed something weird in a site I'm working on. The first account is user/1 as usual. A second account I created two weeks later is user/20, and a third one a couple days later is user/32. ...
1
vote
2answers
2k views

Role based registration

I have two roles on my site: Visitor, the normal user who can register on our site without any admin approval procedure Business role, the business user who can register and add their business to ...
1
vote
5answers
2k views

drupal_goto ignored in custom form submit handler

I'm working on a site at the moment where some nodes are hidden behind a login. You can see a list of them, but to view them you need to sign in. The sign in is done by showing the user login block ...
0
votes
2answers
674 views

Send user a reminder email after x-number of days if Profile2 field is empty and user has specific role

I have a multi-step user signup process. When the user creates their account, they are assigned role "A" and are redirected to a Profile2 form with various fields. If they complete and save their ...
8
votes
3answers
15k views

How can a user access only one specific node, and not all nodes of that type?

I have a user with view and edit rights to a specific content type. This give the privilege to all users to view and edit all the nodes of that type. But actually, I want to create for each user a ...
10
votes
5answers
11k views

How to redirect anonymous users to login page using Rules module?

I'm using rules module with drupal 7 in order to redirect anonymous users to the login page, so I created a rule with react on event "Drupal is initializing", condition "User has role" with anonymous ...
10
votes
3answers
4k views

How *.drupal.org single sign-on works

I believe there are many ways to achieve single sign-on within drupal. I would like to know the approach that *.drupal.org sites have been using. If I visit any drupalconf sites ...
3
votes
3answers
13k views

Event signup module for D7? [closed]

I'd like to incorporate event signups into my drupal 7 site. We don't need any payment options, just the ability for users to see a calendar of events, register themselves, and be able to see which ...
2
votes
2answers
8k views

Adding custom actions to rules

I am trying to add custom actions, events and conditions to work with Rules interface. I began by adding custom actions by creating a custom module. Here's my code till now. rules_example.info : ...
25
votes
3answers
14k views

Is there a function to get the current user object that avoids accessing the global variable?

I've always gone with this global $user;. However, I seem to remember seeing something in a contributed module that returned the current user object without using the global $user. Does such a ...
12
votes
6answers
6k views

“View unpublished content” permission for non-author

I googled a bit to see if there's a permission-level way to allow a logged-in (but non-admin) user see unpublished content (marked with the CSS node-unpublished class). This appears to be scheduled ...
9
votes
4answers
4k views

Programmatically assign user role

I have multiple roles on my website, and I want to assign a certain role to some users when they register to my site. How can I assign a specific role to new users programmatically when they submit ...
6
votes
2answers
2k views

“Enterprise” authentication, single sign-on and user provisioning for multiple sites

I'm looking for a solution for user provisioning, authentication and single sign-on which will make it easy for me to manage accounts for all the staff at my company across all of the sites we work ...
13
votes
7answers
266 views

Is it possible to make a second “edit account” page that only allows users to edit some profile fields?

So here is my situation: users on my site have to fill out a rather large number of fields upon registration. However, after they register, only four (out of about twenty) of these fields need to be ...
8
votes
3answers
5k views

How to hide the View tab in user page?

In the user page (www.example.com/user), there are [View | Edit] tabs. Is it possible to hide the View tab and leave Edit tab there?
7
votes
3answers
8k views

Redirect /user/login to HTTPS, all other requests to HTTP

I'm using Drupal 7. The login page for my users is located at /user/login, so the default login path. I need that page to be encrypted using SSL so people aren't transmitting their passwords in the ...
7
votes
1answer
1k views

Programmatically impersonating another user without causing the currently logged-in user to log out

How should a module change the value of the global $user, execute its own code, and restore the original value of $user without causing the current user to be logged out if an error happens?
2
votes
2answers
3k views

Programmatically assign new users to OG

My site is sud-divided into organic groups. Groups administrators are allowed to create new users, but I need a way to auto-assign the new user to the same group the creating group administrator ...
5
votes
6answers
4k views

Alternative to Janrain Engage module for login? [closed]

The Janrain Engage module offers interesting features for login via Google, Facebook, etc... but at a high cost for websites having a large number of users. Is there a free alternative solution for ...
5
votes
2answers
11k views

Notice: Trying to get property of non-object

Here is my code: function THEME_preprocess_block(&$variables) { $variables['user_profile'] = menu_get_object('user'); } I print the field "name" using print $user_profile->name, and I ...
5
votes
4answers
898 views

Distributed authentication system (different domains, separatate databases)

We got multiple small websites (microsites) and one main high traffic one with big users base. Right now the requirement is to build authentication system which should allow users to loign with the ...
3
votes
1answer
6k views

How to programmatically set a custom field?

I am trying to programmatically change a custom field in a user object and I'm having very little success. I want to just use a function to set the field for the object, like field_get_items, except a ...
3
votes
2answers
769 views

What are the differences between the various OpenID widgets available?

There seems to be several different widgets for providing easer registration and login. I'm curious how they work and what the difference between them are? For example, there is the OpenID selector, ...
3
votes
2answers
7k views

Creating a userlist in Views (including custom user fields)

I've encountered an issue using Views 3 in Drupal 7. I want to create a user list with a bunch of fields I added to the user profile (using Drupal's core user fields). I need a list of all users, and ...
2
votes
1answer
165 views

How to implement a D7 alternative for the Privatemsg Bulkmail module from D6?

I'm using the modules Private Message, Invite and Organic Groups in Drupal Commons. I get listed with trusted content using Views and need to set private Message button for bulk operation just like ...
2
votes
2answers
2k views

How can I allow users to cancel their accounts without requiring e-mail confirmation?

In Drupal 7, users can cancel their accounts from the account settings page. However, by default this requires e-mail confirmation. There is an option "Require e-mail verification when a visitor ...
2
votes
5answers
4k views

Use part of the user_profile_form on another page

My users enter a phone number on registration. The amount of values that can be entered is set to unlimited. Setting this changes the field so that you can add another field below to add additional ...
2
votes
4answers
849 views

How can I make a block that holds all the information about an articles author?

I would like to add a block into the side bar of all article nodes that contains a mini profile of the user who authored the article. I was wondering if there is an easy way to do this. Thanks
2
votes
2answers
1k views

Force drupal 7 to place “www” in front of urls

there is a problem when a use logs in after typing "domain.com", clicks on a internal link that leads to "www.domain.com/somthing" and they are no longer logged in until they navigate to "domain.com" ...
7
votes
3answers
2k views

Is there a hook after user confirmation?

I want to add a content type after a user registers to the site. I tried hook_user_save() but it saves the content type before the user confirms his e-mail. Is there a hook after e-mail ...
6
votes
4answers
2k views

User URLs based on the usernames

Is there a module that changes the user URL from "user/1" to "user/username"?
5
votes
3answers
3k views

Disable login at all

I want to disable login at all on my drupal site, even better also hide the form. If i need login i will enable it from a ssh session and after working disable again. I will prefer to do this with ...
5
votes
2answers
2k views

External site authentication

I apologize if this has been asked many times before, but I'm wondering if anyone has a link to a good tutorial on implementing a working remote authentication system in Drupal 7. I'm new to Drupal. ...
4
votes
3answers
929 views

Access user fields?

$account = \Drupal::currentUser() loads the user object into $account, but how do I access custom fields I've created on the user object (via the admin UI)? With dpm($account) I can't see any of my ...
4
votes
2answers
3k views

Including multiple authors in Authoring information for a Drupal 7 node

I have a CMS to which many people can possibly provide data. So, I would want to include all the users who have contributed the data for a node by adding new data or moderating existing data, because ...
3
votes
4answers
77 views

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

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 ...
3
votes
2answers
99 views

How to login-redirect users to their profile page on specific days only?

By using Rules Once per Day module, logged in user would be redirected to profile page on specific day. My issue is, every time when user logged in to the site, the user is redirected to profile page. ...
3
votes
2answers
183 views

7.26 /admin, /user not found on Localhost

I am new to Drupal. I developed a site on a server and now migrating it on my personal computer (Windows 8.1). The site is working fine as it should. My problem on localhost is that when I log in to ...
3
votes
2answers
481 views

Flags - Recreate the 'poke' function

I need to create a flags view that displays a list of users that have "poked" the current user with D7, Views 3 and Flag 3. I've read through this question and drupal.org/node/296971, neither ...
3
votes
2answers
4k views

Views and contextual filter as user id from url

I want to create some views that shows the content created by the user, content flagged by the user and so on. I also need that when user a views user b then user a can see the content created by user ...
3
votes
2answers
735 views

How can I get the real password via hook_user_update()?

I want to change the current user password, and get the new password(the real password, not md5 encryption) when edit the account profile via user profile form(e.g.: example.com/user/1/edit) and save. ...
3
votes
2answers
3k views

Disable email registration requirement in Drupal 7

I've already removed e-mail validation, but the requirement that each user supply a unique e-mail address needs to be removed too. How can I go about doing that without resorting to a messy workaround ...
3
votes
2answers
2k views

How to let Drupal use two databases

I want to use an admin specific page to insert or remove new users, instead of using the Drupal administration panel. How can I prescind from the Drupal default database and insert the users' ...
3
votes
2answers
489 views

How can I authenticate against a non-drupal database?

We have a non-Drupal intranet system built on php/mySQL. We're adding a Drupal install to handle some social functions, and would like (if possible) to not duplicate all of our login information. Is ...
3
votes
1answer
260 views

Login from one Drupal instance on another Drupal instance

I'm working on a project that has some unconventional requirements. Basically, I have two sites, each one with an individual Drupal installation and instance. The main site (I'll call it "master") ...
3
votes
4answers
2k views

integration Webform and registration module

I want integrate Webfoem and registration user module.so , When a user fill a webform, some fields in that webform put in user table , and he/she insert in user list in my site. and I should active it ...
2
votes
2answers
560 views

Delete user and change Content Author

Is it possible to Delete the user and keep its content as created by the one who deleted the user. Suppose, abc is a user as content creator/editor only and have created 2 contents. abc got fired ...