• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Link to specific search

ge66

Active member
#1
I am trying to make a link that searches a specific forum for a specific users all threads in that forum.
I have found the following code that finds a users all threads, is it possible to put a forum id in there somehow?
Code:
<a href="{{ link('search/member', null, {'user_id': $user.user_id, 'content': 'thread'}) }}" rel="nofollow" class="menu-linkRow">{{ phrase('some_phrase', {'name': $user.username}) }}</a>
In XF1.5 I am using the following code to find a users all threads in node 86:
Code:
<a href="{xen:link '?search/search&users={$user.username}&user_content=thread&nodes[]=86'}" rel="nofollow">some_phrase{$user.username}</a>
 

ge66

Active member
#3
I found one way to do it in one template:
Code:
<a href="{{ link('forums') }}86/?starter_id={{$user.user_id}}" rel="nofollow">some_phrase <xf:username user="{$user}" href="" /></a>