Skip to main content

All Questions

Tagged with
448 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
3 answers
2k views

Redirecting a registration link in logintoboggan

I've got a register link and a log in link that is augmented by logintoboggan. All I want to do is redirect the register link from the user account form page to a new page I've just made. It seems ...
egggsaplenty's user avatar
4 votes
1 answer
730 views

Can't login using OpenId (core) and Google profile

I'm using the OpenId module (included in core v7) but can't link an OpenId to an existing account. Every time I try to add it an error occurs: Sorry, that is not a valid OpenID. Ensure you have ...
Bart's user avatar
  • 6,944
4 votes
2 answers
654 views

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'...
user avatar
3 votes
0 answers
407 views

How to implement SSO with Oauth2 to login users from another site?

So, I apologize in advance as I'm only now getting familiar with all the Oauth2 terminology. I have an existing Drupal 7 site with its own active user base. The organization I support has recently ...
nizz0k's user avatar
  • 1,182
3 votes
3 answers
157 views

How to control content access based on value of a List (text) field in user profile?

When my users sign up, they must choose whether they are a Man or a Woman, via a List (text) field. If a user chooses "Man", they should only be able to see Woman users on the site. Likewise, if a ...
hockey2112's user avatar
  • 1,244
3 votes
1 answer
47 views

User Edit Page for different elements

I want to customize the user edit page. I want to separate the elements (eg. user password, user picture, user email) and put them each on a separate edit page. I tried the panels module, but that ...
jae.phoenix's user avatar
3 votes
1 answer
712 views

view access permission

I have a problem with view permission, when I make a view in drupal 7 there is an option "access" when I specify the option eg:"view published content" all users that has the role of published content ...
Rahmatullah's user avatar
3 votes
0 answers
220 views

Having an entity registration for an organic group

I have a website where we organise yearly events of 2 - 3 different types. To register users to the event, I'm currently using the entity registration module. (Tell me if you think this is not a good ...
Turion's user avatar
  • 466
3 votes
0 answers
3k views

Clear example of Service module authentication and authorization

I've been playing around with Service module, which it seem the best module for exposing web service specificaly I have REST architecture. Nevertheless haven't been able to clear how does the ...
Necronet's user avatar
  • 227
3 votes
0 answers
273 views

Does a user profile using profile2 work with the metatags module?

I am using the profile2 module. I am looking for a way to set my meta tags based on user profile type. For example, I have teachers, students, and parents as profile types and each of their profiles ...
Ken's user avatar
  • 31
3 votes
1 answer
311 views

How to assign a section to a specific node with Workbench?

I'm creating nodes using a custom modules $node = new stdClass(); $node->type = $link['content_type']; node_object_prepare($node); $node->uid = $user->uid; $node->name = $user->name; ...
samwell's user avatar
  • 221
2 votes
1 answer
49 views

Sending user edit form to user profile

I'm trying to send user edit page to the user profile page (/user), so I can get user profile informations and user edit form on the same page. function hook_preprocess_user_profile(&$vars) { ...
Aporie's user avatar
  • 375
2 votes
1 answer
172 views

Custom access callbacks for user entities not being called

I'm trying to implement some custom access control for user entities, in Drupal 7. I've used hook_entity_info_alter to set $entity_info['user']['access callback'] = 'MYMODULE_user_access_callback'; ...
Monkeybrain's user avatar
2 votes
0 answers
57 views

How to provide permissions to edit a Page Manager Page?

For our Drupal 7 site, I am tasked with creating a role for a non-developer end-user in our organization to manage a page we have that is provided by the Page Manager. By provided by, I mean that this ...
user1359's user avatar
  • 3,949
2 votes
0 answers
39 views

Drupal Content Admins for specific Language

For a new Project with Drupal 7 we have 4 different languages: IT, AT, EN, SP and for each language an Content Admin. We need a solution that the Content Admin see only Nodes of his language for ...
Eurasia-Lab's user avatar
2 votes
1 answer
79 views

How to calculate user scores based on 3 variables to assign an appropriate text label?

I need to calculate a score for users in D7 based on 3 variables and then assign an appropriate text label and a CSS class. So, using data from Voting API, time ago joined, and number of nodes ...
JohnD's user avatar
  • 53
2 votes
0 answers
94 views

How to create a views block that lists all users who bought a product?

I need to create a list of users who purchased a product (uid & email) within that product page for administration so the Admin could have a list of them (using Views). It is similar to how the ...
Ari's user avatar
  • 21
2 votes
0 answers
131 views

Is it possible to search by Realname?

I have the Realname module installed to display the real name of my users in my database rather than the name. ie realname Bob smith however name is bsmith. However the search box only looks for name ...
RRR's user avatar
  • 47
2 votes
2 answers
150 views

node_access check against array of node ids

I am in middle of a problem where i have to check node access of current user against an array of node ids. I have a two content types (A and B) and one contains the reference of other based on a ...
Anurag's user avatar
  • 121
2 votes
0 answers
37 views

D7 - when I change a display suite display mode, shouldn't views using that display mode also change?

I made a change to a display suite display mode, hoping that it would change a view that uses that display mode. It did work while logged in, but as soon as I logged out it didn't work. Yep, I did ...
jvolk's user avatar
  • 21
2 votes
2 answers
191 views

How to use Rules to restrict the edit and delete options if a field has value "approved"?

In my website I have 3 roles: user, tester and admin. When a user submits the content, tester will check and approve it. As long as the content is not "approved", users can edit and delete their own ...
Raj.G's user avatar
  • 77
2 votes
3 answers
570 views

How can I redirect users on login based on their chosen language?

I'm looking to redirect users after they login. The site is multilingual, using English and French. I've tried using the Login Destination module and using Rules, but it has no options for accessing ...
Paul Kerrigan's user avatar
2 votes
0 answers
87 views

Date iCal and Organic Groups: Make an iCal feed (subscription) accessible for a private group outside of Drupal?

I'm making a calendar iCal feed for a private group using Date iCal, Organic Groups and Views. The group events created are private, for that group only, causing a dilemma. It all works great while I'...
Christopher Stevens's user avatar
2 votes
1 answer
53 views

Expose some administrative functions on the front-end

I'm developing a web-app for managing non-profit organizations by extending the functionality of the Drupal CMS. What I want is to have only one administrator account (call it super-admin if you ...
lordscales91's user avatar
2 votes
1 answer
470 views

Changing group visibility needs group content to be resaved when group content visibility field is set to "Use group defaults"

Drupal Commons 7.x-3.2 Organic Groups 7.x-2.1 Content type: Mygroup Field: Group visibility - value: Public Content type: Mypost Field: Group - default value: Mygroup Field: Group content visibility ...
devunder's user avatar
  • 1,194
2 votes
3 answers
590 views

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'...
Boussetta moez's user avatar
2 votes
2 answers
265 views

How to use Rules to perform a monthtly reset of a field for all users accounts?

Once a month I would like to reset a field on all users accounts to 0. At the moment I have a horrible way of doing it. Each time a user logs in the data is scheduled to be changed only for that user....
Paul Trotter's user avatar
2 votes
1 answer
125 views

Show User Information in Block from View

I have a block that shows some data from the User area (People) in Drupal 7. I have a rewrite setup that shows "VACANT" if there is no user selected for the content type. When logged in, I see users ...
jasonflaherty's user avatar
2 votes
1 answer
295 views

How to make user as an exposed filter option in filter criteria of a normal view?

In a view, I want list of users of specific role to be exposed filter option, which will list all users of that role. Example: What I want is in view type like order or customer of ubercart(example), ...
Ram's user avatar
  • 1,278
2 votes
1 answer
520 views

Multipage Registration form, Confirmation Page Security Issues?

I have a multipage registration form working on a site, but the confirmation page is supposed to show some of the information (account name and other data) after the account has been submitted/created....
Jon Paul Vivere's user avatar
2 votes
0 answers
244 views

How to make profile fields based on conditional role selection before account creation?

I'm using Drupal 7.23, autorole module and Profile2 to expand the user profile based on role. In my setup, each role has a different set of fields available to them after they sign up. What I'd like ...
StephanieF's user avatar
2 votes
1 answer
620 views

How to import multi-value fields into profile2 using the Migrate module

I have users each with a profile using the profile2 module. I am using a cookbook based on the Migrate framework to create the users and import profile data. Sample CSV data would be: "member_nr","...
Anthony Bartoli's user avatar
2 votes
0 answers
154 views

Use LDAP objectClass to determine roles

