Announcement

Collapse
No announcement yet.

How to search users' threads by prefix?

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • [Forum] How to search users' threads by prefix?

    I'm looking for the search string that can search a certain user's threads he's started that begin with a certain prefix.

    I've got bits and pieces, but here's what I'm looking for.

    This search string gives me all of that user's posts, but I want threads started with the prefix of "Trip Report".



    here's the same string, non linked:

    Code:
    http://www.bogley.com/forum/search.php?do=finduser&userid=333&starteronly=1&contenttype=vBForum_Thread
    So, &userid=333 can somehow be substituted with $userid and I assume the &contenttype=vBForum_Thread needs to be somehow edited or swapped out with &prefixid=Trip_Report but I'm just not getting the right results.

    Any help?

    Thanks.

  • #2
    Add "&prefixchoice[]=xxx" to the end. xxx is the prefix id you gave it in the admincp (not the actual prefix text).

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment


    • #3
      Originally posted by Lynne
      Add "&prefixchoice[]=xxx" to the end. xxx is the prefix id you gave it in the admincp (not the actual prefix text).
      Thanks for the reply.

      So would I put anything in the brackets, or just substitute the xxx? I've tried both and I'm not getting the results I need. Here's my search string, using &prefixchoice[]=Trip_Report

      Code:
      http://www.bogley.com/forum/search.php?do=finduser&userid=333&starteronly=1&contenttype=vBForum_Thread&prefixchoice[]=Trip_Report
      Here's a screenshot of the prefix in admincp

      Click image for larger version

Name:	1.png
Views:	1
Size:	11.5 KB
ID:	3681253

      But no matter what variation of the search string I'm trying, I'm just coming up with threads in general that were started by this user, in this case, "jman". It's not returning only the "Trip Report" prefix threads

      Comment


      • #4
        Whoops, I should have said you need to set contenttype to vBForum_Post, not vBForum_Thread. Otherwise your url is fine.

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools <- awesome site for html/css help

        Comment


        • #5
          Originally posted by Lynne
          Whoops, I should have said you need to set contenttype to vBForum_Post, not vBForum_Thread. Otherwise your url is fine.
          That worked! Thanks Lynne.

          Comment

          Related Topics

          Collapse

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