inherit
186006
0
Mar 30, 2019 4:02:27 GMT -8
smashwords2
Breathing
244
November 2012
smashwords2
|
Post by smashwords2 on Dec 8, 2012 17:46:27 GMT -8
Is there a way to code a template so Guests can View Board but not the Threads in the Board?
Lately I've been seeing more and more sites - Facebook and Twitter are two well-known sites - that don't allow guests to view/create content unless they are a member.
Although this isn't something I'd use, but might in the future if it were available, there may be other Admins who would like this function on some parts of their forum.
It would allow guests to see Threads so they can get an idea if the site is what they are looking for, but require membership to view or post.
When a guest clicks on a displayed thread a notice would appear advising guest that free membership is required to access this portion of the site (or something like that).
|
|
inherit
177461
0
Apr 21, 2019 7:46:59 GMT -8
Speed33
168
March 2012
speed33
|
Post by Speed33 on Dec 10, 2012 18:49:55 GMT -8
Try setting your permissions in structures / categories and boards
|
|
inherit
186006
0
Mar 30, 2019 4:02:27 GMT -8
smashwords2
Breathing
244
November 2012
smashwords2
|
Post by smashwords2 on Dec 10, 2012 21:28:10 GMT -8
Try setting your permissions in structures / categories and boards Thanks, Speed33, but I tried that before posting. I couldn't find a combination for restricting guests viewing actual Threads using the current Permission system Admins can restrict/grant permissions to view the board, access the board, create threads on the board, reply to threads on the board, or create polls on the board, but there is no setting to restrict/grant permission to view threads. If an admin set View the board to Everyone, then sets Access the board to Members and Staff, then visitors/guests can view that board's threads - which is not what I want. I thought some admins might like the ability to have guests access a board and view the board and the threads in that board, but set the Permissions so guests/visitors can't click on a thread and see what additional content is contained therein. The way the Permissions system is designed now doesn't allow that to happen.
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Dec 11, 2012 21:31:17 GMT -8
I would imagine that this is possible using the templates, in a manner similar to hiding profiles from guests. I'll have a play after work tomorrow, don't think it should be too hard at all. Posting here so that I don't forget. =]
|
|
inherit
186006
0
Mar 30, 2019 4:02:27 GMT -8
smashwords2
Breathing
244
November 2012
smashwords2
|
Post by smashwords2 on Dec 13, 2012 15:17:58 GMT -8
Okay, so having a play now. Got it most of the way there, just playing with the formatting for your custom message and we're good. =] Thanks, Paul. When do you find time to relax?
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Dec 13, 2012 15:18:55 GMT -8
edit; sorry, deleted post so I wasn't treble posting, looks like you caught me. =P
Okay, here we go;
Thread Template.
Add the following at the very top, before anything else; {if $[current_user.is_member]}
Then, after the $[quick_reply], add the following; {else} <div class="container posts"> <div class="title-bar"> <h1>ERROR MESSAGE TITLE</h1> </div> <div class="content cap-bottom"> <table> <tbody> <tr> <td> <div style="padding: 10px;">Your error message goes in here. =]</div> </td> </tr> </tbody> </table> </div> </div> {/if}
I think you can probably work out which bits you need to change. =P
|
|
inherit
186006
0
Mar 30, 2019 4:02:27 GMT -8
smashwords2
Breathing
244
November 2012
smashwords2
|
Post by smashwords2 on Dec 13, 2012 15:51:46 GMT -8
Works great, Paul. Thanks.
Now an admin has another level of access control.
When (if?) you have a free moment, is there a simple way to assign which Boards have this level of control?
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Dec 13, 2012 16:29:08 GMT -8
If there is, I don't know how to do it, sorry. =P
|
|
inherit
186006
0
Mar 30, 2019 4:02:27 GMT -8
smashwords2
Breathing
244
November 2012
smashwords2
|
Post by smashwords2 on Apr 8, 2013 9:39:46 GMT -8
Paul, the code doesn't work now. I don't know when it stopped working as I just checked it again this morning and guests could view the content of threads. I removed your code for the time being.
|
|
inherit
186006
0
Mar 30, 2019 4:02:27 GMT -8
smashwords2
Breathing
244
November 2012
smashwords2
|
Post by smashwords2 on Apr 10, 2013 16:37:17 GMT -8
Hi Paul,
I'm using the VPester plugin now.
Thanks. Ted
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Apr 10, 2013 21:03:33 GMT -8
Not sure why the mod would stop working, but if I'm around after work tomorrow then I'll take a look, just for my own interest. =]
|
|
inherit
186006
0
Mar 30, 2019 4:02:27 GMT -8
smashwords2
Breathing
244
November 2012
smashwords2
|
Post by smashwords2 on Apr 12, 2013 22:34:49 GMT -8
Thanks, Paul
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Apr 13, 2013 14:44:01 GMT -8
I've just tested the code on one of my forums, and it still worked exactly as it should. Not sure what went wrong - if you're still looking to add it, please try again and see if you have any problems. =]
|
|
inherit
186006
0
Mar 30, 2019 4:02:27 GMT -8
smashwords2
Breathing
244
November 2012
smashwords2
|
Post by smashwords2 on Apr 14, 2013 9:07:29 GMT -8
Thanks, Paul. I'll try vpester for a few months first before making a decision.
|
|