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

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

Getting Custom User Field Text

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

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
I created a custom user field, and now I'm trying to use that text value, for a template. How can I get that text value?

In my template I did this so I could use the custom user banner css without copying it to multiple places:
PHP:

کد:
<xf:if is="$user.Profile.custom_fields.pronouns">
    <div class="staff-pronouns">
        <span class="userBanner userBanner--syl_pro_{$user.Profile.custom_fields.pronouns}">{$user.Profile.custom_fields.pronouns}</span>
    </div>
</xf:if>

But this is only...

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

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

عقب
بالا