منتديات الناصح التطويرية  

مشروع التوسعة الثانية لرابطة التعاون الإسلامي
استسقاء الصوتية ، دردشة صوتية إسلاميةموقع الرفيع أعذب الأناشيد و الأمداح النبويةمنتديات لوشا التطويرية
دورة إدارة برمجية جملة للمبتدئين و المتوسطين
اتصل بنا : لطلبات خدمات المواقع و السيرفرات يرجى الاتصال على : admin[@]annasseh.com


عزيزي الزائر .. لا يمكنك مشاهدة روابط الخدمات

عروض الإعلان على منتديات الناصح

 
 
تجميعة دروس برمجة الهاكات هذا الركن يحتاج التسجيل للتحميل


إضافة رد
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  رقم المشاركة : ( 1 (permalink) )  
قديم 17 - 10 - 2009, 09:13 PM
الصورة الرمزية الناصح
 
المدير العام

 الأوسمة و جوائز
 بينات الاتصال بالعضو
 اخر مواضيع العضو
  الناصح غير متواجد حالياً  
الملف الشخصي
رقــم العضويـــة : 1
تـاريخ التسجيـل : 26 - 1 - 2008
العــــــــمـــــــــر : 34
الــــــــجنــــــس :
الـــــدولـــــــــــة : المغرب
المشاركـــــــات : 2,094 [+]
آخــر تواجــــــــد : 25 - 1 - 2012(09:20 PM)
عدد الـــنقــــــاط : 60
قوة التـرشيــــح : الناصح تم تعطيل التقييم
افتراضي لائحة شروط العرض بالقوالب

استضافة المواقع
 admin@annasseh.com 
I have listed some really useful conditionals that are widely used throughout vB. Will keep adding more.

If Viewer is a Member
--------------------------------------------------
If you want to show a link only to registered members you would use this conditional.



كود PHP:
<if condition="$show['member']"></if> 
If Viewer is in the Following Usergroups Array. Enter the Usergroup Number(s) Seperated by a Comma
--------------------------------------------------
If you want to show an advertisement to viewers that are unregistered, registered members and awaiting email confirmation you would use the usergroup ids 1,2,3 within the array.



كود PHP:
<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if> 
If This Script Is or Is Not XXX
--------------------------------------------------
If this script is index (as used in the example below) then it will show the code within the conditional. You can use it to show a piece of code only on Forumhome if you have to put it in a template that is global such as the header. To find out what the script is per page open up the php file that loads the page like for instance showthread.php and look for


كود PHP:
define('THIS_SCRIPT''showthread'); 
and the showthread part is what you would use.



كود PHP:
<if condition="THIS_SCRIPT == 'index'"></if> 
and here you can show information on every page but the index page by using this conditional



كود PHP:
<if condition="THIS_SCRIPT != 'index'"></if> 
For checking multiple scripts:



كود PHP:
<if condition="THIS_SCRIPT != 'arcade' AND THIS_SCRIPT != 'adv_index'"></if> 
OR we can use this way as well



كود PHP:
<if condition="!in_array(THIS_SCRIPT, array('arcade', 'adv_index'))"></if> 
If this user equals or does not equal xxx
--------------------------------------------------
What this conditional will do is only show certain information if the person viewing the page has the same userid as defined within the conditional. So if you put userid 667 inside the conditional below and put a link inside the conditional tags only the user that has the userid 667 will see that link.



كود PHP:
<if condition="$bbuserinfo['userid'] == 667"></if> 
and it works the opposite way as well if you do not want information to show for 667 but you want it to show for everyone else you would use



كود PHP:
<if condition="$bbuserinfo['userid'] != 667"></if> 
OR we can also use this way



كود PHP:
<if condition="$vbulletin->userinfo['userid'] == 667"
Display Information To Guests Only
--------------------------------------------------
The following conditional will display information only to guests and no one else. This is helpful in displaying a welcome message that you only wish for guests to see.



كود PHP:
<if condition="$show['guest']"></if> 
Display Information On a Per Forum Basis
--------------------------------------------------
This conditional allows you to display information on a per forum basis. This can be helpful if you wish to display different advertisements depending on what forum that the user is in. You would simply replace X with the forum id that you wish the information to appear in.



كود PHP:
<if condition="$forum['forumid'] == X"></if> 
OR this



كود PHP:
<if condition="$foruminfo['forumid'] == X"></if> 
OR this



كود PHP:
<if condition="$forumid == X"></if> 
and on the other hand you can use the ! to do the opposite and display the information in every forum but the id you list



كود PHP:
<if condition="$forum['forumid'] != X"></if> 
or if you have multiple forums you wish to include something with you can use an array such as this



كود PHP:
<if condition="in_array($forum['forumid'], array(1,2,3,6))"></if> 
OR this



كود PHP:
<if condition="in_array($forumid, array(1,2,3,6))"
If Usergroup Is or Is Not X
--------------------------------------------------
If the user is a member of the x usergroup then show the code



كود PHP:
<if condition="$post['usergroupid'] == 6"></if> 
and then you can use the ! to tell it to not show it to the x usergroup but show it to everyone else.



كود PHP:
<if condition="$post['usergroupid'] != 6"></if> 
If Users Birthday is Less Than or Greater Than XXXX-XX-XX Do Something
--------------------------------------------------
Just to show the power of vBulletin here is a cool conditional that will show information based on the birthday of the user. The one below will show "Too Young" if they were born after 01-01-1980.



كود PHP:
<if condition="$bbuserinfo['birthday_search'] > '1980-01-01'">Too Young</if> 
and this one will show you "Too Young" if the user was born before 01-01-1980



كود PHP:
<if condition="$bbuserinfo['birthday_search'] < '1980-01-01'">Too Young</if> 
If Thread is or is not in X Forum Execute Code
--------------------------------------------------
For instance if you want a piece of code to appear within thread in a particular forum you can do so with this conditional.


كود PHP:
<if condition="$thread['forumid'] == X"></if> 
If you want to show the piece of code on every new reply on every thread but 1 forum you can use this which says if thread is in forum x do not show the code but show it for all the other threads out side of forum x.


كود PHP:
<if condition="$thread['forumid'] != X"></if> 
and of course you can define multiple forum ids with the array


كود PHP:
<if conditional="in_array($thread['forumid'], array(1,2,3,6))"></if> 
Is user moderator of any forum?
--------------------------------------------------
If the user is a moderator execute code.


كود PHP:
<if condition="can_moderate()"></if> 
Is user moderator of current forum?
--------------------------------------------------
If the user is a moderator of the current forum execute code


كود PHP:
<if condition="can_moderate($forum['forumid'])"></if> 
Is user moderator of x Forum?
--------------------------------------------------
If the user is a moderator of x forum execute code.


كود PHP:
<if condition="can_moderate($forum['x'])"></if> 
Note: can_moderate() may add queries to your page.

Is user the thread starter?
--------------------------------------------------
Is the user the thread creator? If so execute code.


كود PHP:
<if condition="$threadinfo['postuserid'] == $bbuserinfo['userid']"></if> 
Is user the thread starter?
--------------------------------------------------
If the thread is closed execute code.


كود PHP:
<if condition="!$show['closethread']"></if> 
Place Information After First Post
--------------------------------------------------
Useful for adding a advertisement or other information after the first post on every page.


كود PHP:
<if condition="!$GLOBALS['FIRSTPOSTID']"></if> 
Place Information After x Post On Every Page
--------------------------------------------------
This will add your code directly after the post number you define on each page. If you put 2 in place of x the code will appear on every page after the second post.


كود PHP:
<if condition="$post['postcount'] % $vboptions['maxposts'] == x"></if> 
Using If Else in Templates
--------------------------------------------------
You can also use If Else conditionals within your templates. The below shows you how to correctly do this.

كود PHP:
<if condition="$show['guest']">
    
Show Guest This Message
<else />
    
Show Everyone but guests this message
</if> 
توقيع » الناصح
القوالب المعربة التي نقدمها لك مجانا تعبنا في اعدادها و الاضافة و التعديل عليها لتصلك جاهزة سلسة لن تضيع معها اكثر من فترة التنصيب و تعديل المحتوى.. نرجو فقط ان تحترم جملة صغيرة في الاسفل و هي حقوق التعريب .. حتى نقدم لك المزيد

المسنجر ليس للرد على الاستفسارات و حل المشاكل انما هو للتواصل مع الاخوة و الاصدقاء




رد مع اقتباس
قديم 17 - 10 - 2009, 09:15 PM   رقم المشاركة : ( 2 (permalink) )
المدير العام

الصورة الرمزية الناصح

الملف الشخصي
رقــم العضويـــة : 1
تـاريخ التسجيـل : 26 - 1 - 2008
العــــــــمـــــــــر : 34
الــــــــجنــــــس :
الـــــدولـــــــــــة : المغرب
المشاركـــــــات : 2,094 [+]
آخــر تواجــــــــد : 25 - 1 - 2012(09:20 PM)
عدد الـــنقــــــاط : 60
قوة التـرشيــــح : الناصح تم تعطيل التقييم

 الأوسمة و جوائز
 بينات الاتصال بالعضو
 اخر مواضيع العضو

الناصح غير متواجد حالياً

افتراضي

تصميم مواقع كاملة
 admin@annasseh.com 
If unread PM
--------------------------------------------------
You can use this conditional within your templates to display something if a user has an unread PM.


كود PHP:
<if condition="$bbuserinfo['pmunread']"></if> 
If unread Notification
--------------------------------------------------
You can use this conditional to display something if a user has any unread Notification (for vB 3.7 onwards).


كود PHP:
<if condition="$show['notifications']"></if> 
If registration enabled
--------------------------------------------------
You can use this conditional to display something if registration is enabled on the board.


