jamalfree Active member Jan 5, 2018 #1 how to hide ads from specific pages (custom pages) like https://xenforo.com/community/pages/example-page/
how to hide ads from specific pages (custom pages) like https://xenforo.com/community/pages/example-page/
P Paul B XenForo moderator Staff member Jan 5, 2018 #2 Wrap the ad content in a conditional statement. A search should yield several examples. Upvote 0 Downvote
jamalfree Active member Jan 6, 2018 #3 i search but i have not found helpfull threads give me an example conditional statement to do this in xf2 Upvote 0 Downvote
i search but i have not found helpfull threads give me an example conditional statement to do this in xf2
jamalfree Active member Jan 6, 2018 #4 46. How can I hide content on a specific forum? Code: <xf:if is="{$forum.node_id} != 182"> Hide content.. </xf:if> but did nnot work !!!!!!!!!!!!!!!!!!!! Upvote 0 Downvote
46. How can I hide content on a specific forum? Code: <xf:if is="{$forum.node_id} != 182"> Hide content.. </xf:if> but did nnot work !!!!!!!!!!!!!!!!!!!!
jamalfree Active member Jan 6, 2018 #5 i try this !!! did not work Code: <xf:if is="$__globals.forum.node_id != 182"> <center><h1> 2018</h1></center> </xf:if> Upvote 0 Downvote
i try this !!! did not work Code: <xf:if is="$__globals.forum.node_id != 182"> <center><h1> 2018</h1></center> </xf:if>
jamalfree Active member Jan 6, 2018 #6 can somone correct this: Code: <xf:if is="$__globals.uri != '/pages/example-page/'"> <center><h1> 2018</h1></center> </xf:if> Upvote 0 Downvote
can somone correct this: Code: <xf:if is="$__globals.uri != '/pages/example-page/'"> <center><h1> 2018</h1></center> </xf:if>
P Paul B XenForo moderator Staff member Jan 7, 2018 #7 This works for me in a forum related ad position: Code: <xf:if is="$forum.node_id != 3"> The exact statement will vary depending on the ad position. Use dump vars and search for 'node_id'. Upvote 0 Downvote
This works for me in a forum related ad position: Code: <xf:if is="$forum.node_id != 3"> The exact statement will vary depending on the ad position. Use dump vars and search for 'node_id'.
jamalfree Active member Jan 7, 2018 #8 Brogan said: This works for me in a forum related ad position: Code: <xf:if is="$forum.node_id != 3"> The exact statement will vary depending on the ad position. Use dump vars and search for 'node_id'. Click to expand... i am looking for (custom pages not for forums, ya this code bellow work fine for forums Code: <xf:if is="$forum.node_id != 3"> i can not make this code because hide ad in all page Code: <xf:if is="{$__globals.template} != 'page_view''"> i spoke about specific pages (custom pages) i hope understand me like this https://xenforo.com/community/pages/example-page/ Upvote 0 Downvote
Brogan said: This works for me in a forum related ad position: Code: <xf:if is="$forum.node_id != 3"> The exact statement will vary depending on the ad position. Use dump vars and search for 'node_id'. Click to expand... i am looking for (custom pages not for forums, ya this code bellow work fine for forums Code: <xf:if is="$forum.node_id != 3"> i can not make this code because hide ad in all page Code: <xf:if is="{$__globals.template} != 'page_view''"> i spoke about specific pages (custom pages) i hope understand me like this https://xenforo.com/community/pages/example-page/
jamalfree Active member Jan 7, 2018 #9 in xenforo 1.4 i use this work fine https://xenforo.com/community/threa...om-specific-pages-conditions-templates.88306/ Upvote 0 Downvote
in xenforo 1.4 i use this work fine https://xenforo.com/community/threa...om-specific-pages-conditions-templates.88306/
jamalfree Active member Jan 7, 2018 #10 here i get solution Code: <xf:if is="$xf.reply.containerKey == 'node-182'"> Content Here </xf:if> https://www.xf-ar.com/threads/ماهو-...اء-اعلان-او-ماشابه-في-صقحة-ما.1998/post-10971 Upvote 0 Downvote
here i get solution Code: <xf:if is="$xf.reply.containerKey == 'node-182'"> Content Here </xf:if> https://www.xf-ar.com/threads/ماهو-...اء-اعلان-او-ماشابه-في-صقحة-ما.1998/post-10971