inherit
189372
0
Aug 20, 2013 14:43:03 GMT -8
merleh
99
February 2013
merleh
|
Post by merleh on May 5, 2013 10:24:18 GMT -8
Currently, guests can see my categories and my boards but they can't enter them, e.g. they don't see any threads or posts. I don't want them to read any threads but they should be allowed to see the last post column. At the moment, it's empty when you view the forum without being logged in: Is there any way to change that without giving them permission to actually read the threads? They should just see the name of the recently bumped thread, the latest poster and the time.
|
|
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 May 8, 2013 11:17:09 GMT -8
Perhaps if you were to give them permission to enter the boards and read the threads in the admin panel, but then add an {if !$[current_user.is_member]}ERROR MESSAGE/LOGIN OR REGISTER{/if} around the templates for boards and threads, so that while the forum thinks they're allowed access (thus showing the last post), the templates stop them from being able to read anything.
|
|
inherit
189372
0
Aug 20, 2013 14:43:03 GMT -8
merleh
99
February 2013
merleh
|
Post by merleh on May 9, 2013 3:55:42 GMT -8
Thank you, Paul, but where in the templates do I put this in?
|
|
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 May 9, 2013 8:00:21 GMT -8
Thank you, Paul, but where in the templates do I put this in? I'll make a proper reply once I'm back from work and not on my phone =]
|
|
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 May 9, 2013 18:57:21 GMT -8
Okay, here goes. (this was done on a rough test, but it should work okay)
In your Thread template, the first line should read <div class="container posts">
After that line, add in the following;
{if !$[current_user.is_member]}<div class="title-bar"> <h2>ERROR!</h2> </div> <div class="content" align="center"> To read this thread, please <a href="https://login.proboards.com/login/XXXXXX" target="_parent">login</a> or <a href="https://login.proboards.com/register/XXXXXX" target="_parent">register</a>. </div> {else}
Then right at the bottom, before the last </div> (should be the second to last line), add in {/if}. That should get your threads to work.
For the boards themselves, head to the Board template. Look for the following lines; {if $[display_thread_list]} <div{if $[viewing_bookmarks]} id="bookmarks"{/if} class="container threads">
Immediately after, add in the following;
{if !$[current_user.is_member]}<div class="title-bar"> <h2>ERROR!</h2> </div> <div class="content" align="center"> To see the threads in this board, please <a href="https://login.proboards.com/login/XXXXXX" target="_parent">login</a> or <a href="https://login.proboards.com/register/XXXXXX" target="_parent">register</a>. </div> {else}
A little further down look for the following, and add in the red;
<tbody class="$[list_class]"> $[thread_list] </tbody> </table> </div> {/if} </div> {/if}
You'll have noticed that the links have XXXXXX in them. You'll need to find the number that works for your forum. Simply right click and copy the link to the login/logout/register button on your forum, and work it out from there. They're unique to each forum, so you'll have to find it for yourself.
That should get you sorted. =]
|
|