Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: New Posts - Selected Forum Sort

  1. #1
    Join Date
    Apr 2007
    Location
    No, not all of SoCal is Los Angeles!
    Posts
    9,077

    New Posts - Selected Forum Sort

    There are probably a few of my fellow geeks out there doing this but I thought it might be worth a mention. When I am pressed for time but want to do a quick check on the forum I exclude certain forums from my search. As our software doesn't offer this as a feature, I just use some short cuts like (the first two slashes are reversed to allow the whole URL to post):

    http:\\www.familywoodworking.org/forums/search.php?do=getnew&exclude=36,39

    Now, this is just an example so don't anyone get their feathers mussed. I randomly did this one to give me new posts in everything except "Old Iron" and "Handtool Project Showcase". The 'exclude' operand can be flipped to 'include' depending what you're after. For example:

    http:\\www.familywoodworking.org/forums/search.php?do=getnew&include=1,24,34,35'

    You can attach variations to whatever mechanism works on your OS, Browser, etc. Desktop Shortcuts, Bookmarks, Link flyouts, whatever you normally use for this function.
    Last edited by glenn bradley; 05-10-2008 at 07:42 PM.
    Any sufficiently advanced technology is indistinguishable from magic.
    - Arthur C. Clarke

  2. #2
    Join Date
    Nov 2006
    Location
    Villa Park, CA
    Posts
    1,407
    Glenn - I need a bit more information on how to do this. One thing that makes your posting difficult to understand is that the URL is shortened so I can't see exactly what you did. And when I click on it, the exclude function is used, but the URL that appears in my browser is not what you had, but a search URL.

    Also, what identifies the different sub-forums? It appears that you're using numbers. How do I know what numbers apply to which sub-forum?

    While I have questions, I really appreciate you posting that technique. Thanks!!

    Mike
    Ancora imparo
    Go into the world and do well. But more importantly, go into the world and do good.

  3. #3
    Join Date
    Jan 2007
    Location
    Sacramento, CA
    Posts
    1,367
    Aha! So there's an exclude as well, huh?

    VERY cool. I've been using include on SMC for a long time now, but when they add new forums and don't announce it, I have to revise things. I'll be switching over to exclude asap.
    Jason Beam
    Sacramento, CA

  4. #4
    Join Date
    Oct 2006
    Location
    ABQ NM
    Posts
    30,020
    Mike, let's see if this works without truncating the URL...

    http:// www. familywoodworking.org/forums/search.php?do=getnew&exclude=36,39

    and

    http:// www. familywoodworking.org/forums/search.php?do=getnew&include=1,24,34,35

    Also, here's how you identify the subforum numbers. When you go into a subforum from the main page, the URL in the address box of your browser looks something like this:

    http:// familywoodworking.org/forums/forumdisplay.php?f=16

    The "f=16" is your magic number. (BTW, 16 is the Carpentry subforum.)


    I didn't know this could be done, Glenn. Cool idea.
    When the going gets weird, the weird turn pro. - Hunter S. Thompson
    When the weird get going, they start their own forum. - Vaughn McMillan

    workingwoods.com

  5. #5
    Join Date
    Apr 2007
    Location
    No, not all of SoCal is Los Angeles!
    Posts
    9,077
    Quote Originally Posted by Mike Henderson View Post
    Glenn - I need a bit more information on how to do this. One thing that makes your posting difficult to understand is that the URL is shortened so I can't see exactly what you did. And when I click on it, the exclude function is used, but the URL that appears in my browser is not what you had, but a search URL.

    Also, what identifies the different sub-forums? It appears that you're using numbers. How do I know what numbers apply to which sub-forum?

    While I have questions, I really appreciate you posting that technique. Thanks!!

    Mike
    Sorry Mike. The shortening of the URL is a part of our forum software. I exchanged the // for a \\ and this seemed to allow the whole URL to be posted in my OP (but with the wrong slashes of course). So, now that we have the whole string, you want everything except the numbers at the end. You will want to add the numbers of the forums that you want to include or exclude.

    The numbers begin immediately following the &exclude or &include operand, no spaces, just commas between numbers if you have more than one. You can find out which sub-forum is which number by rolling over it on the main screen (http://familywoodworking.org/forums/index.php) and looking at the info at the lower left of your screen in IE or Firefox. For example if I roll over General Woodworking Q&A, I see this at the lower left of my screen (reversed slashes again): http:\\familywoodworking.org/forums/forumdisplay.php?f=2

    So if I wanted to see all new posts except for General Woodworking, I would use this as the URL (I'm using the reversed slashes so you can see the whole string) http:\\familywoodworking.org/forums/search.php?do=getnew&exclude=2
    Last edited by glenn bradley; 05-10-2008 at 07:41 PM.
    Any sufficiently advanced technology is indistinguishable from magic.
    - Arthur C. Clarke

  6. #6
    Join Date
    Nov 2006
    Location
    Villa Park, CA
    Posts
    1,407
    Thanks Glenn and Vaughn. I understand. That's good information to know. I wasn't aware of the include and exclude functions. Don't know if I'll use it but it's nice to know in case I need it (e.g., hot thread on an issue I'm not interested in).

    Mike
    Ancora imparo
    Go into the world and do well. But more importantly, go into the world and do good.

  7. #7
    Join Date
    Jan 2008
    Location
    Austin TX
    Posts
    405
    Glenn / Vaughn,

    Is the machanism that assigns the numbers to the forums static or open-ended? Let me try asking a better way, if someone creates a new sub-forum does the system automatically assign an unused number? If someone deletes a sub-forum (not sure if this is even an option) will the system re-use the number associated with the deleted sub-forum? And if not, is there any possibility of the system re-assigning numbers to all the sub-forums that came later in the numbering scheme, IF a sub-forum was removed? Just trying to get a handle on the inner workings so I can see if using the same request string would obtain what I'm after.

    Thanks guys,
    Lee Laird
    Austin TX

  8. #8
    Join Date
    Apr 2007
    Location
    No, not all of SoCal is Los Angeles!
    Posts
    9,077
    Quote Originally Posted by Lee Laird View Post
    Glenn / Vaughn,

    Is the machanism that assigns the numbers to the forums static or open-ended?
    I'm am not able to answer that one but, in the time I have been doing this, nothing has changed on me.
    Any sufficiently advanced technology is indistinguishable from magic.
    - Arthur C. Clarke

  9. #9
    Join Date
    Jan 2007
    Location
    Sacramento, CA
    Posts
    1,367
    Lee - the number it uses is the primary key for that forum's record in the database ... USUALLY (and i suspect 99.9999% of the cases we'll ever come acrossed), those numbers are incremental and never reuse numbers that were deleted. So - the long way to answer your question: The number for a forum today will always be the same - unless someone moves all the threads out, deletes it, recreates it, then moves all the threads back in - that'd give the forum a new ID - but from a DB perspective, that's a new forum.
    Jason Beam
    Sacramento, CA

  10. #10
    Join Date
    Oct 2006
    Location
    ABQ NM
    Posts
    30,020
    Lee, I think Jason nailed it. (I'm pretty ignorant about the inner working of the forum software and database.) From the Admin Control Panel, I can assign the order that the forums are displayed, but from what I've see that doesn't change the forum number. Also, the existing forum numbers don't seem to follow much of a pattern, but I suspect they are numbered in the order they were created. I've slept since then, so I don't remember for sure the order in which I created the forums, but I do notice that the parent forum to the General Woodworking area is number 1, and some of the forums added later on have the higher numbers.
    When the going gets weird, the weird turn pro. - Hunter S. Thompson
    When the weird get going, they start their own forum. - Vaughn McMillan

    workingwoods.com

Similar Threads

  1. Selected Lie-Nielsen Tools on Sale
    By Sean Wright in forum Hot Deals
    Replies: 2
    Last Post: 03-19-2011, 06:29 AM
  2. Sort of a Shimmy
    By Vaughn McMillan in forum Off Topic Discussion
    Replies: 9
    Last Post: 05-12-2009, 03:11 PM
  3. New Sub forum idea or sort of...
    By Toni Ciuraneta in forum Off Topic Discussion
    Replies: 18
    Last Post: 06-20-2008, 02:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •