inherit
58740
0
Aug 20, 2024 7:29:21 GMT -8
®i©hie
I'm not very active here anymore thanks to my full-time job. - 12/27/23
14,036
September 2005
soe
|
Post by ®i©hie on Jul 18, 2013 15:06:04 GMT -8
this works based on how this code from V4 worked. this'll show a message to guests saying "please login or register to view this board" in the "last post" cell of that board ("login" and "register" will be links). NOTE: there's no definite way to determine if a board is guest or member accessible so this teplate will show the guest message assuming there's at least 1 post/thread in that board. Admin >> Themes >> Layout Templates >> Board >> Board Listreplace this:
<td class="latest last"> {if $[board.posts] > 0} {if $[board.last_thread]} $[board.last_thread.recent_link]<br /> by $[board.last_thread.last_post.created_by_user]<br /> <span class="date">$[board.last_thread.last_post.date]</span> {/if} {else} No posts have been made on this board. {/if} </td> with this:
<td class="latest last"> {if $[board.posts] > 0} {if $[board.last_thread]} $[board.last_thread.recent_link]<br /> by $[board.last_thread.last_post.created_by_user]<br /> <span class="date">$[board.last_thread.last_post.date]</span> {/if} {else} No posts have been made on this board. {/if}
{if $[board.posts] > 0} {if !$[board.last_thread]} {if !$[current_user.is_member]} <script type="text/javascript"> <!-- var fid=proboards.data("forum_id"); document.write('Please <a href="http://login.proboards.com/login/'+fid+'/">Login</a> or <a href="http://login.proboards.com/register/'+fid+'/">Register</a> to view this board.'); // --> </script> {/if} {/if} {/if} </td>
|
|