inherit
61264
0
Sept 10, 2013 4:18:28 GMT -8
EmMie
Life is what you make it. Do nothing and nothing will happen.
1,327
October 2005
mie
|
Post by EmMie on Jul 9, 2013 7:40:44 GMT -8
Hello, I would like to request a template that does something similiar to this code. I'd really like for this feature to be on my forum again. Thanks!
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jul 14, 2013 13:03:54 GMT -8
Did that code just replace the contents of the last post cells with a message asking guests to login/register? Is that on just boards, or categories as well EmMie?
|
|
inherit
58740
0
Jan 5, 2024 18:58:20 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 15, 2013 14:52:49 GMT -8
Hello, I would like to request a template that does something similiar to this code. I'd really like for this feature to be on my forum again. Thanks! Admin >> Themes >> Layout Templates >> Board >> Board List replace: No posts have been made on this board. with this: {if $[current_user.is_member]} No posts have been made on this board. {else} <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}
|
|
inherit
61264
0
Sept 10, 2013 4:18:28 GMT -8
EmMie
Life is what you make it. Do nothing and nothing will happen.
1,327
October 2005
mie
|
Post by EmMie on Jul 15, 2013 18:14:16 GMT -8
Did that code just replace the contents of the last post cells with a message asking guests to login/register? Is that on just boards, or categories as well EmMie? Yes the code did that, for on just boards. Hello, I would like to request a template that does something similiar to this code. I'd really like for this feature to be on my forum again. Thanks! Admin >> Themes >> Layout Templates >> Board >> Board List replace: No posts have been made on this board. with this: {if $[current_user.is_member]} No posts have been made on this board. {else} <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} I replaced the code and it's still not working.
|
|
inherit
58740
0
Jan 5, 2024 18:58:20 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 15, 2013 18:18:44 GMT -8
forum url? and i assume you meant the "recent posts" link in the IC
|
|
inherit
61264
0
Sept 10, 2013 4:18:28 GMT -8
EmMie
Life is what you make it. Do nothing and nothing will happen.
1,327
October 2005
mie
|
Post by EmMie on Jul 15, 2013 18:29:27 GMT -8
forum url? and i assume you meant the "recent posts" link in the IC No, I just need that message to appear in the 'last post' cell of each board that I have set as not viewable to guests. You get what I mean? This is my forum
|
|
inherit
58740
0
Jan 5, 2024 18:58:20 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 16, 2013 14:55:29 GMT -8
for these instructions i'm assuming you've reset the template.
replace 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>
there's unfortunately 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 it.
|
|
inherit
61264
0
Sept 10, 2013 4:18:28 GMT -8
EmMie
Life is what you make it. Do nothing and nothing will happen.
1,327
October 2005
mie
|
Post by EmMie on Jul 17, 2013 9:55:44 GMT -8
for these instructions i'm assuming you've reset the template.
replace 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>
there's unfortunately 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 it. It works! Thanks ®i©hie for all of your help!
|
|