inherit
139476
0
Jan 19, 2020 4:24:42 GMT -8
Auburn
I will steal your smile and treasure it
263
April 2009
auburneye
|
Post by Auburn on Oct 30, 2017 12:20:49 GMT -8
Has this been done somewhere? I've been looking but I can't find it.
I know I can modify the Posting Page to add HTML but it will show up on all forum boards.
I need to add some HTML/text above the "create new thread" page of just one of my boards.... to instruct members about what to post on this board.
i'd really appreciate anyone who can point me in the right direction ^^ thanks!
|
|
inherit
206056
0
Oct 22, 2024 12:06:59 GMT -8
adminabp
378
February 2014
adminabp
|
Post by adminabp on Oct 30, 2017 14:56:04 GMT -8
This is not exactly what you are asking for, but it could work for you. The Global Messages Plugin allows board-specific announcements. Requires Yootil above it to work.
|
|
Kami
Forum Cat
Posts: 40,199
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,199
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 31, 2017 8:30:44 GMT -8
I advise against using a plugin for this. Using two plugins (Yootil and the global announcement plugins) in order to make an announcement that can be accomplished with one variable is not an effective use of plugin space or javascript. Auburn - You can still use the posting template to do this, you just need to set up an if statement. In admin > structure > layout templates > posting page, in the "Posting Page" tab, add: {if $[board.id] == 1} <div class="board-announcement"> Your announcement goes here </div> {/if}Replace "1" with the board ID you want to affect; replace "Your announcement goes here" with your announcement. Then in admin > themes > advanced styles & css > stylesheet (tab), scroll down to the bottom and add: .board-announcement { your css goes here }and replace "your css goes here" with whatever CSS you want to use to style the announcement. This part is optional -- if you don't want to change the appearance of the announcement at all, exclude this step (though I recommend keeping the class name in the HTML in case you ever change your mind). Hope that helps!
|
|
inherit
139476
0
Jan 19, 2020 4:24:42 GMT -8
Auburn
I will steal your smile and treasure it
263
April 2009
auburneye
|
Post by Auburn on Oct 31, 2017 11:46:45 GMT -8
thanks spoopy! that sounds just like what i need i tried out briefly
{if $[forum.id] = 3 }
...and i got no results, but i figured it was the wrong syntax. <.<
|
|
Kami
Forum Cat
Posts: 40,199
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,199
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 31, 2017 12:30:51 GMT -8
thanks spoopy! that sounds just like what i need i tried out briefly {if $[forum.id] = 3 } ...and i got no results, but i figured it was the wrong syntax. <.< Yep, 'forum' in this case will refer to the forum as a whole (eg: the $[forum.name] variable is the name of the entire proboards hosted website).
For the sake of syntax (as well as generally speaking on PB hosted sites): - forum = the entire site - category = sections that hold boards - boards = the things that hold threads - threads = the things that hold posts - posts = your message
So if you need something to affect "specific thing that holds the things that have posts inside them" you would want a variable that references 'board' as opposed to 'forum'.
Also I notice you have a space between the "3" and the } -- not sure if this is a typo, but as a note you would need to have no space between those two in the future!
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,521
August 2015
socalso
|
Post by Scott on Oct 31, 2017 13:02:21 GMT -8
Kami, rather than modifying the template, can't the announcement div (and CSS) just be put in the header for that board? This way the message is available regardless of the theme being used as well as slightly simpler?
|
|
Kami
Forum Cat
Posts: 40,199
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,199
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 31, 2017 13:13:41 GMT -8
Kami, rather than modifying the template, can't the announcement div (and CSS) just be put in the header for that board? This way the message is available regardless of the theme being used as well as slightly simpler? No, because this would not go specifically on the "create thread" portion of a specific board but rather the board as a whole. In order to use the H/F to specifically target the posting page, you would need to also utilise javascript to pick up page route.
Additionally, I generally suggest that users put all their CSS in their stylesheet for caching purposes and, in the event of multiple themes, the ability to change the visual appearance of the HTML it targets -- this would go double for a globally used HTML entry (ie one placed in the H/F) so that while the H/F content is the same, the appearance can be adjusted on a per-theme level.
|
|
#e61919
Support Staff
224482
0
1
Nov 22, 2024 17:59:24 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,521
August 2015
socalso
|
Post by Scott on Oct 31, 2017 13:18:23 GMT -8
Kami, rather than modifying the template, can't the announcement div (and CSS) just be put in the header for that board? This way the message is available regardless of the theme being used as well as slightly simpler? No, because this would not go specifically on the "create thread" portion of a specific board but rather the board as a whole. In order to use the H/F to specifically target the posting page, you would need to also utilise javascript to pick up page route.
Additionally, I generally suggest that users put all their CSS in their stylesheet for caching purposes and, in the event of multiple themes, the ability to change the visual appearance of the HTML it targets -- this would go double for a globally used HTML entry (ie one placed in the H/F) so that while the H/F content is the same, the appearance can be adjusted on a per-theme level.
Oh, duh, thanks, I spaced on the 'create thread only page'. Sorry.
|
|
Kami
Forum Cat
Posts: 40,199
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,199
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 31, 2017 13:20:35 GMT -8
No, because this would not go specifically on the "create thread" portion of a specific board but rather the board as a whole. In order to use the H/F to specifically target the posting page, you would need to also utilise javascript to pick up page route.
Additionally, I generally suggest that users put all their CSS in their stylesheet for caching purposes and, in the event of multiple themes, the ability to change the visual appearance of the HTML it targets -- this would go double for a globally used HTML entry (ie one placed in the H/F) so that while the H/F content is the same, the appearance can be adjusted on a per-theme level.
Oh, duh, thanks, I spaced on the 'create thread only page'. Sorry. No worries! It happens ^^;' It was a good suggestion for simplification though, if anyone is looking for simplifying their content for a specific board as a whole.
|
|