• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

Need help with a conditional array for nodes to not display ads

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
I am trying to restrict ads from showing on certain pages and in certain nodes.

So I have this to not display on the main forum index and it works:

<xf:if is="$xf.reply.template !== 'forum_list'"> followed by the ad code and the closing </xf:if>.

Now I tried to restrict display from certain nodes in an array but this does not work:

<xf:if is = "!in_array($forum.node_id, [302,293,291,294,323,298,301,290,296,288,320,319,321,318])">

What am I...

Read more
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا