Forumlar
Yeni Mesajlar
CerezExtra
EĞLENCE ↓
Şans Kurabiyesi
Renk Falınız
ÇerezRADYO
Sevgiliye Özel
ÇerezDERGİ
Hızlı Okuma Testleri
Pratik Çözümler
Yeniler
Yeni Mesajlar
Yeni ürünler
Yeni kaynaklar
Son Aktiviteler
İndir
En son incelemeler
Dükkan
Giriş
Kayıt
Yeniler
Yeni Mesajlar
Menu
Giriş
Kayıt
Uygulamayı yükle
Yükle
Forumlar
Bilgisayar & Cep & Teknoloji
WebMaster Bölümü
XenForo
Koşullu (if) İfadeler - Conditional Statements
JavaScript devre dışı bırakıldı. Daha iyi bir deneyim için, devam etmeden önce lütfen tarayıcınızda JavaScript'i etkinleştirin.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Konuya cevap yaz
Mesaj
<blockquote data-quote="YoRuMSuZ" data-source="post: 965531" data-attributes="member: 1"><p>XF 2 sürümlerinde kullanılabilecek belli başlık şartlı ifadeler...</p><p></p><p>Admin ise içeriği göster</p><p>[code]</p><p><xf:if is="$xf.visitor.is_admin"></p><p> Adminler için içerik göster</p><p></xf:if></p><p>[/code]</p><p>Sadece Moderatörlere içerik göster</p><p>[code]</p><p><xf:if is="$xf.visitor.is_moderator"></p><p> Moderator için içerik göster</p><p></xf:if></p><p>[/code]</p><p>Admin ve Moderatöre içerik göster</p><p>[code]</p><p><xf:if is="$xf.visitor.is_admin OR $xf.visitor.is_moderator"></p><p> Admin ve Moderatöre içeriği göster</p><p></xf:if></p><p>[/code]</p><p>Sadece üyelere içerik göster</p><p>[code]</p><p><xf:if is="$xf.visitor.user_id"></p><p> Üye ise içeriği göster</p><p></xf:if></p><p>[/code]</p><p>Sadece ziyaretçilere içerik göster</p><p>[code]</p><p><xf:if is="!$xf.visitor.user_id"></p><p> Üye değil ise içeriği göster</p><p></xf:if></p><p>[/code]</p><p>Üyelere ve ziyaretçiye farklı içerik göster</p><p>[code]</p><p><xf:if is="!$xf.visitor.user_id"></p><p> Sadece Üyeler Görebilir</p><p><xf:else /></p><p> Sadece Ziyaretçiler Görebilir</p><p></xf:if></p><p>[/code]</p><p>Sadece yasaklı kullanıcılara içerik göster</p><p>[code]</p><p><xf:if is="$user.is_banned"></p><p> Bu içerik yasaklı üyelere gösterilecek</p><p></xf:if></p><p>[/code]</p><p>Eğer beğeni sayısı büyük ise x sayısından sonra içeriği göster</p><p>[code]</p><p><xf:if is="$user.like_count|number > x"></p><p> Eğer beğeni sayısı büyük ise x sayısından içeriği göster</p><p></xf:if></p><p>[/code]</p><p>Eğer mesaj sayısı büyük ise x sayısından sonra içeriği göster</p><p>[code]</p><p><xf:if is="$user.like_count|number > x"></p><p> Eğer mesaj sayısı büyük ise x sayısından içeriği göster</p><p></xf:if></p><p>[/code]</p><p>Eğer puan sayısı büyük ise x sayısından sonra içeriği göster</p><p>[code]</p><p><xf:if is="$user.trophy_points|number > x"></p><p> Eğer puan sayısı büyük ise x sayısından içeriği göster.</p><p></xf:if></p><p>[/code]</p><p>Sadece x id numarasına sahip kullanıcıya içeriği göster</p><p>[code]</p><p><xf:if is="$xf.visitor.user_id == x"></p><p> Sadece x id numarasına sahip kullanıcılar bu içeriği görebilecek</p><p></xf:if></p><p>[/code]</p><p>İçeriği birden fazla kullanıcıya göster</p><p>[code]</p><p><xf:if is="in_array($xf.visitor.user_id, [x, x, x, x])"></p><p> Bu içerik birden fazla kullanıcıya gösterilir</p><p></xf:if></p><p>[/code]</p><p>Sadece bir kullanıcı grubuna içeriği göster</p><p>[code]</p><p><xf:if is="{{$xf.visitor.isMemberOf(x)}}"></p><p> Bu içerik sadece bir kullanıcı grubuna gösterilir</p><p></xf:if></p><p>[/code]</p><p>Belirli kullanıcı grubuna içeriği gizle</p><p>[code]</p><p><xf:if is="{{!$xf.visitor.isMemberOf(x)}}"></p><p> Bu içerik belirli kullanıcı grubuna gizlenecektir</p><p></xf:if></p><p>[/code]</p><p>Birden fazla kullanıcı grubuna içeriği göster</p><p>[code]</p><p><xf:if is="{{$xf.visitor.isMemberOf([x, y])}}"></p><p> Bu içerik birden fazla kullanıcı grubuna gösterilecek</p><p></xf:if></p><p>[/code]</p><p>Birden fazla kullanıcı grubuna içeriği gizle</p><p>[code]</p><p><xf:if is="{{!$xf.visitor.isMemberOf([x, y])}}"></p><p> Bu içerik birden fazla kullanıcı grubuna gizlenecektir </p><p></xf:if></p><p>[/code]</p><p>Her iletide ilk konunun altına içerik ekle</p><p>[code]</p><p><xf:if is="$post.position % $xf.options.messagesPerPage == 0"></p><p> Bu içerik her iletide ilk konunun altında görünecektir</p><p></xf:if></p><p>[/code]</p><p>Her konunun sadece birinci cevap mesajının altına ekle</p><p>[code]</p><p><xf:if is="$post.position % $xf.options.messagesPerPage == 1"></p><p> Her konunun sadece birinci cevap mesajının altına ekleme</p><p></xf:if></p><p>[/code]</p><p>Konuda belirtilen mesaj sayısının altına bir içerik ekle</p><p>[code]</p><p><xf:if is="$post.position % $xf.options.messagesPerPage == x"></p><p> Konuda belirtilen mesaj sayısının altına bir içerik ekleme</p><p></xf:if></p><p>[/code]</p><p>Tüm şablonlarda içerik gösterme</p><p>[code]</p><p><xf:if is="$__globals.template == 'thread_view'"></p><p> Tüm şablonlarda içerik gösterme</p><p></xf:if></p><p>[/code]</p><p>İçeriği sidabar olan sayfalarda göster</p><p>[code]</p><p><xf:if is="$sidebar"></p><p> İçeriği sidabar olan sayfalarda göster</p><p></xf:if></p><p>[/code]</p><p>İçeriği yalnızca ana sayfada göster</p><p>[code]</p><p><xf:if is="$template != 'forum_list'"></p><p> İçerik yalnızca ana sayfada gösterilecek...</p><p></xf:if></p><p>[/code]</p><p>İçeriği yalnızca ana sayfada gizle</p><p>[code]</p><p><xf:if is="$template !== 'forum_list'"></p><p> İçerik yalnızca ana sayfada gizlenecek...</p><p></xf:if></p><p>[/code]</p><p>İçeriği yalnızca konu oluştururken göster</p><p>[code]</p><p><xf:if is="$template == 'forum_post_thread'"></p><p> İçeriği yalnızca konu oluştururken göster...</p><p></xf:if></p><p>[/code]</p><p>İçeriği yalnızca konu oluştururken gizle</p><p>[code]</p><p><xf:if is="$template != 'forum_post_thread'"></p><p> İçeriği yalnızca konu oluştururken gizle...</p><p></xf:if></p><p>[/code]</p><p>İçeriği sadece kaynak oluştururken göster</p><p>[code]</p><p><xf:if is="$template == 'xfrm_category_add_resource'"></p><p> İçeriği sadece kaynak oluştururken göster...</p><p></xf:if></p><p>[/code]</p><p>İçeriği sadece kaynak oluştururken gizle</p><p>[code]</p><p><xf:if is="$template != 'xfrm_category_add_resource'"></p><p> İçeriği sadece kaynak oluştururken gizle...</p><p></xf:if></p><p>[/code]</p><p>İçeriği yalnızca arama sayfasında göster</p><p>[code]</p><p><xf:if is="$template == 'search_form'"></p><p> İçeriği yalnızca arama sayfasında göster...</p><p></xf:if></p><p>[/code]</p><p>İçeriği yalnızca arama sayfasında gizle</p><p>[code]</p><p><xf:if is="$template != 'search_form'"></p><p> İçeriği yalnızca arama sayfasında göster...</p><p></xf:if></p><p>[/code]</p><p>İçeriği sadece neler yeni görüntülenirken göster</p><p>[code]</p><p><xf:if is="$template == 'whats_new'"></p><p> İçeriği sadece neler yeni görüntülenirken göster...</p><p></xf:if></p><p>[/code]</p><p>İçeriği sadece neler yeni görüntülenirken gizle</p><p>[code]</p><p><xf:if is="$template != 'whats_new'"></p><p> İçeriği sadece neler yeni görüntülenirken gizle...</p><p></xf:if></p><p>[/code]</p><p>İçeriği sadece özel mesajlarda göster</p><p>[code]</p><p><xf:if is="$template == 'conversation_view'"></p><p> İçeriği sadece özel mesajlarda göster...</p><p></xf:if></p><p>[/code]</p><p>İçeriği cesareti kırılmış kullanıcılara göster</p><p>[code]</p><p><xf:if is="{$xf.visitor.Option.is_discouraged}"></p><p> Sadece cesareti kırılmış kullanıcılara göster...</p><p></xf:if></p><p>[/code]</p><p>İçeriği sadece Gravatar sahibi kullanıcılara göster</p><p>[code]</p><p><xf:if is="{$xf.visitor.gravatar}"></p><p> İçeriği sadece Gravatar sahibi kullanıcılara göster...</p><p></xf:if></p><p>[/code]</p><p>İçeriği yalnızca e-posta adresini onaylamayan kullanıcılara göster...</p><p>[code]</p><p><xf:if is="{$xf.visitor.isAwaitingEmailConfirmation()}"></p><p> İçeriği yalnızca e-posta adresini onaylamayan kullanıcılara göster...</p><p></xf:if></p><p>[/code]</p><p>İçeriği birden fazla forumlarda göster...</p><p>[code]</p><p><xf:if is="in_array({$forum.node_id}, [x,y,z])"></p><p> İçeriği birden fazla forumlarda göster...</p><p></xf:if></p><p>[/code]</p><p>Birden fazla forumlarda içeriği gizle...</p><p>[code]</p><p><xf:if is="!in_array({$forum.node_id}, [x,y,z])"></p><p> Birden fazla forumlarda içeriği gizle...</p><p></xf:if></p><p>[/code]</p><p>Belli bir forumda içeriği gösterme...</p><p>[code]</p><p><xf:if is="{$forum.node_id} == 3"></p><p> Belli bir forumda içeriği gösterme...</p><p></xf:if></p><p>[/code]</p><p></p><p></p><p><strong>TEMA ŞABLONLARINDA KOŞULLU IFADELER KULLANMA</strong></p><p></p><p>HTML şablonlarında stil özelliklerine erişmenin bir yolu</p><p>[code]</p><p><xf:if is="property('metaThemeColor')"></p><p> <meta name="theme-color" content="{{ property('metaThemeColor') }}" /></p><p></xf:if></p><p>[/code]</p><p></p><p>Alıntıdır...</p></blockquote><p></p>
[QUOTE="YoRuMSuZ, post: 965531, member: 1"] XF 2 sürümlerinde kullanılabilecek belli başlık şartlı ifadeler... Admin ise içeriği göster [code] <xf:if is="$xf.visitor.is_admin"> Adminler için içerik göster </xf:if> [/code] Sadece Moderatörlere içerik göster [code] <xf:if is="$xf.visitor.is_moderator"> Moderator için içerik göster </xf:if> [/code] Admin ve Moderatöre içerik göster [code] <xf:if is="$xf.visitor.is_admin OR $xf.visitor.is_moderator"> Admin ve Moderatöre içeriği göster </xf:if> [/code] Sadece üyelere içerik göster [code] <xf:if is="$xf.visitor.user_id"> Üye ise içeriği göster </xf:if> [/code] Sadece ziyaretçilere içerik göster [code] <xf:if is="!$xf.visitor.user_id"> Üye değil ise içeriği göster </xf:if> [/code] Üyelere ve ziyaretçiye farklı içerik göster [code] <xf:if is="!$xf.visitor.user_id"> Sadece Üyeler Görebilir <xf:else /> Sadece Ziyaretçiler Görebilir </xf:if> [/code] Sadece yasaklı kullanıcılara içerik göster [code] <xf:if is="$user.is_banned"> Bu içerik yasaklı üyelere gösterilecek </xf:if> [/code] Eğer beğeni sayısı büyük ise x sayısından sonra içeriği göster [code] <xf:if is="$user.like_count|number > x"> Eğer beğeni sayısı büyük ise x sayısından içeriği göster </xf:if> [/code] Eğer mesaj sayısı büyük ise x sayısından sonra içeriği göster [code] <xf:if is="$user.like_count|number > x"> Eğer mesaj sayısı büyük ise x sayısından içeriği göster </xf:if> [/code] Eğer puan sayısı büyük ise x sayısından sonra içeriği göster [code] <xf:if is="$user.trophy_points|number > x"> Eğer puan sayısı büyük ise x sayısından içeriği göster. </xf:if> [/code] Sadece x id numarasına sahip kullanıcıya içeriği göster [code] <xf:if is="$xf.visitor.user_id == x"> Sadece x id numarasına sahip kullanıcılar bu içeriği görebilecek </xf:if> [/code] İçeriği birden fazla kullanıcıya göster [code] <xf:if is="in_array($xf.visitor.user_id, [x, x, x, x])"> Bu içerik birden fazla kullanıcıya gösterilir </xf:if> [/code] Sadece bir kullanıcı grubuna içeriği göster [code] <xf:if is="{{$xf.visitor.isMemberOf(x)}}"> Bu içerik sadece bir kullanıcı grubuna gösterilir </xf:if> [/code] Belirli kullanıcı grubuna içeriği gizle [code] <xf:if is="{{!$xf.visitor.isMemberOf(x)}}"> Bu içerik belirli kullanıcı grubuna gizlenecektir </xf:if> [/code] Birden fazla kullanıcı grubuna içeriği göster [code] <xf:if is="{{$xf.visitor.isMemberOf([x, y])}}"> Bu içerik birden fazla kullanıcı grubuna gösterilecek </xf:if> [/code] Birden fazla kullanıcı grubuna içeriği gizle [code] <xf:if is="{{!$xf.visitor.isMemberOf([x, y])}}"> Bu içerik birden fazla kullanıcı grubuna gizlenecektir </xf:if> [/code] Her iletide ilk konunun altına içerik ekle [code] <xf:if is="$post.position % $xf.options.messagesPerPage == 0"> Bu içerik her iletide ilk konunun altında görünecektir </xf:if> [/code] Her konunun sadece birinci cevap mesajının altına ekle [code] <xf:if is="$post.position % $xf.options.messagesPerPage == 1"> Her konunun sadece birinci cevap mesajının altına ekleme </xf:if> [/code] Konuda belirtilen mesaj sayısının altına bir içerik ekle [code] <xf:if is="$post.position % $xf.options.messagesPerPage == x"> Konuda belirtilen mesaj sayısının altına bir içerik ekleme </xf:if> [/code] Tüm şablonlarda içerik gösterme [code] <xf:if is="$__globals.template == 'thread_view'"> Tüm şablonlarda içerik gösterme </xf:if> [/code] İçeriği sidabar olan sayfalarda göster [code] <xf:if is="$sidebar"> İçeriği sidabar olan sayfalarda göster </xf:if> [/code] İçeriği yalnızca ana sayfada göster [code] <xf:if is="$template != 'forum_list'"> İçerik yalnızca ana sayfada gösterilecek... </xf:if> [/code] İçeriği yalnızca ana sayfada gizle [code] <xf:if is="$template !== 'forum_list'"> İçerik yalnızca ana sayfada gizlenecek... </xf:if> [/code] İçeriği yalnızca konu oluştururken göster [code] <xf:if is="$template == 'forum_post_thread'"> İçeriği yalnızca konu oluştururken göster... </xf:if> [/code] İçeriği yalnızca konu oluştururken gizle [code] <xf:if is="$template != 'forum_post_thread'"> İçeriği yalnızca konu oluştururken gizle... </xf:if> [/code] İçeriği sadece kaynak oluştururken göster [code] <xf:if is="$template == 'xfrm_category_add_resource'"> İçeriği sadece kaynak oluştururken göster... </xf:if> [/code] İçeriği sadece kaynak oluştururken gizle [code] <xf:if is="$template != 'xfrm_category_add_resource'"> İçeriği sadece kaynak oluştururken gizle... </xf:if> [/code] İçeriği yalnızca arama sayfasında göster [code] <xf:if is="$template == 'search_form'"> İçeriği yalnızca arama sayfasında göster... </xf:if> [/code] İçeriği yalnızca arama sayfasında gizle [code] <xf:if is="$template != 'search_form'"> İçeriği yalnızca arama sayfasında göster... </xf:if> [/code] İçeriği sadece neler yeni görüntülenirken göster [code] <xf:if is="$template == 'whats_new'"> İçeriği sadece neler yeni görüntülenirken göster... </xf:if> [/code] İçeriği sadece neler yeni görüntülenirken gizle [code] <xf:if is="$template != 'whats_new'"> İçeriği sadece neler yeni görüntülenirken gizle... </xf:if> [/code] İçeriği sadece özel mesajlarda göster [code] <xf:if is="$template == 'conversation_view'"> İçeriği sadece özel mesajlarda göster... </xf:if> [/code] İçeriği cesareti kırılmış kullanıcılara göster [code] <xf:if is="{$xf.visitor.Option.is_discouraged}"> Sadece cesareti kırılmış kullanıcılara göster... </xf:if> [/code] İçeriği sadece Gravatar sahibi kullanıcılara göster [code] <xf:if is="{$xf.visitor.gravatar}"> İçeriği sadece Gravatar sahibi kullanıcılara göster... </xf:if> [/code] İçeriği yalnızca e-posta adresini onaylamayan kullanıcılara göster... [code] <xf:if is="{$xf.visitor.isAwaitingEmailConfirmation()}"> İçeriği yalnızca e-posta adresini onaylamayan kullanıcılara göster... </xf:if> [/code] İçeriği birden fazla forumlarda göster... [code] <xf:if is="in_array({$forum.node_id}, [x,y,z])"> İçeriği birden fazla forumlarda göster... </xf:if> [/code] Birden fazla forumlarda içeriği gizle... [code] <xf:if is="!in_array({$forum.node_id}, [x,y,z])"> Birden fazla forumlarda içeriği gizle... </xf:if> [/code] Belli bir forumda içeriği gösterme... [code] <xf:if is="{$forum.node_id} == 3"> Belli bir forumda içeriği gösterme... </xf:if> [/code] [B]TEMA ŞABLONLARINDA KOŞULLU IFADELER KULLANMA[/B] HTML şablonlarında stil özelliklerine erişmenin bir yolu [code] <xf:if is="property('metaThemeColor')"> <meta name="theme-color" content="{{ property('metaThemeColor') }}" /> </xf:if> [/code] Alıntıdır... [/QUOTE]
Alıntıları ekle...
İsim
Spam kontrolü
Sarı kırmızı renkleri ile ünlü futbol takımımız?
Cevapla
Forumlar
Bilgisayar & Cep & Teknoloji
WebMaster Bölümü
XenForo
Koşullu (if) İfadeler - Conditional Statements
Top