Quantcast
Channel: Active questions tagged users - Drupal Answers
Browsing all 633 articles
Browse latest View live

How do I get the username from the user ID? [closed]

I want to print the username knowing just the user ID. How do I achieve this?

View Article


How to show view for submitted result of a webform by a user

How i can show all submitted value of a webform by a user in a view in a tab of a user profile section.Iam using drupal 6.For example when user click on a tab say form on his profile the webform value...

View Article


Display user list with number of comments and forum posts

I want to create blocks to display a list of all users with their number of comments and number of post on forum.In SQL, something like that :SELECT u.name as user, COUNT( n1.nid ) as 'number of post',...

View Article

Define permissions for Actions?

function custom_mod_action_info() { return array('custom_mod_delete_user_cats' => array('label' => t('Delete a users cats'),'type' => 'user','configurable' => FALSE,'triggers' =>...

View Article

Why is the login redirecting to the access denied page?

This question has been asked before but I see only D7 versions of the question, and none of their answers have helped me in D8.I log in perfectly fine with Chrome or Firefox, but IE 11 redirects to the...

View Article


Form Validation. Ensure Placeholder is not submitted value

I have a Drupal registration form with a placeholder set on a first name field. I am trying to get the form to check so that if the placeholder value is the same as the submitted value it will give an...

View Article

How to handle multiple stores and multiple store admin users

Is it possible to create a restaurant(multi-store) online delivery system using Drupal commerce and OG? It has multiple stores(restaurants) in different locations which can be manageable by individual...

View Article

Drupal Project Management. How to set Permissions so user can only see their...

I think the title says it all really. I am using the Drupal Project Management module. However, the "project manager" role that I created is able to see all the projects when it logs it, not just its...

View Article


Image may be NSFW.
Clik here to view.

How to set Permission based on roles for Views Data Export

Using views data export module, I set the permission for different roles in the Data Export in Views like:But I can still see the Export button for all users in front page. However if the role doesn't...

View Article


Sync user roles across websites

I am using Drupal 7. I want to sync my Drupal website roles on 2 websites on the same top level domain, as in, one is example.com, the other is other.example.com, how can i achieve this? Bakery module...

View Article

Permission for translating menu items via the menu config screen

I have a multi language Drupal site, Using i18n and the entity translation approach. Translating menu items from an node works well, but not all the menu items are driven by the nodes.Now as user/1, I...

View Article

Fatal error: Maximum execution time of 240 seconds exceeded in...

I am using multidomain site .After adding a new domain record,I was asked as follows: Content access permission needs to be rebuilt on this page.When I clicked on Rebuild Permissions button,the...

View Article

Redirect user to previous page after registration

I'd like users registering on my website are redirected to the page where they clicked the "create account" button which is in a modal.First, I tried to redirect to an absolute urlI tried...

View Article


Send an email when the roles are changed

I'm trying to send an email to users after their role has changed. So far, the rule is triggered every time the profile is saved (even without role change); I suspect that the data comparison is not...

View Article

How to add profile fields on Ubercart 3 checkout page?

I used to use the uc_profile module to add user profile fields to the D6/Ubercart 2 checkout page, but I cannot find a suitable solution for that same functionality in D7/UC3. Can anyone guide me...

View Article


Filter by field user role permission

I have created View permission field in the events content type. Its field type is Role, so I can select which roles can see the node.This works fine, but when I add events content type in the view...

View Article

create a custom form based on user fields

I created new menu item witch I want to insert a custom form to edit some user fields :$items['user/%user/edit-custom'] = array('title' => 'Knowladge','page callback' => 'drupal_get_form','page...

View Article


display view mode on node based on field setting or taxonomy term of user...

I'm using Display Suite which is awesome and an easier solution if you're not a coder. Now that I have created several view modes I'd like to set a particular view mode that is based on a field setting...

View Article

How do I add fields and hide them from client?

I added fields to a Client profile using Profile2, such as first name and last name. But I added another fields, let's call it "Assigned Consultant". But the "Assigned Consultant" field...I don't want...

View Article

How do I add administrator approval on webform submitted data?

I have the functionality that when any anonymous user submits a webform, then I display the submitted webform data in my new page, but I need admin approval before that submitted data displays on...

View Article
Browsing all 633 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>