Topics related to users, their user profiles, etc.

learn more… | top users | synonyms (1)

2
votes
2answers
5k views

Where does Drupal 7 store custom user account fields?

I imported 8500+ external users from an external user table using Feeds module successfully. Now, I am trying to add some more attributes to these users (ie. age, gender, ...). I proceeded to create ...
2
votes
2answers
177 views

How to approve comments from a user with previously approved comments

WordPress has a useful option for comment moderation in its Discussion Settings panel called "Before a comment appears: Comment author must have a previously approved comment". How can one ...
2
votes
4answers
1k views

Allow users to edit the list of CCK allowed values for “select list”

I have a CCK field ("City") that is a select list, and has manually entered cities in the allowed values list. I added these cities (as the administrator of the website) but I would like to hand ...
1
vote
2answers
702 views

Loading bootstrap.inc in external PHP file in a subdirectory

I'm trying to check if there is a user logged into drupal in a PHP script that resides within a subdirectory of the drupal root. I know that there can be issues with calling the bootstrap anywhere ...
1
vote
1answer
515 views

User login using a token or ID (no password)

How I am able to create a form/link to let assigned/special users to log-in to the system without entering their username and password? I want them to be able to use a link/token to login to system ...
1
vote
1answer
222 views

How do I show user attributes on articles?

I added a custom field "Twitter URL" to each of my users (on the page Home » Administration » Configuration » People » Account settings). I'm trying to display this "Twitter URL" on every article that ...
1
vote
2answers
734 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" ...
0
votes
0answers
29 views

Add taxonomy terms associated to a content with the user profile field on click of a link

I have a taxonomy called "Interest". Also I have added a field called "I_am_interested_in" in the profile2 as term reference to the taxonomy "Interest". Then I created a content type called ...
0
votes
3answers
107 views

Give some users (e.g., teachers) access to nodes created by a unique subset of other users (that teacher's students)

My site has roles for administrators, students, and teachers. Students create nodes, and each student has exactly one teacher. Teachers should be able to view all content created by their students, ...
0
votes
1answer
133 views

How can I make a link from content profile node to it's user account page?

I'm trying to find out how to make a direct link from content profile node view/edit page to it's account page. As an admin role when I check somebody's profile node I sometimes also need to check ...
5
votes
2answers
1k views

How Can I Make File Downloads Available Only to Authenticated Users?

This seems like such a simple question that I feel like I must be missing something obvious. My situation: I'm using Drupal 7, and have created a content type which allows files to be attached. I am ...
4
votes
3answers
495 views

How to create a view that searches nodes and users at the same time?

I'm creating a custom search to my site using Views. I want to search both nodes and users at the same time, with exposed filters like this: [ ] events [ ] bands [ ] products [x] users But ...
3
votes
2answers
3k views

User Registration to appear in a block

I want the user registration to appear in a block in some other page than home, let's say a page called "Sign up." What I want to achieve is the following.
3
votes
2answers
948 views

fetching user photo or image URL

i am trying to fetch loged in users photo to make a welcome block. i have applied a code which is not working $userphoto = $user->picture; so what to do to fetching user photo or image URL, any ...
3
votes
2answers
130 views

Set the role of users when you're not the administrator user

Is it possible to do this? I can't see any permission I can grant for roles. I want to let a user create other users, but only of a specific role.
2
votes
2answers
123 views

remove 'publishing options' and other settings from node/add

I have a role which allows users to add nodes, viewing the admin form, but I don't want the user to be able to see Is there a way to remove it?
2
votes
2answers
3k views

How to customize user edit page drupal 7?

I need to change the order in which things are on the user edit page in Drupal 7. I have tried modifying page-user-edit.tpl.php and user-profile-edit.tpl.php, but it doesn't seem to ever get there. ...
2
votes
2answers
182 views

How to get notified when a user is blocked?

Is there a way to get notified when a user is blocked ? like a hook in user module or ? or there are another way ?
2
votes
2answers
2k 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 ...
2
votes
1answer
596 views

how to get password as submitted by the user in hook_user_insert?

I have extended the core using hook_user_insert. but when i print the $edit argument inside the function i get password fields as encrypted. Is there any way i can get the non-encrypted value of ...
2
votes
3answers
124 views

Unable to use user fields from the global variable $user

I have created a module where I am declaring $user as global variable in hook_init(). I can access the values of $user->x_field in page.tpl.php. When I try to use $user->x_field in ...
2
votes
1answer
1k views

Set a page to be only viewed by users who are logged in

I have created a page that I would like to be visible only for logged in users and admin.
2
votes
3answers
2k views

Using user_load() and user_save() to change the status of a logged out user

I'm fairly new to Drupal, and I am currently working on a Drupal user registration mechanism that involves authentication on a different website. The flow is as follows: - A user registers on a Drupal ...
1
vote
1answer
300 views

Reseed next Drupal User ID (UID)

Is it possible to modify the next User ID when creating new users in a Drupal 7 database? As an example, I have a user at UID 100, I then create and immediately two user accounts (101, 102). When I ...
1
vote
1answer
175 views

Spam users and rules

I'm getting swamped by spam users. Can I use rules to automatically delete users that 1) don't have content/comments, 2) have never activated in a few weeks, and 3) have only activated the same day ...
1
vote
1answer
386 views

