Log in

View Full Version : Need Help For Postbit Link


tommyxv
12-10-2014, 09:17 PM
I would like to put a link in the user's postbit that will search for threads they created in a certain forum. Can someone help me with the link parameters?

Ozzy...this one is probably a walk in the park for you. ;)

ozzy47
12-10-2014, 09:32 PM
Sure, use this.

<a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw post.userid}&amp;contenttype=vB Forum_Post&include=94&amp;showposts=1
" rel="nofollow">{vb:raw post.username}'s POSTS</a>

94 is the forum ID you want included

tommyxv
12-10-2014, 09:34 PM
Sweet! Thanks!

--------------- Added 1418254647 at 1418254647 ---------------

This finds the their threads in said forum right?

ozzy47
12-10-2014, 09:40 PM
Well what ever forum you set in the link.

tommyxv
12-10-2014, 09:43 PM
Can I set it to find just their threads and not all their posts in said forum? Probably just a tweak right?

ozzy47
12-10-2014, 10:00 PM
Try this.

<a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw post.userid}&amp;contenttype=vB Forum_Post&include=94&amp;showposts=0
" rel="nofollow">{vb:raw post.username}'s Threads</a>

Again. change 94 as needed.

tommyxv
12-10-2014, 10:17 PM
Awesome! Works great. Thanks brother!

ozzy47
12-10-2014, 10:19 PM
Not a problem, glad to help. :)

tommyxv
12-10-2014, 10:34 PM
I'm great at complicating things.. is there a way to use a conditional to show the link in the postbit only if they have a thread/threads in said forum? :) I'm thinking no.

ozzy47
12-11-2014, 12:44 AM
Not without adding a query for every post on the page.

tommyxv
12-11-2014, 04:06 AM
Not without adding a query for every post on the page.

Forget that then. Thanks. :)