I'd like to know how to display a user avatar in Drupal 7.
I want to display the avatar in full size and as the thumbnail.
You can use something like:
$user_item = user_load_by_name($username); // or user_load( $user->uid )
print theme('user_picture', array('account' =>$user_item));
When I use the user picture is linked to the user profile. I have set my user images to be displayed as thumbnails. I'd like to link the user picture to the full sized picture and display them using lightboxII. It seems to be a very easy task but I couldn't figure out yet how to do it.
Make sure you enable User profiles in the account settings (admin/config/people/accounts) and then you can display them in templates using $user_profile:-
http://api.drupal.org/api/drupal/modules--node--node.tpl.php/7
The user-picture.tpl.php template will let you override how it is output.
Related
I'm not sure if this is possible at all but this is what I want to acheive:
The website I am working on for a martial arts school.I have program pages that give general info on them. Then I have a link that says 'register to view available times' (for a free trial).
I am wondering how to get the user to the specific page for that program's registration. After that, I want to apply the same sort of thing to each program page. E.g. If I am on kids classes > Register > Redirect to Kids Class Times
Womens > Register > Redirect to Women's Class Times.
Also, want the same thing to happen for a 'login' function.
Joomla natively does not support this. You will have to use a third party extension to achieve this. I have used Community Builder (https://www.joomlapolis.com/) before that is both free and open-source that can do what you want.
If i understood your question you like to put some content in to view only for person who is registered on your website.
Here is how to.
1. Create menu item in menu manager >
Add content to your menu. ( modules , articles ) > .
Set the same menu item from Public to Registered.
Button to do so, will be on right side tab: " Details " in menu setting.
2.Then you create a link to these menu or item alias which is public. When the person will click on link the joomla will ask for login and redirect to the menu page.
Hope this helps.
I use Site.forgotPassword to get a link to reset my password
My Q is : how I customize the page that I get ?
Here a print screen of the current page that I want to change:
'http://imgur.com/q4Q2oVf'
there is any why to work this done?(google didnt manage to help me..(
10x alot guys
Menashe Yamin
I have searched and searched and cannot find a solution to my specific problem...
I have a site that users join, and can upload their own videos. I crated a specific video type to handle this upload.
Other users can log in and see this content, they get to the content by clicking on a "profile" link for a specific user, and then it should display all the videos that user uploaded. Currently all I can get to work is display ALL of that content type, or none... I cannot figure out how to just get the user being looked for.
In my URL i have the user name being sent, because other info on the profile page that loads is driven off of that ( looked up in mysql tables and displayed with PHP).
As I mentioned I have a filter that limits to playervideo ( which is my content type) and that works, but as mentioned it displays all not just the user I am looking for.
any help would be much appreciated!!
thanks
I think your question is "How do I make a page for all users that lists content authored by a specific user"
I'd do this with the Views module.
Add a view for all your nodes.
Then add a "relationship" for "Content: Author".
Now add a "contextual filter" for the field "user: uid" with a default argument the userid from the URL.
Or you could try to add a contextual filter of "Content: User posted or commented" with the default value as the UID from the URL.
Cheers!
In dnn6 Would you please go to admin->user accounts and look at the dropdown selector? It shows you can search by username, email, etc but not by first name or last name. Do you know how this dropdown gets poplulated so we can change it?
I don't know why yours wouldn't be populating those fields, I didn't add them to mine, they were already there.
The Population of the dropdown occurs in the \desktopmodules\Admin\Security\Users.ascx.cs file
ProfilePropertyDefinitionCollection profileProperties = ProfileController.GetPropertyDefinitionsByPortal(PortalId, false, false);
So I would start by looking at your Profile Properties defined at the portal level, see if you have First/Last name there. You can find profile properties from the Admin/Site Settings page, on the Users Account Settings tab (under the profile settings section)
If you are using DNN6 (not DNN7) then you'll go to the Admin/User Accounts page and go to the actions for the user accounts module and find the User Profile Properties area.
I want to create a training path for new users accessing my site. This training path must display info bubbles showing what you can do on every page, but only the first time you access it.
So, for example, if a user enters a page where there's an edit button an info box should appear next to the edit button telling the user that he can edit that page.
I will create the script myself, I just want to know what's the best method to check if the user has already seen that box or not. I was thinking about storing in database a boolean value for each info box which will be set to true if the user has seen the box. To save some queries from the DB I think I can also store the same values in localStorage or in Cookies.
What is the best practice for creating user training paths for a website?
The way I suggest is to store user id (ip or username ? ) and a bit value for each bubble like you say.
PS: for your script you can use this:
http://www.maxvergelli.com/jquery-bubble-popup/documentation/
Jérôme