Page 1 of 1

Using USER_ID in search

Posted: Sat Jun 04, 2016 6:45 pm
by cedricthecat
Hi folks

I'm making a few site specific edits to our FAQ, and while there, want to make it as easy as possible for users to find their own posts. I've pointed them to UCP>Front Page then "Show your posts" which links to, in my case

/search.php?author_id=55&sr=posts

I need a way to replicate this for the current user, which I can put into help_faq.php, but not sure of the syntax required. I've tried

<a href="search.php?author_id=%user_id%&sr=posts">click here</a>

and

<a href="search.php?author_id=%user%&sr=posts">click here</a>

which take me to the general search page, but not to the posts for the current user

Am I anywhere near what I need or way off beam?!

Thanks in advance for any help :)

Re: Using USER_ID in search

Posted: Sat Jun 04, 2016 9:49 pm
by Lumpy Burgertushie
try this:
search.php?search_id=egosearch&sr=posts

robert

Re: Using USER_ID in search

Posted: Sat Jun 04, 2016 10:06 pm
by cedricthecat
Brilliant! Works a treat - thanks for that! :)