Page 1 of 1
I have tried all I could nothing worked, please help
Posted: Tue Feb 06, 2024 5:43 pm
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
Re: I have tried all I could nothing worked, please help
Posted: Tue Feb 06, 2024 9:14 pm
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.
Re: I have tried all I could nothing worked, please help
Posted: Mon Mar 04, 2024 4:02 pm
by obaydulbc
First of all you need to put a link for go to user profile.
Example in tag code >> <a href="/profile?id={{VAR(USER_ID)}}"> Profile</a>
Or
In user lister
<a href="/profile?id=%id%"> obaydulbc</a>
After complete to make profile url . than work on profile page.
User lister
First box use all tag for show user name phone etc.
Just put config
<id>{{GET(id)}}</id>
<limit>1</limit>