Help with url search...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • James Goddard
    Member
    • Dec 2004
    • 69
    • 3.5.x

    Help with url search...

    Ok, I've done some searching on here and cannot find this particular one. I'd like to bascily do a getnew on subscribed forums. I've tried several urls, and non seem to work:

    http://www.host.com/search.php?do=getnew&forumid=subscribed
    http://www.host.com/search.php?do=getnew&forumid[]=subscribed
    Seems the getnew code requires forumid to be an intiger value.
    http://www.host.com/search.php?do=getnew&forumchoice=subscribed
    http://www.host.com/search.php?do=getnew&forumchoice[]=subscribed
    Seems the getnew code completely ignores forumchoice.
    http://www.host.com/search.php?do=process&forumchoice[]=subscribed&searchdate=lastvisit
    Gives an error because of no search term. Is there any kind of wildcard I can put in the search term?


    If anyone knows how to do this without mods it would be greatly appreciated.

    James
    http://www.thescubastop.com
    http://www.midwestdive.com
    http://www.divepros.org
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    You can exclude forums from the search by adding the red code:

    http://www.yoursite.com/forum/search.php?do=getnew&exclude=X,Y,Z

    Where X,Y,Z is a comma-separated list of forumids you want to exclude.

    Comment

    • James Goddard
      Member
      • Dec 2004
      • 69
      • 3.5.x

      #3
      Originally posted by Jake Bunce
      You can exclude forums from the search by adding the red code:

      http://www.yoursite.com/forum/search.php?do=getnew&exclude=X,Y,Z

      Where X,Y,Z is a comma-separated list of forumids you want to exclude.
      Yea, I'm aware of this. I actually want to use this on a board that is not my own. The problem is that they have approaching 400 forums, and seem to be on a roll adding one a week . Keeping up with the excludes is a daunting task.

      I posted a thread on how to do the exclude thing and people love it, but it sure would be a lot easier if they could just subscribe to the forums they want to see.

      James
      http://www.thescubastop.com
      http://www.midwestdive.com
      http://www.divepros.org

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        There is supposed to be an include option in a future version, where only included forums are listed. I don't know exactly when that will be introduced.

        Comment

        • James Goddard
          Member
          • Dec 2004
          • 69
          • 3.5.x

          #5
          Originally posted by Jake Bunce
          There is supposed to be an include option in a future version, where only included forums are listed. I don't know exactly when that will be introduced.
          Include is a great feature for Admins to put up custom searches, but for the user, doing a get new on subscribed forums would be the feature of choice.

          Consider this an official suggestion. I think it can be done with two simple changes to the getnew code:

          Change:

          'forumid' => INT,

          To:

          'forumid' => STR,


          And change:

          if (isset($forumcache["$forumid]"))

          To:

          if (isset($forumcache[$forumid]) || $forumid === 'subscribed')

          I'll post this over on org, but I'd really like to see it in the main product.

          James
          http://www.thescubastop.com
          http://www.midwestdive.com
          http://www.divepros.org

          Comment

          • Spinball
            Senior Member
            • Oct 2001
            • 589
            • 3.8.x

            #6
            Curious. It seems much more logical to have 'include' rather than 'exclude'.
            I want to create a forum link to a digest of 3 other forums. The digest will be created using a search. I have over 100 forums on my board, and I'm rearranging and adding new ones regularly.
            It would be an easy solution to put 'include' and list 3 ids rather than put exclude and put 97!!!
            Stuart Wright, founder AVForums.com. [strike]13[/strike] 15 million posts and counting.
            vBulletin user from 2001. We stopped upgrading vB at 3.8.2 and sadly we're going no further.

            Comment

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