show more fields on user/id on Drupal - drupal

I'm searching the way to show custom fields that I've added on the users in the default view for the user/11. It displays only the username and the History.
I can make a view for that but I want to use the original page (user/id).
Thanks for your help !

Take a look under Administration » Configuration » People » Account settings » Manage fields, and locate the panel Fieldname field settings. There you should be able to make the field visible when someone view the user's profile by making the field "Public".

Related

ACF - Not displaying custom fields or groups on Custom post Type on edit / new admin page

Hi there I working on directory kind website with WordPress and AIT-FoodGuide Theme
Now I stuck... here I trying to add Custom Field with ACF But It not showing on custom post type "items" edit page(backend) of users
[note:But this fields visible to administrator only]
Will you please try to find my what is the problem and what possible solution.
Custom Post type is ITEM
Not Showing to all other user e.g author editor role etc..
I Also Checked pulling ACF of normal post type.... and it works for every other user roles too..
ON TRIAL AND ERROR I also figure out it might be it's problem of user capability... Any suggestion which one is ideal?

Wordpress backend design

I have to build an "admin only" page where an admin user can input 3 objects - a person's "name", "description" and a photo. this way they can add/edit/delete people from the website.
I have tried adding "add_menu_page()" to the admin navigation menu and that worked, but I'm kind of lost as to what to do next, or even if I'm on the right track.
I'm assuming I will load the people into the WP database and query the database when i need to display each person.
Yes you are on the right track. Just create a form for the admin where he/she can enter the name, description and photo of a person.
You should make another page using the same method i.e. add_menu_page() and load your WP DB there and provide the option to the admin to delete, edit or add from there.

Create a drupal 7 view for a content type created by all Author which was followed(flaged) by current user

I am using "Flag Follow" module for Favorites(follow) a user. I am following the users well. But i would like to create a view of a content type(blog) which will show all blog post list of those users which is followed(flaged) by current user. Please help me !
You must use a contextual filter to get the uid from URL and to add a relationship with followed users. After that you will be able to show content related with followers.

Why does name textfield not presented in drupal comment form?

In this my new site while entering comments why only Subject textfield is presented to the user? I need Name text field too. How can I do it?
This is sample comment page site link
Under Administer » Content management » Content types Choose the content type where you have these comments show up.
You will see a fieldset called "comment settings", underneath which you find a setting whether a user must, may or may not leave contact information.

Creating a custom content type in drupal

i tried to create a custom content type in drupal but unnecessary features like Title, Menu settings, and Revision Information, URL aliases come with it which i don't really want ..coz it doesn't mean anything to the user..
how can i hide all those things, just preserving the fields(say only 3 fields from CCK) that i want only for this custom content type??
thanks..
You can automatically generate titles using the auto_nodetitle module, which also enables you to remove the title field from the node submission form.
As others have mentioned above, most of the other form elements don't appear to non-admin users anyway.
With auto_nodetitle module, you can hide it, not remove it. Then, simply assign a title like "your-content-type-nid", so it will be different for each node (nid will be different).
That would be a better title than an empty one.
You will need to do a combination of things to do what you want. One of those is to add the module auto_nodetitle suggested by others. You can hide the "Body" by removing the "Body field label" from the edit screen for your custom content type. Lastly is that you will have to do the right settings for your CCK fields.
If you have CCK fields you want them to be able to edit and others you do not want them to edit, you will need to enable the Content Permissions module in the CCK section of the modules admin page. Once you've done that, you can go to the role permissions page and set what roles have access to which fields. While permissions can potentially hide CCK fields from the user, you can also control what fields are in the teaser, node, and RSS views via the "Display fields" section of your content type editing screens.
Menu settings, revision info and URL alias type info is admin stuff. If you create a new user that doesn't have admin permissions, I'm pretty sure they won't see it.
Can try some thing like below using hook_form_alter.
function my_module_form_alter(&$form, $form_state, $form_id) {
if($form_id='company_node_form'){
$form['menu']['#prefix'] ='<div style="display:none">';
$form['menu']['#suffix'] ='</div>';
$form['revision_information']['#prefix'] ='<div style="display:none">';
$form['revision_information']['#suffix'] ='</div>';
$form['author']['#prefix'] ='<div style="display:none">';
$form['author']['#suffix'] ='</div>';
$form['options']['#prefix'] ='<div style="display:none">';
$form['options']['#suffix'] ='</div>';
}
}
You might want to try the NodeFormCols module. It does several handy things, among them is to add a Manage Form button which allows you to hide most fields in an input form.

Resources