Topics related to users, their user profiles, etc.

learn more… | top users | synonyms (1)

0
votes
0answers
17 views

Is there a way to test or spoof different user access? [duplicate]

Possible Duplicate: Multi-user/role testing, best practices My current style in testing different user access is opening a different browser or opening a private session and logging into a ...
0
votes
1answer
427 views

Can't show custom user field on nodes

This is a follow up question to: How do I show user attributes on articles? I still can't get the "Twitter URL" field to show up on articles, and got tired of reading through the Fields API docs; I ...
8
votes
2answers
7k views

User activity module

Is there a module that can track and display the user's activities such as posts comments page posts within my Drupal installation? I've found some modules that track the users' activites all ...
5
votes
3answers
4k 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?
4
votes
5answers
2k views

Is it possible to allow duplicate usernames ?

I'm working on a Community Website and 99% of the time a new user has an unique username. But for my requirement, it is required to allow duplicate usernames. Is there a way to change drupal default ...
4
votes
3answers
3k views

How to programmatically list users with a certain role?

What is the preferred way of programmatically generating a list of users with a certain role? (I know how to do it with a database query, but surely there's a higher-level method.)
4
votes
3answers
2k views

User logout when browser closes

Is there a way to automatically log out users when they close a browser? I've tried to set (settings.php) ini_set('session.gc_maxlifetime', 0); ini_set('session.cookie_lifetime', 0); but this ...
3
votes
3answers
1k views

Restrict forum access based on user (user list)

I need to restrict access to forums so that only selected users can access an individual forum. (The users should apply for a forum and a moderator should decide if the user should be allowed to ...
3
votes
4answers
7k views

How to delete 'blocked' users in bulk?

There are a spammer(s) out there constantly creating accounts on my site. The accounts are 'blocked' by default so they do not pose a problem, nor does the spammer gain anything from them. Still, I ...
3
votes
2answers
3k views

How to change the size of the avatar in Drupal 7?

When i visualize user avatar in Drupal 7 using this code: $account = user_load(2); print theme('user_picture', array('account' => $account)); The following image is generated: <a ...
2
votes
2answers
6k 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
184 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
217 views

Programmatically create user reference field

I want to add a user reference field in taxonomy term. I create field and it's instance: $field = ['field_name' => 'mymodule_employee', 'label' => t('Employee'), 'type' => ...
1
vote
3answers
1k views

How can I assign users different profile pictures upon registration based on gender?

My setup: I am on Drupal 7 but not using the default user profile pictures; instead, I have a custom image field, profile_picture, which is attached to the user profile. When users register, they ...
1
vote
1answer
625 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
229 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
872 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
30 views

upload image by user and display images in her/his profile if admin accept uploaded image to display

I want the users to add their images; the administrator should be able to accept the images, which would then be visible on the user profiles. I create the gallery using the help from ...
0
votes
0answers
54 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
124 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
146 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 ...
6
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
530 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
5k 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. ...
3
votes
2answers
4k 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
1k 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
3answers
588 views

How do I redirect users from the registration page to Paypal?

Only users with a "Sign Up Code" are allowed to sign up to the website. If they provide a valid signup code, they will be directed to a sign up page where they can provide user information, and PayPal ...
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
174 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
284 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
3k 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
3answers
4k views

Customize the user-edit page

I want to customize the user-edit page. So in my template.php in my custom theme i direct Drupal to look for my custom template as: function mytheme_theme() { return array( // The form ID ...
2
votes
1answer
811 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
4answers
105 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 ten) of these fields need to be ...
2
votes
3answers
152 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
4answers
986 views

Override user pages with a view

Is it possible to override a user page with a view? I would like to override the user page to show all the nodes created by that user.
2
votes
1answer
2k 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
3k 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
45 views

Extend Drupal 8 User Profiles

I need to build a module to handle Users profiles, and need to extend automatically the basic Drupal user object upon installation. For Drupal 7 I found a way with: field_create_field($field); But ...
1
vote
1answer
35 views

How to load a large amount of users

I have to perform actions on about 15000 users. I'm using a query to retrieve all uids, but the script crashes when using the user_load_multiple $uids = db_select('users', 'u') ...
1
vote
1answer
71 views

User name on blocked user account not visible in view for anonymous users

I have a D7 blog site that I've migrated from a D6 version, and one of the changes was to use an Entity Reference field (field_source referencing the user entity) for the author names so we could ...
1
vote
2answers
991 views

How to check if this page is user Profile Page

I made a custom User Panel which is similar to Wordpress Top Panel in page.tpl.php so this panel will be shown for every logged-in users on the top of their page. But I want to hide that panel in ...
1
vote
1answer
646 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
285 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
527 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
168 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
380 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
1answer
281 views

Ignore “invalid” or incorrectly formatted Emails addresses (on Signup/User Import)

I am importing a large set of users from a old CMS that has about 10k+ users that have no email or badly formatted emails. I want to force this to import, but Drupal wants to validate the email ...
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 ...