Captain John wrote on Dec 23
rd, 2009 at 7:01am:
Derek Barnstorm wrote on Dec 23
rd, 2009 at 2:41am:
I had originally thought about having the setting in adding/editing a board in Manage Boards (which could also work), but there's already 2 Mods (BoardPass and Board Rules) which change that code, so it would have been awkward making compatible Mods for each order of install.
Yep, that would be the place .. being just a check box to enable
Okay, maybe the best place would be under Manage Boards/Categories then. After a quick re-think, I could probably get away with only making three compatible mod files anyway, so it shouldn't be too much of a problem.
Captain John wrote on Dec 23
rd, 2009 at 7:01am:
Derek Barnstorm wrote on Dec 23
rd, 2009 at 2:41am:
I think another reason I didn't do it was because of how RSS is handled in YaBB by default, in that you can only enable/disable and can't select certain boards/cats to exclude, so I left it how it was.
mmm well actually it is governed by Membergroup permissions. If you have access, you can get the feed.
Ah, yes. I should be able to sort that out then, so if you don't have permission to view the board, then the RSS image won't show - that does make more sense.
Captain John wrote on Dec 23
rd, 2009 at 7:01am:
Derek Barnstorm wrote on Dec 23
rd, 2009 at 2:41am:
suggestion of 'Auto Checking' would actually be pretty easy, but if I can get the above idea to work then you could have control over all of the other boards/cats too. What do you think?
This might be the answer ... because the code is already there to check if the member is allowed to get the feed. (The RSS image, not be displayed, if not allowed ......) and the code is there for determining if a board is a GA or Recycle when listing in the boardindex.template. lol sounds easy
If we are going to go with this idea of adding it to Manage Boards/Categories, personally I'm a little hesitant to add auto-detection for the GA and Recycle boards though, I think because there would be a checkbox anyway, then it should be up to the individual Admin if they wanted to enable it for those boards. Would you be happy enough with a checkbox for the GA and Recycle boards too, or are you dead set on the auto-detection idea? I just think that maybe 'some' Admins might want it for those boards, and it would be unchecked by default anyway.
Captain John wrote on Dec 23
rd, 2009 at 7:12am:
Captain John wrote on Dec 23
rd, 2009 at 7:01am:
Derek Barnstorm wrote on Yesterday at 20:41:59:
I had originally thought about having the setting in adding/editing a board in Manage Boards (which could also work), but there's already 2 Mods (BoardPass and Board Rules) which change that code, so it would have been awkward making compatible Mods for each order of install.
mmmm How about just editing the Board Edit to place a checkbox.
Then a call from your routine to see if checked, then process ... the existing routines: (are they sub rotines?) ... because the code is already there to check if the member is allowed to get the feed. (The RSS image, not be displayed, if not allowed ......) and the code is there for determining if a board is a GA or Recycle when listing in the boardindex.template
Yep. This is how it would work. It's just one of those things that involves 'replacing' code rather than adding after/before. But hey, I think we'll try to go with it anyway.
-----------------
So, if I'm on the right track, this is how i will work:
To show the RSS image for individual boards on the Board Index, you have to check a box under the Manage Boards settings. If you don't have permission to view the board, the the RSS image also won't show. (Auto-detection for GA and Recycle boards is yet to be decided).
To show the RSS image for individual categories on the Board Index, you have to check a box under the Manage Categories settings.
Is this sounding alright?