كود PHP:
<if condition="$show['registerbutton']"></if> 
If memberlist is viewable
--------------------------------------------------
You can use this conditional to display something if memberlist is enabled/viewable on the board.


كود PHP:
<if condition="$vboptions['enablememberlist']"></if> 
If notice is viewable
--------------------------------------------------
You can use this conditional to display something if displaying of notices conditions are met (for vB 3.7 onwards).


كود PHP:
<if condition="$show['notices']"></if> 
If Style Choosing enabled/viewable
--------------------------------------------------
You can use this conditional to display something if Style choosing dropdown is enabled/viewable in footer


كود PHP:
<if condition="$show['quickchooser']"></if> 
If Language choosing enabled
--------------------------------------------------
You can use this conditional to display something if language choosing is enabled.


كود PHP:
<if condition="$show['languagechooser']"></if> 
If Contact Us link enabled
--------------------------------------------------
You can use this conditional to display something if "Contact Us" is enabled.


كود PHP:
<if condition="$show['contactus']"></if> 
If AdminCP link enabled (or is administrator)
--------------------------------------------------
You can use this conditional to display something if "AdminCP" is enabled (or is administrator)


كود PHP:
<if condition="$show['admincplink']"></if> 
If ModCP link enabled (or is Super Moderator)
--------------------------------------------------
You can use this conditional to display something if "ModCP" is enabled (or is Super Moderator)


كود PHP:
<if condition="$show['modcplink']"></if> 

توقيع » الناصح
القوالب المعربة التي نقدمها لك مجانا تعبنا في اعدادها و الاضافة و التعديل عليها لتصلك جاهزة سلسة لن تضيع معها اكثر من فترة التنصيب و تعديل المحتوى.. نرجو فقط ان تحترم جملة صغيرة في الاسفل و هي حقوق التعريب .. حتى نقدم لك المزيد

المسنجر ليس للرد على الاستفسارات و حل المشاكل انما هو للتواصل مع الاخوة و الاصدقاء




  رد مع اقتباس
قديم 17 - 10 - 2009, 09:18 PM   رقم المشاركة : ( 3 (permalink) )
المدير العام

الصورة الرمزية الناصح

الملف الشخصي
رقــم العضويـــة : 1
تـاريخ التسجيـل : 26 - 1 - 2008
العــــــــمـــــــــر : 34
الــــــــجنــــــس :
الـــــدولـــــــــــة : المغرب
المشاركـــــــات : 2,094 [+]
آخــر تواجــــــــد : 25 - 1 - 2012(09:20 PM)
عدد الـــنقــــــاط : 60
قوة التـرشيــــح : الناصح تم تعطيل التقييم

 الأوسمة و جوائز
 بينات الاتصال بالعضو
 اخر مواضيع العضو

الناصح غير متواجد حالياً

افتراضي

خدمات حماية المواقع و المنتديات و السيرفرات
 admin@annasseh.com 
Browser compatibility has become quite an issue now due to a variety of them being used by different people. vB handles all browsers check with its is_browser function:-

If browser is Internet Explorer:-


كود PHP:
<if condition="is_browser('ie')"></if> 
توقيع » الناصح
القوالب المعربة التي نقدمها لك مجانا تعبنا في اعدادها و الاضافة و التعديل عليها لتصلك جاهزة سلسة لن تضيع معها اكثر من فترة التنصيب و تعديل المحتوى.. نرجو فقط ان تحترم جملة صغيرة في الاسفل و هي حقوق التعريب .. حتى نقدم لك المزيد

المسنجر ليس للرد على الاستفسارات و حل المشاكل انما هو للتواصل مع الاخوة و الاصدقاء




  رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)
أدوات الموضوع
انواع عرض الموضوع

تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة

الانتقال السريع

المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
العرض خاص جدا مساحة 3 جيجا + دومين + دعم فنى لمد ثلاثة اشهر almustadef.CoM ركن إعلانات المواقع و شركات الاستضافة 0 21 - 10 - 2009 06:55 PM
سيرفرات Dedicated تبدأ من 550 ريال وضعف المساحة مجانا طوال شهر رمضان مع الخليج هوست الخليج هوست ركن إعلانات المواقع و شركات الاستضافة 0 6 - 9 - 2009 02:56 AM
طريقة تفعيل مفتاح العرض A/a RSS هاكات منتديات vbulletin 0 29 - 7 - 2009 11:20 AM
اقوي عروض 2009 من الخليج هوست لخدمات الويب المت الخليج هوست ركن إعلانات المواقع و شركات الاستضافة 0 22 - 4 - 2009 04:05 PM



الساعة الآن 02:45 AM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Ads Management Version 3.0.1 by Saeed Al-Atwi
أي اتفاقات تجارية بين الأعضاء تعتبر إدارة المنتدى غير مسؤولة عنها
حماية Sup4ma_Team




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56