Jump to content

Recommended Posts

Posted

I've created a list of members using $users, I would like to be able to click on the user and open a profile type page.  Is there a page that already contains this information that I can just pass the user id number to?

Posted

There isn't a page like this that exists in the system unless you are an admin and can view user accounts in Access > Users. However, you certainly could create a template on your front-end that does something similar. You can iterate all users by:

foreach($users as $user) {
  // ... 
}

You can retrieve any user by:

$u = $users->get(123); // user ID; or...
$u = $users->get('ryan'); // user name 

Here is the $user API which shows you what you can do once you've located the user you want to display. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...