I created a custom Wordpress page and would like user profile information to be displayed in divs on the page.
For example: A user's profile photo would automatically populate in a div called user-photo, a user biography would automatically be populated in a div called Background, etc.
So, I already have the page structure created. I just need help on how to have certain user information populate in certain divs.
I appreciate any help with this issue. Thanks.
You already have answer to this question. For example here - link. Generally, you must work with functions, that allows you to get user data, for example get_userdata() - codex
Related
I have entity and form for ad creating. Form has Photos field(FileType::class). When I edit Ad, I want to view uploaded photos and remove them from Ad.
But I have idea, and I don't know if it's bad or good. Idea:
On edit form view images. Add to form hidden fields with photo id. If
I remove photo, javascript remove hidden field with some photo id. On
form submit I will check list of photos and list of hidden fields for
photo, and remove photo where hidden field is not exists.
Maybe you can give me better propositions. Thanks.
What about using embedding collection of forms. There is an example on Symfony site which manage tags of post and tags items are dynamic.
I think it can be useful in your case.
This link to cookbook with example of solution http://symfony.com/doc/current/cookbook/form/form_collections.html
I'm trying to build a module that lets users with a certain role post messages that will be displayed for users with a different role. I'd like this to simply be one module that handles both these things, however, the furthest I've gotten is setting up the form to post messages.
I'd like to show the posted messages on the same page as the input form (and hide the form for the unauthorised users), but I just can't figure out what I have to do to show the messages. How hard can it be to display some simple text?
So far I've added an item to the menu that links to the page with a form on it.
You could make use of the boxes module to have online editing of this text that other users will see. If you're set on Using your custom Form you could put your text in a block.
The Content Access module will let you restrict view permission for a given content type to users having a certain role.
For setting up the layout, you might want to put the posted messages in a block or use Panels.
I want to create pages in WordPress, which should show to a specific user only not for specific role.
if a page is created for a specific user like "john". it should be viewed by only john, no other users could not see that page.
My Questions are:
How to create a page for a specific user? (from admin).
Note: while creating page we should assign that page to specific user like "john".
Is there any plugins for this?
Is there any way to do this.
-Srikanth.
I know that it is a bit late but still want to answer in case you need. Try to use http://wordpress.org/extend/plugins/user-specific-content/ plugin. You can customize your pages.
Just an idea:
Why not make a page template for that page? get current user id in the template then show the details depends on the user id? You can check is_user_logged_in() and pull all contents under the if statement and under the else statement you can redirect the user to the login page or just show the message to logged in.
Let me know if everything is clear. Thanks!
This can be done with ease using nav menu plugin and roles creator plugin.you can create roles with names of your clients and show menu items of user pages to specific roles/person
first time here. I have searched all day for my particular issue with no luck.
I have users that have specific roles auto generated (they purchase a game). I want to display files available to their particular role on their user profile page. I just want to know how I can add a generic view or associate a panel with user profile pages. I want this to display for every user, not on a per user basis. Basically it'll act like, say, direct2drive, you log in and go to your user profile basically and see what games you bought. Seems simple but I am having a heck of a time figuring out how to do this.
I am pretty used to using views but I just don't get how to edit the user profiles like I want to.
Thanks!
The simplest way is to install views_attach, and create a view with a Profile display. This displays the View on the user profile pages, rather than on its own page or in a block, and will pass the user's uid to the View as an argument.
Alternatively, if you're already using comfortable using panels, you can go to admin/build/panels and enable the Users panel. This replaces the user profile page with a panel, which you can add views, nodes and blocks to as normal.
I'm building a blog for a client and they need to be able to edit a paragraph of text in the sidebar. I currently have it setup as a 'Better Text' widget which I can quickly edit for them.
I don't want to give them access to the widgets, etc but they want to be able to edit it themselves. Is there an easy way to add a custom write panel kind-of-thing that's independent of the post & page structure?
I know I could create a separate post category and pull the particular post into the template but i'm looking for something different.
Anyone got any ideas? thanks in advance,
Greg.
Why not just add a a custom field for that specific page, and let them have a login which allows them to edit that content?
The point of using a CMS, is to allow the customer to edit the content themselves.