inherit
210338
0
Nov 21, 2024 20:26:10 GMT -8
RichardInTN
472
June 2014
richardintn
|
Post by RichardInTN on Jan 1, 2017 19:08:58 GMT -8
I'm not even sure that this is possible, but if it is, it's likely to be through a header or footer addition (or maybe a plugin... don't honestly know, Moderator/Admin, please move this thread if I put it in the wrong place!).
Anyway... on to my request:
My forum has a board strictly for "Announcements and Other Important Stuff" (that's actually that board's title), that I'd like to be able to treat the same way a singular thread can be made an "announcement" and is tacked to the top of every board and sub-board.
Is there a way to cause a whole board to be attached to every board and sub-board (except itself... don't want to risk infinite loop issues), the same way "announcements" are?
Thanks in advance for your consideration, Richard
|
|
inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Jan 2, 2017 15:54:54 GMT -8
Hrm, I'm going to work on this and edit this post later after I come to a conclusion. RichardInTN, you will have to add the board information in manually, however, you can get it appearing on all boards other than the board itself by adding this to the top of Admin > Structure > Layout Templates > Board (right above the sub-boards info): {if $[board.id] != "1"} <!-- CHANGE THE NUMBER 1 TO THE ID OF THE ANNOUNCEMENT BOARD --> <div class="container boards"> <div class="title-bar"><h2>Announcements and Other Important Stuff</h2></div> <div class="content cap-bottom"> <!-- CONTENT TO APPEAR FOR YOUR ANNOUNCEMENT BOARD, YOU WILL HAVE TO LINK EVERYTHING DIRECTLY TO THE BOARD --> <a href="/board/1">YO, this is a link to the announcement board.</a> </div> </div> {/if} If you want the board to look exactly like your current board layout I can help you do this, I would just need to see your board and possibly need the contents of the Board List layout template.
|
|
inherit
210338
0
Nov 21, 2024 20:26:10 GMT -8
RichardInTN
472
June 2014
richardintn
|
Post by RichardInTN on Jan 2, 2017 16:32:17 GMT -8
I'm guessing this will have to go on every theme, individually? (was hoping to avoid that... LOL)
|
|
inherit
210338
0
Nov 21, 2024 20:26:10 GMT -8
RichardInTN
472
June 2014
richardintn
|
Post by RichardInTN on Jan 2, 2017 16:56:13 GMT -8
That code inserts a pretty link, but I can add a link to the menu bar using an existing plugin (appreciate the efforts so far though... that does look great, just not what I was looking for) This is what I'm looking to see (with the header bar above it... in your code, that looked fine). (with a working "new threads/posts" / "no new threads/posts" indicator as well as a working "Last Post" box at the right side, that updates to the current "last post" info on every load... just like on the main board... If it makes coding it easier, the "Threads" and "Posts" boxes don't need to be present.)
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jan 2, 2017 16:56:44 GMT -8
Headers or not, you'd have to manually add it to either every theme, or every board header/footer (it would have to be re-coded a little, as template variables aren't available outside of the template sheets.
I suppose theoretically you could add it to your global headers, but then you'd need to use javascript to hide it from non-board pages, the home page + the announcement board itself.
EDIT: You wouldn't be able to grab board data like that on every board because it's not available. If you're looking inside a board that isn't that announcement board, or away from the home page, then there's no data to actually pull.
|
|
inherit
210338
0
Nov 21, 2024 20:26:10 GMT -8
RichardInTN
472
June 2014
richardintn
|
Post by RichardInTN on Jan 2, 2017 17:07:30 GMT -8
If it's not possible, I completely understand though... want to make that clear (I figured this would be a BIG "ask")
A suggestion for V6 (since it's still in "build") or V7 though (if a way to do it can't be figured out through plugins or headers)... would be to include an "announcements" board that sticks to all boards except itself.
Just a helpful thought!
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jan 2, 2017 17:35:52 GMT -8
If it's not possible, I completely understand though... want to make that clear (I figured this would be a BIG "ask") A suggestion for V6 (since it's still in "build") or V7 though (if a way to do it can't be figured out through plugins or headers)... would be to include an "announcements" board that sticks to all boards except itself. Just a helpful thought! Having the board replicated exactly, with all the board functions, is not possible as far as I know. You may want to try at Plugin Request Board but I guarantee nothing. If you want to make a suggestion for v6, you should do so in the Support Board, as these areas aren't checked for suggestions.
|
|
inherit
210338
0
Nov 21, 2024 20:26:10 GMT -8
RichardInTN
472
June 2014
richardintn
|
Post by RichardInTN on Jan 2, 2017 18:18:54 GMT -8
If it's not possible, I completely understand though... want to make that clear (I figured this would be a BIG "ask") A suggestion for V6 (since it's still in "build") or V7 though (if a way to do it can't be figured out through plugins or headers)... would be to include an "announcements" board that sticks to all boards except itself. Just a helpful thought! Having the board replicated exactly, with all the board functions, is not possible as far as I know. You may want to try at Plugin Request Board but I guarantee nothing. If you want to make a suggestion for v6, you should do so in the Support Board, as these areas aren't checked for suggestions. I'll give it a shot on the plugin request board. I'll also shoot it at the Support board... Thanks for the suggestions!
|
|
inherit
210338
0
Nov 21, 2024 20:26:10 GMT -8
RichardInTN
472
June 2014
richardintn
|
Post by RichardInTN on Jan 4, 2017 0:43:12 GMT -8
deleted...
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jan 4, 2017 0:55:35 GMT -8
this is more appropriate for the plugins board but i believe this would require an ajax call to the server to get updates if the board is ever updated whether by new post or thread.
"content" in this case refers to any data that would need to be referenced by the server, i.e. content not available on user end. your board structures and names are available, but the actual content / totals are not.
i'd ask in the plugins board just to be sure tho.
|
|
inherit
210338
0
Nov 21, 2024 20:26:10 GMT -8
RichardInTN
472
June 2014
richardintn
|
Post by RichardInTN on Jan 4, 2017 1:45:02 GMT -8
I'll put it there too.
ETA: it still seems more "header"-ish than "plugin"-ish to me though. But then, I come from the old school coders... that didn't have fancy things like plugins... Back when Fortran, COBOL and RPG II & III were the dominant languages. LOL.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jan 4, 2017 6:56:22 GMT -8
I'll put it there too. ETA: it still seems more "header"-ish than "plugin"-ish to me though. But then, I come from the old school coders... that didn't have fancy things like plugins... Back when Fortran, COBOL and RPG II & III were the dominant languages. LOL. The reason I stated this belongs in the plugin board is simply because that is where discussions regarding what is and is not appropriate to request of the servers occur. it is the board where coders are the most active. Not many people use header and footer codes anymore because plugins -- which are simply javascript by the way, just in a more user friendly UI -- have allowed for ease of access moreso than h/f codes.
|
|