inherit
256660
0
Dec 2, 2024 14:29:35 GMT -8
dinoson2
42
October 2018
dinoson2
|
Post by dinoson2 on Dec 1, 2024 23:55:07 GMT -8
Forum URL: (private) Greetings! Screenshotted below are two boards on our forum's main page that are only accesible by members and staff. When logged out/viewed by guests, those sections in 'Last Post' column are blank. Is there a code where I can insert a message in that blank space?
|
|
#eb7100
1480
0
1
Dec 4, 2024 4:15:04 GMT -8
Craig
209,210
September 2001
cmdynasty
|
Post by Craig on Dec 2, 2024 8:53:28 GMT -8
Hi You should be able to do that via a template modification. Open up your Board List template: Admin > Themes > Layout Templates > Board > Board ListLook for this section: <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]<br /> <span class="date">$[board.last_thread.last_post.created_on]</span> {/if} {else} No posts have been made on this board. {/if} </td>
It will start around line 35, unless you have heavily modified the template before. Replace it 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]<br /> <span class="date">$[board.last_thread.last_post.created_on]</span> {elseif $[current_user.is_guest]} blah blah blah {/if} {else} No posts have been made on this board. {/if} </td>
Replace the blah blah blah with the message you want to show up for guests. Any problems, let us know.
|
|
inherit
256660
0
Dec 2, 2024 14:29:35 GMT -8
dinoson2
42
October 2018
dinoson2
|
Post by dinoson2 on Dec 2, 2024 13:58:22 GMT -8
Hi You should be able to do that via a template modification. Open up your Board List template: Admin > Themes > Layout Templates > Board > Board ListLook for this section: <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]<br /> <span class="date">$[board.last_thread.last_post.created_on]</span> {/if} {else} No posts have been made on this board. {/if} </td>
It will start around line 35, unless you have heavily modified the template before. Replace it 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]<br /> <span class="date">$[board.last_thread.last_post.created_on]</span> {elseif $[current_user.is_guest]} blah blah blah {/if} {else} No posts have been made on this board. {/if} </td>
Replace the blah blah blah with the message you want to show up for guests. Any problems, let us know. Absolute perfection, worked like a charm! Thanks so much!
|
|
#eb7100
1480
0
1
Dec 4, 2024 4:15:04 GMT -8
Craig
209,210
September 2001
cmdynasty
|
Post by Craig on Dec 2, 2024 14:11:06 GMT -8
You're welcome. Glad it helped
|
|