عيد الاضحى المبارك


مواضيع تهمك

ركن شروحات الزين فورو XENFORO هذا القسم خاص بكل شروحات إستخدام XENFORO وتعديلات القوالب

شرح اوامر الدالة if الشرطية للزين فورو 2.0

1. How can I show content to Administrators? <xf:if is="$xf.visitor.is_admin"> Show content... </xf:if> محتوى يراه المدير فقط 2. How can I show content to Moderators? <xf:if...

احصائياتى

الردود
6

المشاهدات
1355
هيلبرنت
.:: رفيق درب ::.
  • هيلبرنت has a brilliant futureهيلبرنت has a brilliant futureهيلبرنت has a brilliant futureهيلبرنت has a brilliant futureهيلبرنت has a brilliant futureهيلبرنت has a brilliant futureهيلبرنت has a brilliant futureهيلبرنت has a brilliant futureهيلبرنت has a brilliant futureهيلبرنت has a brilliant futureهيلبرنت has a brilliant future

  • هيلبرنت غير متواجد حالياً

المشاركات
11,551

+التقييم
321

تاريخ التسجيل
Jul 2015

الاقامة
فى الدنيا

نظام التشغيل
windows 8

رقم العضوية
18
06-10-2018, 11:50 PM
المشاركة 1
06-10-2018, 11:50 PM
المشاركة 1
افتراضي شرح اوامر الدالة if الشرطية للزين فورو 2.0
1. How can I show content to Administrators?
كود:
<xf:if is="$xf.visitor.is_admin">
    Show content...
</xf:if>
محتوى يراه المدير فقط

2. How can I show content to Moderators?
كود:
<xf:if is="$xf.visitor.is_moderator">
  Show content...
</xf:if>
محتوى يراه المشرفين فقط


3. How can I show content to Administrators and Moderators?
كود:
<xf:if is="$xf.visitor.is_admin OR $xf.visitor.is_moderator">
    Show content...
</xf:if>
محتوى يراه مدير الموقع والمشرف

4. How can I Show content for member?
كود:
<xf:if is="$xf.visitor.user_id">
  Show content...
</xf:if>
محتوى يراه الاعضاء

5. How can I Show content if not a member?
كود:
<xf:if is="!$xf.visitor.user_id">
   Show content...
</xf:if>
محتوى لايراه الاعضاء

6. How can I show different content to members and guests?
<xf:if is="!$xf.visitor.user_id">
Show only members
<xf:else />
Show only guests
</xf:if>
محتوى يظهر للاعضاء مختلف كليا عن الزوار

7. How can I Show content for banned members?
كود:
<xf:if is="$user.is_banned">
  Show content...
</xf:if>
محتوى يظهر للاعضاء الموقفين

8. How can I show content from x if the user's likes is bigger?
كود:
<xf:if is="$user.like_count|number > x">
   Show content...
</xf:if>
محتوى يظهر للاعضاء اللى حاصلين على X من الاعجاب

9. How can I show content from x if the user's message is bigger?
كود:
<xf:if is="$user.message_count|number > x">
   Show content...
</xf:if>
محتوى يظهر للاعضاء اللى حاصلين على X من المشاركات

10. How can I show content from x if the user's points is bigger?
كود:
<xf:if is="$user.trophy_points|number > x">
  Show content...
</xf:if>
محتوى يظهر للاعضاء اللى حاصلين على X من النقاط

11. How can I show content to a specific member?
كود:
<xf:if is="$xf.visitor.user_id == x">
   Show content...
</xf:if>
محتوى يظهر لعضو معين من حلال ID الخاص به

12. How can I show content to more than one member?
كود:
<xf:if is="in_array($xf.visitor.user_id, [x, x, x, x])">
   Show content...
</xf:if>
محتوى يظهر لاكثر من عضو من خلال رقم عضويته

13. How can I Show content from more than one user group?
كود:
<xf:if is="{{$xf.visitor.isMemberOf(x)}}">
    Show content...
</xf:if>
14. How can I hide content from more than one user group?
كود:
<xf:if is="{{!$xf.visitor.isMemberOf(x)}}">
     Hide content...
</xf:if>
15. How can I show content after the first post in a thread?
كود:
<xf:if is="$post.position % $xf.options.messagesPerPage == 0">
    Show content...
</xf:if>
15. How can I show content after post x on every page in a thread?
كود:
<xf:if is="$post.position % $xf.options.messagesPerPage == x">
    Show content...
</xf:if>
16. How can I show content on pages with a sidebar?
كود:
<xf:if is="$sidebar">
    Show content...
