-
- 34 Posts
Hi all
I want to show my users profile to other one. I made a Page containing My users name and a link to show profile page. I linked to that page using this code:
<a href="[[~25 &UserID=20]]">aliaqua</a>
So when somebody click on this page it will go to something like this: index.php?id=25&UserID=20
Now i want to get UserID value from url and give it to Profile Snippet to show that user profile.
one more thing. when using friendly url how do this? or when the url contain more things like: index.php?id=25&page=2&UserID=20&is=weblink. How to get my Only UserID value?
thnx
-
- 24,544 Posts
I think a snippet like this would do it:
<?php
/* GetUserId snippet */
return $_GET['UserID'];
Then, just put this where you want the user ID.
-
- 34 Posts
-
- 24,544 Posts
I’m glad it worked. Thanks for reporting back.