1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 A separate "What's New?"

Discussion in 'XenForo Questions and Support' started by MOZ, Jul 26, 2012.

  1. MOZ

    MOZ Well-Known Member

    I wanted to know, is there away to have a separate "What's New?" for a specific node? i am open to code, template changes, anything really.
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    I've had a look, and I can't find a way to make it using a quick code change.

    But I can definitely make an add-on out of it.

    Are you wanting this to replace What's New? Or be an additional search?

    All I'm wondering is what to call it?

    Obviously What's New URLs look like this:

    http://xenforo.com/community/find-new/threads

    Instead of modifying existing code I would expand the FindNew controller with another action, so it would be something like:

    http://xenforo.com/community/find-new/something
     
  3. Digital Doctor

    Digital Doctor Well-Known Member

    Kier designed Xenforo to be a standalone forum.
    What's new is a great example of that. It only shows one content type: threads.

    Others have added content types:
    blog posts, wiki items, gallery items, events, videos, resource manager items, etc etc.

    Yet, what's new oddly doesn't include other content types, and can't be easily tweaked to do so (or so it has been said).

    I wouldn't expect 1.2 to improve what's new. Very unlikely.

    Extending what's new would be great !
     
  4. MOZ

    MOZ Well-Known Member

    What I had in mind. We have a separate category, say 'Alternate'. Now we want to exclude 'Alternate' from What's New and have a separate What's New for 'Alternate'.

    @Chris, checked the WM addon?
     
  5. Digital Doctor

    Digital Doctor Well-Known Member

    What's the likely ratio of What's new for: Entire forum - Alternate : Alternate ?
    10: 1 ?
    200: 1 ?
    How many new Alternate threads daily ? monthly ?
     
  6. MOZ

    MOZ Well-Known Member

    5:1 to 10:1 I would say.
     
  7. Digital Doctor

    Digital Doctor Well-Known Member

    That's alot of alternative posts !
    Do members themselves want more better access to the alternative posts ?

    You do know you can exclude forums from What's new ? Could that be a partial solution ?

    Would it work that alternative posts stand out in What's new ? Like they have a different colored background ?
     
  8. MOZ

    MOZ Well-Known Member

    Let me explain further 'Alternate" was just a name.

    Our forum has a separate "Market" section for buying/selling stuff and there are a lot of threads created, now, since we don't want to spoil the experience for those members not interested in the Market section by having those threads in the What's New (This is taken care of), however those using the Market section request to have a separate 'What's New' to show the happenings in that section.
     
  9. Chris D

    Chris D XenForo Developer Staff Member

    Ok here's what I have. Little bit of tidying up to do template wise but it works:

    1) Install the add-on
    2) The FindNew Controller now has a new action called ThreadsByNode
    3) The URL for the action is http://yoursite.com/find-new/threads-by-node
    4) The above will return an error.
    5) http://yoursite.com/find-new/threads-by-node?node_id=3 will return all new threads from the node with ID 3

    To exclude threads appearing in What's New, you set that option (it's already there) in the node settings.

    My new function ignores that setting, so if you perform http://localhost/find-new/threads-by-node?node_id=3 and you've set node 3 with the setting "Include threads from this forum when users click What's New?" then they will be shown, but remain hidden in the normal What's New section.
     
    Jake Bunce likes this.
  10. MOZ

    MOZ Well-Known Member

    Nice. Let me test it. Then you can put it in RM too :D

    One more thing, how would I do this What's New + Excluded Node ID.:whistle:

    Purpose: Having two What's New, one with excluded nodes, one including them.
     
  11. Russ

    Russ Well-Known Member

    Under the node tree, in that node you want to exclude, then "Forum Options":

    Include threads from this forum when users click "What's New?"
     
  12. MOZ

    MOZ Well-Known Member

    Sorry, didn't get you :confused:
     
  13. Chris D

    Chris D XenForo Developer Staff Member

    I already explained this:

    Basically when you create or edit a forum node there's a tab called "Forum Options".

    In there is a check box that says: "Include threads from this forum when users click What's New?".

    If you untick that, then threads in that forum will not appear in What's New.

    My add-on ignores that setting, so you get exactly what you asked for. Two separate What's New sections.
     
  14. MOZ

    MOZ Well-Known Member

    I understood that, but not what Russ said.
     
  15. Russ

    Russ Well-Known Member

    I was referring to this, you said you wanted to not include a certain forum in the default What's New.

    After you click Display Node Tree, click the forum you want to exclude then Forum Options, then the check box I highlighted.
    tt.png
     
  16. MOZ

    MOZ Well-Known Member

    I know that :p

    I however do want it listed in a separate What's New, as Chris has created.
     
  17. Chris D

    Chris D XenForo Developer Staff Member

    Russ is trying to explain to you exactly the same thing as I'm trying to.

    You need to click that option that Russ (and I) have pointed out. That will stop it from showing in What's New (what you've asked for) but going to find-new/threads-by-node?node_id=X will show the threads regardless of that setting.
     
  18. Chris D

    Chris D XenForo Developer Staff Member

  19. MOZ

    MOZ Well-Known Member

    Nevermind. I got the point.
     
  20. snoopy5

    snoopy5 Well-Known Member

    So I added my forum there, activated in the settings and it shows up in the navigation bar.

    But it seems not to work, if the forum has only subforums. How that? Is this by purpose or did I do something wrong?

    I need this urgently!
     

Share This Page