I'm currently working on a portal site in D7 that allows access to several applications. I have created blocks that link to those applications and made them visible to certain Drupal-roles. My users ...
user19640's user avatar
2 votes
0 answers
993 views

Programmatically edit an image form field on a user account

I have added an image field to user accounts using the "Manage Fields" user interface. I am trying to make a form that users can use to change their picture. Below is some code I have tried. In it, ...
Joe_Smith's user avatar
2 votes
0 answers
135 views

How do I set checkboxes programatically in a profile?

I've added a new checkbox list to my profile, and now need to import new profile from an XML file. my checkboxes look like this.... Subscribed [x] A [ ] B [x] C [ ] D If the XML shows they are ...
Rob's user avatar
  • 341
2 votes
1 answer
51 views

How to order a view by access control on files?

I have a view that displays a series of nodes in a blog format. Each node has a file attached to it. How do I make the nodes with files that the user has to login to see come last in the list? I've ...
doub1ejack's user avatar
2 votes
1 answer
1k views

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 ...
hockey2112's user avatar
  • 1,244
2 votes
1 answer
242 views

How can I know whether user has logged in through facebook account or through Site login?

How can I know whether user has logged in through FB or through site's login section? I am giving points to user based on FB login that's why It's important to know. Thanks
rashidkhan's user avatar
2 votes
1 answer
120 views

Compare user field

I would like some help with the following issue. In Drupal 7, I want to activate a newly registered user when his email id is saved in a content field. I have created a content type email. Now ...
Laveena's user avatar
  • 21
2 votes
0 answers
457 views

Role cannot be used to create content without having administer permissions

I am using Organic Groups on a Drupal 7 website. I created a Group content type and a few user roles. I want to make sure that a user role can create and edit the Group content, but not delete it. I ...
argodots's user avatar
2 votes
1 answer
3k views

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 ...
megi's user avatar
  • 56
2 votes
1 answer
587 views

drush perm-grant gives "The drush command 'perm-grant' could not be found"

I am using drush -u 15 perm-grant --roles="site administrator" but the command returns: The drush command 'perm-grant' could not be found. any ideas about that? according this documentation the ...
palindrome's user avatar
2 votes
0 answers
258 views

How can i get groups to which user is group manager in og and profile2?

I am using profile 2 and Organic Groups module on my site . I just need to know what should I put in query to get the group ids to which user is manager. Using this query i am getting the group ids of ...
Shani's user avatar
  • 21
2 votes
2 answers
272 views

Display Block only on users profile2

I am using vies3, profile2 and context to display the users created content on their profile2 page. Using context i can allow the block to be display on the users drupal profile, how can i extend this ...
rborgeous's user avatar
  • 131
2 votes
1 answer
381 views

Jump Menu Style Dropdown To External Links

I'm attempting to create a jump menu of links to external websites, and I would like to be able to order the links within this menu differently depending on the organic group of the current user ...
Manny Adumbire's user avatar
2 votes
0 answers
102 views

When in account creation should I get auth session and ID?

I am using the Services module version 7.x-3.2. Posting a new user object to user/register.json, I get a response with status equal to 200, and an object with only uid and uri. If I then post ...
Joe Beuckman's user avatar
  • 1,111
2 votes
2 answers
260 views

Converting Simplenews Subscribers to Users

I was wondering if there is a way to convert SimpleNews subscribers into actual Drupal users? Currently, I have something similar going on using custom fields in the user-register form, but wanted to ...
Hectron's user avatar
  • 217
2 votes
0 answers
217 views

D7 multi-role comment permission per content type - how-to?

I'd like to extend (...or create) a content type/node that allows: commenting by two or more roles though one role's members can not see the other roles' comments/replies as well as one role that is ...
esdaniel's user avatar
2 votes
2 answers
255 views

Restrict creation of content type by user reference

I have two content types, Location and Event. The Location has a user reference field containing the owner of the Location. The Event type has a node reference field containing the Location node it ...
reen's user avatar
  • 21
2 votes
0 answers
247 views

LDAP cannot load AD groups

I have used LDAP module with Drupal 6 without issues, but now that I am working with Drupal 7 the LDAP module seems to be unable to load the AD groups. I have searched all along the web but I couldn't ...
Terix's user avatar
  • 307

1
2 3 4 5
9