Announcement

Collapse
No announcement yet.

Help with url search...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spinball
    replied
    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!!!

    Leave a comment:


  • James Goddard
    replied
    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

    Leave a comment:


  • Jake Bunce
    replied
    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.

    Leave a comment:


  • James Goddard
    replied
    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

    Leave a comment:


  • Jake Bunce
    replied
    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.

    Leave a comment:


  • James Goddard
    started a topic Help with url search...

    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
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X