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

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

Create conditional in template for specific userid

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

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
I want to add a conditional to a template for userid = 1 (the owner of the site). But I cannot figure out how to do that.

Is the some way to specify a particular user in $xf.visitor... ? I am trying to show ad previews to only myself.
Code:

کد:
                <xf:if is="$xf.visitor.is_admin AND $xf.options.siropuAdsManagerPositionVisualization AND {$xf.samPositions.{$position}}">
                    <div class="samPositionPreview">{$xf.samPositions.{$position}|raw}</div>...

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

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

عقب
بالا