User or Content Type for employee directory

I am trying to create an employee directory using drupal 7. I have the following fields for each employee profile: • Name • Department • Job Title • Phone • Email • Optional photo • A ...
1
vote
1answer
162 views

How can I link a text field to a user profile such that I can display nodes on the user profile based on that text field

I'm trying to create a relationship from thin air, at least that's how it feels. I have two account roles. Producers and Instructors. I want to be able to reference nodes (events) created by ...
1
vote
2answers
330 views

Drupal API to check a particular user is logged-in, or not

Is there an Drupal API to check whether a user is currently logged in or not, based on the user ID, such as is_user_login($uid)?
1
vote
2answers
3k views

Export Users with custom fields?

I need to set up a semi-regular export of people who have signed up on our website. We're using Drupal 7. I can do a simple export of the Users table, but that doesn't include the additional custom ...
1
vote
1answer
922 views

Set the reply address for the contact form to user's mail address

I have a Drupal 7 site with only few modifications and I have the /contact form enabled for anonymous and registered users, so that they can contact the admin (i.e. me) easily. What irritates me is ...
0
votes
3answers
28 views

Referencing other nodes created by the same author

I have a site where members can sign up and post an article (standard content type) which I'll call STYLE A. I now need to allow the members to create a different article (another content type) which ...
0
votes
1answer
27 views

Create Drupal User when creating commerce customer

I am using drupal commerce. What I've found out so far is, that when you create a commerce customer, no drupal user is generated. But without a drupal user attached to the customer, you can't use that ...
0
votes
3answers
32 views

Delete useraccount with rules based on value filled during creation of account

Does someone have a solution/description for my wish to delete (fake) user accounts that almost always fill in the (phone-number) string 12345 or 123456. I already have a rule that sends me an ...
0
votes
2answers
114 views

give node author ability to position the image when uploading content

I have a field of type image "COVER IMAGE" in my blog entry content type. The users should have the power to place it wherever they like...top, down,right or left, if not more and re size it. right ...
0
votes
1answer
104 views

Attribute about not allowed on element article at this point

While i checked the markup of my drupal-7 site in http://validator.w3.org/check it shows me a error: error Details: Attribute about not allowed on element article at this point. I have ...
0
votes
1answer
270 views

need to show user firstname and lastname in search result page

I'm very new in drupal, and I have a custom user module where I need to show the user's first name and last name in the search result page. I used some of my code which is throwing a fatal error. ...
0
votes
2answers
395 views

Can't access to password input on registration form

I have a problem. I can't access through module to password field on registration page. function customization_form_user_register_form_alter(&$form, &$form_state, $form_id) { ...
0
votes
2answers
2k views

How to customize registration process in Drupal 7?

I want to customize default registration process in Drupal 7. The registration process includes 3 steps: Show some account types (in a page or form?). For example "personal", "business", ...
0
votes
2answers
846 views

How to create and display user content submission form?

Drupal 7 Could someone point me to the right direction on how to create a submission form through which users can post content? I have a specific content type that I expect the users to fill in while ...
0
votes
1answer
971 views

Add user to OG based on roles?

I am using drupal 7, I want to add users having role 'R' to a OG group 'G'. Is it possible to do that?
0
votes
1answer
46 views

Is there a module/solution for allowing users to block each other on an SNS site?

Is there a module or solution that allows users to block each other on a social networking site? For example, if a user blocks another they will no longer see that user's profile or any content ...