Former Member
inherit
guest@proboards.com
195316
0
Nov 29, 2024 15:57:59 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 16, 2014 11:57:46 GMT -8
Forum Url: thecreativepen.proboards.comSeeking a little help with the template code below I have the code below on the THREAD TEMPLATE - All works well when a guest views the thread But a little problem I noticed as when viewing the RECENT POSTS page thecreativepen.proboards.com/posts/recentAS A GUEST it shows also on that page also is there anyway as to make so it wont display when viewing recent posts as guest I thought I could use {if $[route.name] == "board"} {/if} as to stop it showing on that page and still be visible when guests view a thread But when I add it does not show the message to guests.. Any help or fix - very much appreciated... Thanks Steve what I have on my thread template {if !$[current_user.is_member]}<br /> <center><font size="3"><b>Thank you for visiting we hope you enjoyed the poem</b>!<br><i>$[thread.subject]</i><br> Please $[register_link] or $[login_link] to comment this poem we look forward to hearing from you</font><br> <font size="3">All rights are reserved and remain with the author of the poem: <font color="#8018d8"><b>$[thread.created_by_user.name]</b>©</font></font></center><br />{/if}
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Dec 16, 2014 12:26:40 GMT -8
The route name when viewing a thread is "thread" so perhaps {if $[route.name] == "thread"} will do what you're looking for.
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 29, 2024 15:57:59 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 16, 2014 12:36:10 GMT -8
The route name when viewing a thread is "thread" so perhaps {if $[route.name] == "thread"} will do what you're looking for. Thank You Brian That fixed it Thanks again for your prompt reply Steve
|
|