I have tried all I could nothing worked, please help
I have tried all I could nothing worked, please help
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
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-
-Enter Config-
{{GET(id)}} will get the id from the url /users?id=12345, returning 12345 in this example.
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 -->
Code: Select all
<LIMIT>1</LIMIT>
<ID>{{GET(id)}}</ID>
Last edited by francisco on Mon Mar 04, 2024 4:21 pm, edited 1 time in total.
Re: I have tried all I could nothing worked, please help
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>
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>