• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Conditional Statements

Conditional Statements


Well-known member
How many sticky threads do you have?

Most forums usually only have a few so the ad_thread_list_below_stickies will work for that.
I am using that ad slot mostly but it looks very ugly one 2nd, 3rd etc pages when there are no sticky topics to display.

Is there a way to only show content under a sticky just on the first page of a forum?
Is there a way to target the entire resource manager without having to do a bunch of ORs?

So this is how the code looks like now:

<xen:if is="{$contentTemplate} == 'resource_index' OR 'resource_description'(etc...)">


Active member
I was thinking of doing this to check if someone is a member of usergroup 8, but it doesn't work because $user.secondary_group_ids is not an array:

<xen:if is="in_array(8, {$user.secondary_group_ids},)">
Is there any way I can do this?

it's for the member_view-template.