</xf:if>
17. How can I show content only at home?
كود:
<xf:if is="$template != 'forum_list'">
     Show content...
</xf:if>
18. How can I hide content only at home?
كود:
<xf:if is="$template !== 'forum_list'">
    Hide content...
</xf:if>
19. How can I show the content only when creating a thread?
كود:
<xf:if is="$template == 'forum_post_thread'">
    Show content...
</xf:if
20. How can I hide the content only when creating a thread?
كود:
<xf:if is="$template != 'forum_post_thread'">
    Hide content..
</xf:if>
21. How can I show the content only when creating a resource?
كود:
<xf:if is="$template == 'xfrm_category_add_resource'">
   Show content..
</xf:if>
22. How can I hide the content only when creating a resource?
كود:
<xf:if is="$template != 'xfrm_category_add_resource'">
    Hide content..
</xf:if>
23. How can I show you only when viewing the search page?
كود:
<xf:if is="$template == 'search_form'">
    Show content..
</xf:if>
24. How can I hide you only when viewing the search page?
كود:
<xf:if is="$template != 'search_form'">
   Hide content..
</xf:if>
`25. How can I show content only in what's new?
كود:
<xf:if is="$template == 'whats_new'">
   Show content..
  </xf:if>
26. How can I hide content only in what's new?
كود:
<xf:if is="$template != 'whats_new'">
      Hide content..
</xf:if>
27. How can I show content message on in a conversation?
كود:
<xf:if is="$template == 'conversation_view'">
    Show content..
</xf:if>
28. How can I hide content message on in a conversation?
كود:
<xf:if is="$template != 'conversation_view'">
    Hide content..
</xf:if>
29. How can I show only on the conversation list?
كود:
<xf:if is="$template == 'conversation_list'">
   Show content..
</xf:if>
30. How can I hide only on the conversation list?
كود:
<xf:if is="$template != 'conversation_list'">
    Hide content..
</xf:if>
31. How can I show only resources on the homepage?
كود:
<xf:if is="$template == 'xfrm_overview'">
    Show content..
</xf:if>
32. How can I hide only resources on the homepage?
كود:
<xf:if is="$template != 'xfrm_overview'">
   Hide content..
</xf:if>
33. How can I show only when viewing sources content?
كود:
<xf:if is="$template == 'xfrm_resource_view'">
   Show content..
</xf:if>
34. How can I hide only when viewing sources content?
كود:
<xf:if is="$template != 'xfrm_resource_view'">
   Hide content..
</xf:if>
35. How can I show when the thread is displayed?
كود:
<xf:if is="$template == 'thread_view'">
   Show content..
</xf:if>
36. How can I hide when the thread is displayed?
كود:
<xf:if is="$template !='thread_view'">
    Hide content..
</xf:if>
37. How can I show it in the thread list?
كود:
<xf:if is="$template =='forum_view'">
   Show content..
</xf:if>
38. How can I hide it in the thread list?
كود:
xf:if is="$template != 'forum_view'">
   Hide content..
</xf:if>
39. How can I show content to Discouraged Users?
كود:
<xf:if is="{$xf.visitor.Option.is_discouraged}">
     Show content...
</xf:if>
40. How can I display the content only for those users who have an Gravatar?
كود:
<xf:if is="{$xf.visitor.gravatar}">
  Show content...
</xf:if>
41.How can I display the content only for staff?
كود:
<xf:if is="{$xf.visitor.is_staff}">
    Show content...
</xf:if>
42.How can I display the content only for users who have not confirmed email address?
كود:
<xf:if is="{$xf.visitor.isAwaitingEmailConfirmation()}">
  Show content...
</xf:if>
43. How can I show content in more than one forum?
كود:
<xf:if is="in_array({$forum.node_id}, [X,Y,Z])">
                  Show content..
</xf:if>
44. How do I hide content in multiple forums?
كود:
<xf:if is="!in_array({$forum.node_id}, [X,Y,Z])">
                  Hide content..
</xf:if>
45. How can I show content in a specific forum?
كود:
<xf:if is="{$forum.node_id} == 3">
               Show content..
</xf:if>
46. How can I hide content on a specific forum?
كود:
<xf:if is="{$forum.node_id} != 3">
               Hide content..
</xf:if>
47. How to show a banner only under the first post of each page of a thread?
كود:
<xf:if is="{$post.position} % {$xf.options.messagesPerPage} == 1">
        Show content..
</xf:if>
48. How to show a banner only inside of only the first post of each page of a thread?
كود:
<xf:if is="{$post.position} % {$xf.options.messagesPerPage} == 0">
               Show content..
</xf:if>
49. The location field is specified
كود:
<xf:if is="{$xf.visitor.location}">
    Show content...
</xf:if>
50. The website field is specified
كود:
<xf:if is="{$xf.visitor.website}">
    Show content...
</xf:if>
51. The signature is indicated.
كود:
<xf:if is="{$xf.visitor.signature}">
    Show content...
</xf:if>
52. The user activated
كود:
<xf:if is="{$xf.visitor.user_state} == 'valid'">
    Show content...
</xf:if>
53. Awaiting email confirmation (after editing):
كود:
<xf:if is="{$xf.visitor.user_state} == 'email_confirm_edit'">
    Show content...
</xf:if>
54. Email is not valid
كود:
<xf:if is="{$xf.visitor.user_state} == 'email_bounce'">
    Show content...
</xf:if>
تم شرح بعض الاوامر من يجد صعوبه ف اى امره يضعه بالرد وسنقوم بتوضيحه


قديم 06-11-2018, 12:45 AM
المشاركة 2
14SAT
.:: عضو مبدع ::.
  • 14SAT غير متواجد حالياً
افتراضي رد: شرح اوامر الدالة if الشرطية للزين فورو 2.0
شكرا لك صديقي بارك الله فيك

قديم 06-11-2018, 03:05 AM
المشاركة 3
MesterPerfect
.:: كبار شخصيات المنتدى ::.
المنتدى مراقب من خلاله
  • MesterPerfect غير متواجد حالياً
افتراضي رد: شرح اوامر الدالة if الشرطية للزين فورو 2.0
بارك الله فيكم
سيحين دور استخدامها بالنسبة لي قريبا.

قديم 06-11-2018, 04:06 AM
المشاركة 4
S!L3NT H!LL
.:: كبار شخصيات المنتدى ::.
المنتدى مراقب من خلاله
  • S!L3NT H!LL غير متواجد حالياً
افتراضي رد: شرح اوامر الدالة if الشرطية للزين فورو 2.0
ماشاء الله عليك راح تسهل على الاخوة المستخدمين للسكربت بشكل ممتاز جدا.

قديم 07-26-2018, 10:12 PM
المشاركة 5
هيلبرنت
.:: رفيق درب ::.
  • هيلبرنت غير متواجد حالياً
افتراضي رد: شرح اوامر الدالة if الشرطية للزين فورو 2.0
اشكركم شباب

قديم 04-13-2019, 08:47 PM
المشاركة 6
طيور الظلام
.:: عضو فعال ::.
  • طيور الظلام غير متواجد حالياً
افتراضي رد: شرح اوامر الدالة if الشرطية للزين فورو 2.0
كنت ببحث عنه ياخال

ووجدته هنا

حقا منتدى جميل

قديم 04-14-2019, 04:36 PM
المشاركة 7
هيلبرنت
.:: رفيق درب ::.
  • هيلبرنت غير متواجد حالياً
افتراضي رد: شرح اوامر الدالة if الشرطية للزين فورو 2.0
نورتنى اخى.

اضافة رد

العلامات المرجعية

شرح اوامر الدالة if الشرطية للزين فورو 2.0


أدوات الموضوع

الانتقال السريع
المواضيع المتشابهه للموضوع: شرح اوامر الدالة if الشرطية للزين فورو 2.0
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
خطأ PHP: الدالة function تم تعطيلها كلمة حق ركن مشاكل وطلبات المنتديات 1 05-15-2022 09:04 PM
زين فورو ماهو | الدعم الفنى للزين فورو | نسخ | اصدارات | طرق الشراء هيلبرنت ركن شروحات الزين فورو XENFORO 21 02-13-2021 03:27 PM
[XF 1.x Style] : استايل Social 1.5.0 للزين فورو هيلبرنت استايلات الزين فورو XENFORO 5 03-17-2020 08:08 AM
[ شرح ] : درس استخدام الجمل الشرطية IF للزين فورو XenForo هيلبرنت ركن شروحات الزين فورو XENFORO 3 07-26-2018 10:31 PM
[XF 1.x Add] : هاك التصويت للزين فورو - xenforo هيلبرنت اضافات الزين فورو XENFORO 3 07-21-2017 04:07 PM




الساعة الآن 11:32 PM
RSS 2.0XML Site MapTAGS SiteInfo SiteRSS FeedMap SectionsvB MapsMap TagSitemap ForumMaps Forum