Is there a way to say call an if statement based on a hook?
Ex
<xen:if is="{$hook_name} == x">
This content will shown
<xen:else />
This content will shown
</xen:if>
I am trying to modify the avatar for the [bd] Rotating Ads, and couldn't think of any other way so I was going to modify the message template and say if hook is "ads" then use "this avatar" otherwise use the default avatar..
We're displaying an ad after 5th post on every page on a thread. We're also displaying ad after the messages and sometimes those 2 ads show too close to each other (5-8 posts on a page). Is there a conditional to show the first ad if the page has at least 7-8 posts? Here's the current conditional:
Code:
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 4 AND !{$message.conversation_id}">
Show the ad/template here
</xen:if>
Yeah that works for the first page but not when there's multiple pages. So I meant to show the first ad on every page if there's at least 7 posts on that page.
Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null givenin /public_html/library/XenForo/Template/Helper/Core.php, line 1344
Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in /public_html/library/XenForo/Template/Helper/Core.php on line 1352 and defined in /public_html/library/XenForo/Model/User.php, line 1683
When I try to do:
<xen:if is="{xen:helper ismemberof, $visitor, x}"> This content will show to members of user group x
</xen:if>