I have tried all I could nothing worked, please help

Ask anything you want to know
Post Reply
Hariph
Posts: 35
Joined: Tue May 23, 2023 9:33 pm

I have tried all I could nothing worked, please help

Post by Hariph »

Please how do I call out a user, like for example code to display the name of a user on thier profile page
User avatar
francisco
Posts: 50
Joined: Tue Mar 07, 2023 1:48 pm
Location: Brazil
Contact:

Re: I have tried all I could nothing worked, please help

Post by francisco »

Have you tried using the User Lister function?

Let's say you have a /users page and in your /index you have a link like /users?id=12345, add a User Lister function to the /users page as follows:

-Enter Code-

Code: Select all

<h2>%username%</h2>
<p>Role: %role%</p>
<p>Registered: %regdate%</p>
<!-- Use whatever tags you want -->
-Enter Config-

Code: Select all

<LIMIT>1</LIMIT>
<ID>{{GET(id)}}</ID>
{{GET(id)}} will get the id from the url /users=id=12345, returning 12345 in this example.
Post Reply