inherit
196452
0
Nov 1, 2013 7:40:31 GMT -8
Baller95
What's for dinner?: Food
1,771
July 2013
baller95
|
Post by Baller95 on Aug 17, 2013 10:30:47 GMT -8
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Aug 17, 2013 22:18:33 GMT -8
To clarify based on your thread in support, you still only want this on specific boards?
|
|
inherit
196452
0
Nov 1, 2013 7:40:31 GMT -8
Baller95
What's for dinner?: Food
1,771
July 2013
baller95
|
Post by Baller95 on Aug 18, 2013 3:49:36 GMT -8
Hey RedBassett, yes I want it just on one board. My "Off-Topic" board to be specific
|
|
inherit
196452
0
Nov 1, 2013 7:40:31 GMT -8
Baller95
What's for dinner?: Food
1,771
July 2013
baller95
|
Post by Baller95 on Aug 26, 2013 19:36:50 GMT -8
Bump
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
May 5, 2024 0:06:36 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Aug 28, 2013 5:30:22 GMT -8
Hey Baller95 =] Fairly certain you could do this with the templates. A couple of {if} statements in the Thread Template to check the current board, and whether the user is a guest or not. Let me have a quick play, don't see why I couldn't make this work. =] edit; Have a look at my test board, see if this is what you want; pawltest.proboards.com/The threads in the first board should be inaccessible to guests, and display an error message. The thread in the second board should be fine. =] If that's what you're looking for then I'll post up the code. =]
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 28, 2013 17:41:06 GMT -8
Hey Baller95 =] Fairly certain you could do this with the templates. A couple of {if} statements in the Thread Template to check the current board, and whether the user is a guest or not. Let me have a quick play, don't see why I couldn't make this work. =] edit; Have a look at my test board, see if this is what you want; pawltest.proboards.com/The threads in the first board should be inaccessible to guests, and display an error message. The thread in the second board should be fine. =] If that's what you're looking for then I'll post up the code. =] Paul, thanks for the efforts to create a code. Would it be possible for it to offer a friendly registration / log in prompt instead of an error message please? Even a link to the registration page would work. login.proboards.com/login/3625327/1 etc etc Much obliged.
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
May 5, 2024 0:06:36 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Aug 29, 2013 5:45:17 GMT -8
The error message and error title are completely editable, they were just my filler text for the test. If this is what Baller95 wants then the code I post will have a section explaining how to edit it. =]
|
|
inherit
196452
0
Nov 1, 2013 7:40:31 GMT -8
Baller95
What's for dinner?: Food
1,771
July 2013
baller95
|
Post by Baller95 on Aug 29, 2013 5:48:09 GMT -8
Hey pawl, that is perfect! It's great how we'll be able to customize the message!
|
|
inherit
196452
0
Nov 1, 2013 7:40:31 GMT -8
Baller95
What's for dinner?: Food
1,771
July 2013
baller95
|
Post by Baller95 on Aug 29, 2013 5:51:31 GMT -8
Quick question, does the related topics and stories box have to be there?
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
May 5, 2024 0:06:36 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Aug 29, 2013 6:01:51 GMT -8
Edited to make the code work. =]Right: Thread Template, add this at the very top; {if $[thread.board.id] == "1"} {if !$[current_user.is_member]} <div class="container posts"> <div class="title-bar"> <h2>Error!</h2> </div> <div class="content cap-bottom"> <div style="padding: 10px;"> Error Message </div> </div> </div> <!-- {/if} {/if}And then right at the bottom, add {if $[thread.board.id] == "1"}{if !$[current_user.is_member]}-->{/if}{/if}First things first, look for the two bold purple numbers in there. That's the id of the board you want to target. The blue section is the title for the box, which you can of course edit. The orange section is what Barkley wants to edit. So long as what you enter is HTML (for example, links should be <a href="LINK URL" target="_parent">TEXTDISPLAYED</a>) you can add in whatever you want, and everything should work nicely. =]
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 7:30:10 GMT -8
Right: Thread Template, add this at the very top; {if !$[current_user.is_member]} {if $[thread.board.id] == "1"} <div class="container posts"> <div class="title-bar"> <h2>Error!</h2> </div> <div class="content cap-botom"> <div style="padding: 10px;"> Error Message </div> </div> </div> {else}And then right at the bottom, add {/if} {/if}First things first, look for the bold purple number in there. That's the id of the board you want to target. The blue section is the title for the box, which you can of course edit. The orange section is what Barkley wants to edit. So long as what you enter is HTML (for example, links should be <a href="LINK URL" target="_parent">TEXTDISPLAYED</a>) you can add in whatever you want, and everything should work nicely. =] Thanks very much Paul. Will give it a whirl and report back.
|
|
inherit
196452
0
Nov 1, 2013 7:40:31 GMT -8
Baller95
What's for dinner?: Food
1,771
July 2013
baller95
|
Post by Baller95 on Aug 29, 2013 7:56:38 GMT -8
I'll try this in 40 minutes, thanks a lot pawl!
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
May 5, 2024 0:06:36 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Aug 29, 2013 8:03:13 GMT -8
No worries, let me know how it goes. =]
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 9:15:08 GMT -8
Hi Paul.
I've done as you instructed, and added the board id (presuming board/number is correct)but after testing logged out, there is no obvious change to the visitor view or accessibility.
Is there something else that needs to be done?
Much obliged.
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
May 5, 2024 0:06:36 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Aug 29, 2013 9:20:14 GMT -8
Any chance of a link, and what you've added to the template? Worked on my test forum, but I can try yours viewing as a guest. =]
|
|