PDA

View Full Version : Search threads in specific forum code?


bludhound
04-01-2011, 01:37 AM
Hello, i need a bit of help on coding something.

I want to add a link to all users postbits that will link to a search of threads started by that person in a specific forum.

I already know where i would need to code this but I'm having trouble on the actual code needed to do this. So far I've got this:

<a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw userinfo.userid}&amp;starteronly=1&amp;contenttypeid=1&amp;for umchoice[]=1&amp;childforums=2&amp;">My Creations</a>

But when i click that link it says:

"Please add more constraints to your search. Searches that return all or most of the database are a bad idea"

I'm new to vb code so have no idea if I'm even close to achieving what i want.

Could someone help guide me on how to achieve this?

Thanks.

bludhound
05-29-2011, 03:45 AM
"Bump" after quite a while i still haven't figured out how to do this. Is there anyone who has even the slightest idea of how to do this please?

kh99
05-29-2011, 04:36 AM
Try changing do=finduser to do=process. Also, I think you want post.userid instead of userinfo.userid.

bludhound
05-29-2011, 03:28 PM
Thank you very much. That worked.