Tommy
Junior Member
Posts: 339
inherit
241969
0
May 2, 2023 4:47:54 GMT -8
Tommy
339
February 2017
tommytdl
|
Post by Tommy on Aug 6, 2018 8:33:05 GMT -8
Themes > Layout Templates > Posting Page Is there an IF statement that can check to see if a post being made was initiated by the "Quote" button as opposed to the "New Thread" or "Reply" buttons? Secondly, could that be nested with "current user" as shown below: {if $[current_user.is_member]} {if "quoting"} <div>example text</div> {/if} {/if}
I'm not a programmer so use small words and symbols please
|
|
Shiz
New Member
Posts: 47
inherit
goofy_foot_sk8er@yahoo.com
200106
0
Sept 5, 2018 13:51:32 GMT -8
Shiz
47
September 2013
goofyfootsk8er
|
Post by Shiz on Aug 6, 2018 11:47:44 GMT -8
$[route.name]
I think that will help you. A generic reply will return "new_post" and a quoted reply will return "quote_posts"
{if $[current_user.is_member]}
{if $[route.name] == "quote_posts"}
This is a quote.
{/if}
{/if}
|
|
Tommy
Junior Member
Posts: 339
inherit
241969
0
May 2, 2023 4:47:54 GMT -8
Tommy
339
February 2017
tommytdl
|
Post by Tommy on Aug 7, 2018 11:44:12 GMT -8
Thank you Shiz I appreciate your help.
|
|