Skip to main content

All Questions

Tagged with
37 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
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
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
1 vote
1 answer
59 views

Profile 2, user relation access? A hard one!

The site contains 2 user types besides admin, lets call the 2 user types "Private" and "Corporate". Private users have a "profile 2" type, where alot of different fields are filled. In a view or ...
Mike's user avatar
  • 33
1 vote
0 answers
38 views

How do prepopulate a Field Type Postal Address with values from a user profile

I'm using address field module (addressfield-7.x-1.2) and I don't know how to prepopulate the address field from users profile2 (profile2-7.x-1.3) addressfield I managed to prepopulate other single ...
hobbsie's user avatar
  • 53
1 vote
0 answers
12 views

Render a content based on access permission

I have two content_types,Type_A and Type_B. I have referenced one field in Type_B to Type_A by using entity reference type. But when the particular Type_A node is not published,then also anonymous ...
Suraj's user avatar
  • 884
1 vote
0 answers
134 views

Show/hide entity registration form fields depending on registration state

I'm using the Entity Registration module on Drupal 7. I want to show/hide custom fields on the registration form depending on the state of the registration. I thought to use the Conditional Field ...
Martijn Verbrugh's user avatar
1 vote
0 answers
48 views

simple fb connect enter custom user field in field group for new users

I need a help with an issue that I am facing in the module. So, on my registration page I have some extra fields like: Country Real name (different from username) Country and real name value is in ...
Chintan Sureliya's user avatar
1 vote
2 answers
196 views

How to implement moderation of data entered through user profile pages?

I am in need of a means of moderating data entered through a user's profile page, or at least for certain specified fields, both upon initial submission and after any revision. These are fields that ...
Aaron's user avatar
  • 11
1 vote
0 answers
30 views

Should I still prevent caching of pages with an Address Field?

On the Address Field module page it says there can be problems with Drupal‘s cache and anonymous authors: Address Field should work on any entity type, but if you use it on an entity type that can ...
unor's user avatar
  • 763
1 vote
1 answer
59 views

Display text according to the access to a field

With field permissions, I restrict the access of a field to certain users. I would like to display some text to inform the user that he has no access to the field. I tried it in node.tpl.php : &...
Hgfdsoiu's user avatar
1 vote
1 answer
120 views

How to make the Rules module block flagged users from sending entityform submissions?

I am trying to create a simple block user functionality on my site. I have a "Block/Unblock User" Flag that other users can block and unblock so they stop getting contact emails from (via entityform) ...
Brandon's user avatar
  • 193
1 vote
0 answers
59 views

How to create user profile preferences for fields visibility?

In my case every registered user should have possibility to change his profile fields visibility settings. Selected field can be visible by all user, visible by friends or visible to no one. I think ...
Codium's user avatar
  • 4,953
1 vote
2 answers
67 views

Different user registration

small question I've created a content type 'Player' with the necessary fields. With the 'Inline Entity Form' module i've added this tot the default user registration form. Now when a user register, ...
DDHOOGE's user avatar
  • 11
1 vote
0 answers
32 views

Drupal 7 and CKEditor edit via js

I used ckeditor without Drupal. There I can call this to configure it in js file: CKEDITOR.replace( 'myEditor', { stylesSet: [ { name: 'header', element: 'p', attributes: { class : '...
Dawe's user avatar
  • 193
1 vote
1 answer
25 views

how do I add check boxes in form created with the Registration module?

I am getting a radio button in my form as default, but I want a checkbox. I am using the Registration and the Entitiy Registration modules. How can I do that?
39467's user avatar
  • 69
1 vote
0 answers
75 views

How can I allow only friends to see a specific user field?

I want to make a simple social network website using Drupal 7. There will be a relationship type like 'friendship', based upon the User Relationships module. After a lot of Googling, I haven't found ...
Ali Poormohammadi's user avatar
1 vote
1 answer
199 views

anonymous User broken

I just migrated the site from sqlite to Postgres, using the drush portabledb-import module I'm getting a error page only when no user is logged in to the site. I can get logged in using the login-...
SMC Tech's user avatar
1 vote
0 answers
187 views

Flags, Entity reference, users and content upload

I am using the entity reference module and flags to achieve a certain use case. Let me elaborate. In my site, there are nodes of type "TASK". They have a flag on them "Take Task". Now a logged in user ...
user145078's user avatar
1 vote
0 answers
517 views

how to render a field group already setup?

Seems like I didn't find any complete resource for doing this anywhere. I already have an accordion group set up http://screencast.com/t/Bpubn8GvvI in a Profile type "account profile" (Profile2 ...
Jayjay D. Luffy's user avatar
1 vote
0 answers
61 views

User custom fields on new content

I have a custom field on the user profile, where the user can add site URLs. I would like to have a select option on the new content form with the values of these URLs when a user wants to add content....
Zoltán Seer's user avatar
1 vote
0 answers
124 views

User profile CCK integer fields

I've built a custom user profile. All the values I want to display are outputting correctly, bar one. The only difference between the fields is the one that doesn't render is an integer, whereas the ...
Ben's user avatar
  • 41
0 votes
0 answers
66 views

How to get a list of users based on the radius?

I want to allow users (workers) to give their address using addressfield and also give a distance or radius they are prepared to travel. It is a job site. When a client posts a job (node) and provides ...
Umair's user avatar
  • 441
0 votes
1 answer
31 views

User referencing another user causes unexpected error

I have a Drupal 7 site with a bunch of users. Some are clients and others are sellers (role). I put an entity reference field field_seller on the user account form which filters users with the seller ...
iamfredrik's user avatar
0 votes
1 answer
358 views

Specified template file for user-profile-form based on role

I use drupal 7.x and field_group and nultiple registration module. How I can use a template file (.tpl) for user-profile-form only based on roles. in other words when a user with A role login to site ...
omiti's user avatar
  • 145
0 votes
2 answers
375 views

Create user profile using content type or add additional fields to the default registration form

I am good enough to build an entire drupal 7 website but my problem goes below: I am in the process of building a very simple drupal website for all volunteers in my country. So every volunteer will ...
user avatar
0 votes
1 answer
91 views

How to make user picture editable without opening edit profile page?

I wanted to allow users to edit profile without going to edit profile page. I found few useful modules like Editable field and Editable fields as link. These modules provide field formatter which make ...
Umair's user avatar
  • 441
0 votes
1 answer
115 views

How to approximate user location on IP&Geoloc maps

I'm using the combinaison of this modules : Address field Geofield Ip&Geoloc Leaflet I need to approximate the location of user's markers on the map for privacy reason. For exemple if somebody ...
Aporie's user avatar
  • 375
0 votes
1 answer
36 views

Why are custom User Account fields not shown after account is saved?

Just upgraded to Drupal 7.54 and now when a user account is saved, any other users (other than admin 1 user) are unable to view or update the custom fields associated with the user account. They just ...
Darren's user avatar
  • 293
0 votes
0 answers
217 views

How to clear cache only for users's field?

I have some cache issues on website when I run some process. I'm looking for a way for clear cache only for user's fields from a custom module. K dn't want clear all cache for save performances. I ...
spacecodeur's user avatar
  • 1,339
0 votes
1 answer
791 views

Integer user form field with min 11 digits and max 11 digits

I need an integer form field with has a validation of min 11 digits and max 11 digits. In other words; the user has to fill in an 11 digit code. How do i make this field and validation? Update: I ...
meez's user avatar
  • 1,333
0 votes
1 answer
33 views

IEF with custom profile2 type not work

I have node reference field attached to profile2 type entity and I can't add new entity to user profile. Even as admin (uid=1). See my screenshoots for details view user profile add node to user ...
Codium's user avatar
  • 4,953
0 votes
1 answer
33 views

How to add an attribute to User reference

I would need to add an attribute to a user_reference field that "explains" the type of relationship. Example: My users are music players and the play in different groups. The same user can play ...
lorenzo's user avatar
  • 307
0 votes
1 answer
40 views

Create entities when user account created

I am looking for a hook to fire off an Entity creation method (for an unrelated item that pertains to the user) when a user registers for the site. I'm divided between ...
Cameron Kilgore's user avatar
0 votes
0 answers
19 views

set permissions on an entity as though it were a node

I am using the Field Collection module to create entities for other nodes. I would like to administer the creation/editing/viewing permissions for these entities using the permissions page in the ...
Hoytman's user avatar
  • 713
0 votes
0 answers
443 views

Autocomplete does not work on the server

I have a organization text field on the user profile. I wrote a module that uses dbpedia's lookup services to generate an autocomplete list on the field. The code works on my local instance using ...
Jayaram's user avatar
  • 791
0 votes
0 answers
946 views

How to make field group (tabs) visible for anonymous users?

In D7 how to make field group (tabs) visible for anonymous users? I have installed and configured, I am able to view the tabs on add content page, but the tabs are not visible for anonymous users. ...
AnAnD's user avatar
  • 616