Search query URL username

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • decafdev
    Member
    • Mar 2010
    • 46
    • 4.2.5

    Search query URL username

    I am trying to create a URL query to search for any posts by the user in a certain forum. I have found information how to choose one specific username but i need it to grab the user logged in.

    a href="search.php?do=process&searchuser=$bbuserinfo[username]&exactname=1&forumchoice[]=85">LINK

    this part isn't working.
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74154

    #2
    Where are you putting this information? That would need to be in a template so the $bbuserinfo array is processed.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • man1c
      Senior Member
      • Apr 2005
      • 134
      • 3.8.x

      #3
      Where are you trying to show the link?

      Comment

      • decafdev
        Member
        • Mar 2010
        • 46
        • 4.2.5

        #4
        I have created a Support area in a forum that isnt visible for basic members but thread content is. I am having a link in the footer labelled Support Tickets where i would like the URL to search for threads by that user in the support forum (forumid=85).

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 74154

          #5
          As a link in the footer template you would probably want to use:
          Code:
          search.php?do=process&searchuser=[B]{vb:raw bbuserinfo.username}[/B]&exactname=1&forumchoice[]=85
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          • decafdev
            Member
            • Mar 2010
            • 46
            • 4.2.5

            #6
            Would this work as it is or would i have to break the URL code, add var then continue with the URL code?

            ie:
            Code:
            search.php?do=process&searchuser=" & [B]{vb:raw bbuserinfo.username} & "[/B]&exactname=1&forumchoice[]=85

            Comment

            • Wayne Luke
              vBulletin Technical Support Lead
              • Aug 2000
              • 74154

              #7
              The template isn't going to use any kind of string concatenation in its processing of a link. What was the issue with the code that I provided?
              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API

              Comment

              • decafdev
                Member
                • Mar 2010
                • 46
                • 4.2.5

                #8
                It isn't searching in just forum 85

                Comment

                • Mermaid
                  Senior Member
                  • Mar 2008
                  • 761
                  • 3.6.x

                  #9
                  I'm also having the same issue

                  I am using
                  Code:
                  search.php?do=finduser&userid=25551&forumchoice[]=426&starteronly=1&contenttype=vBForum_Thread
                  It is half working only in that it finds user 256551 recent threads, but all of them instead of just in forum id 426

                  Can anyone please help, suggest what might be wrong?

                  Thanks

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...