هاك المؤهل العلمي Education Degree in Postbit & Postbit_Legacy. vB 4.0

Dr.osamA

:: Coder ::
Coder/Designer
20 نوفمبر 2009
181
0
0
54
دمشق
www.alra7ba.net
MOD Education Degree in Postbit & Postbit_Legacy. vB 4.0 Beta 4.
هاك الؤهل العلمي في حقول الاعضاء
Description:
الوصف :
هو عبارة عن حقل اضافي في حقول الاعضاء الشخصية يضيف فيها العضو مؤهله العلمي و الثقافي لتعرف مع من لك شرف التعامل


This MOD adds you the option during the registration of the new member to learn more on how culture
The mod is just an idea occurred to me, i modify the code to be compatible with version 4.0.0

Instructions:
in your Admin Control Panel (ACP), please do the following:
ACP -> User Profile Fields -> Add New User Profile Field ->Profile Field Type -> Single-Selection Menu (select ‘Single-Selection Menu’ from the Drop-Down Menu) -> Please enter the following into the following fields (REMEMBER to make a note of the FieldID, because you will need to replace ALL the X’s in [fieldX] with it!!!
التركيب :
بسيط جدا حيث يتوجب عليك اضافة حقل جديد من حقول الاعضاء الاضافية و ذلك من لوحة التحكم تختار اضافة حقل جديد و تختار من القائمة المسندلة تختار قائمة بخيار احادي

فتفتح لك صفحة الحقل لتملاء البيانات


Title = Education Degree
العنوان : الموهل العلمي

Description = Put us here the Education Degree Please
الوصف : ضع ما تراه لائقا لذلك
خيارات : التي يمكن للعضو اختيار منها :
بدون
ابتدائي
اعدادي
ثانوي
جامعية
دراسات عليا


Profile Field Category = (Uncategorized)
Options =Without
elementary
middle
secondary
university
graduate
كود:
Without
elementary
middle
secondary
university
graduate

Set Default = Yes,Including a First Blank Optiion
تحديد الافتراضي : نعم

Display Order = You Select this (dependant on how many you already have)
ترتيب العرض: حسب ما هو موجود لديم اخر رقم عرض

Field Required = yes, at registration and profile updating
حقل مطلوب : نعم خلا التسجيل و تعديل البيانات

Field Editable by User = Yes
الحقل قابل للتعديل بواسطة العضو : نعم

Private Field = No
حقل خاص : لا

Field Searchable on Members List = No
الحقل قابل للبحث في قائمة الأعضاء : لا

Show on Members List = Yes or No
يشاهد في قائمة الأعضاء : نعم او لا بكيفك
see the attached photo
انظر المرفقات

SAVE
حفـــــــــــــظ

The second step
الخطوة التالية :

Edit the templates ( Postbit or Posbit_legacy)
نذهب الى قالب Postbit او Posbit_legacy عن طريف لوحة التحكم و البحث عن القالب

ACP -> Styles & Templates -> Style Manager -> <<>> -> Postbit Templates -> select the template that you use ( Postbit or Posbit_legacy) – This is for the Postbit_Legacy…

Now i hve 2 codes with frame or without frame
و الان لديك هنا خياران او بالاصح كودين احدهم مع اطار و الاخر بدون اطار لتضيف المؤهل و يظهر في معلومات العضو في المشاركات

in postbit_legacy find:

في قالب postbit_legacy ابحث عن الكود التالي

كود:
		<vb:if condition="$post['userid']">
			<hr />
			<dl class="userinfo_extra">

add below: code with frame

و اضف اسفله الكود التالي و انتبه هذا الكود مع اطار

كود:
<!-- Education Degree Start -->
<vb:if condition="$post[field[COLOR="Red"]X[/COLOR]]">
<div align="center" style="padding: 1px">
<div align="center" style="padding: 3px; border: 1px solid #000000; background: #FFFFFF ">
الؤهل العلمي : {vb:raw post.field[COLOR="Red"]X[/COLOR]}
</div></div>
</vb:if>
<!-- Education Degree End -->



OR code without frame
او اضف هذا الكود و هو بدون اطار

كود:
<!-- Education Degree Start -->
<vb:if condition="$post[field[COLOR="Red"]X[/COLOR]]"> المؤهل العالمي :<dd>{vb:raw post.field[COLOR="Red"]X[/COLOR]}</dd></vb:if>
<!-- Education Degree End -->

Replace the ‘X’ with your FieldID number
الان انتبه نعدل على الكود و نستبدل X التي هي بالاحمر برقم الحقل الذي قمنا بانشائه في الخطوة الاولى

and SAVE
ثم نحفظ العمل و نتمتع بالهاك

Enjoy!
رابط الهالك في الشركة

http://www.vbulletin.org/forum/showthread.php?t=229540

post in the vb.org
http://www.vbulletin.org/forum/showthread.php?t=229540

من افكار منتديات الرحبة

لا تنسونا من التقييم في الشركة جزاكم الله كل الخير

تحياااااااااااتي
 

المرفقات

  • cp1.jpg
    cp1.jpg
    55.7 KB · المشاهدات: 222
  • cp2.jpg
    cp2.jpg
    47.9 KB · المشاهدات: 222
  • cp3.jpg
    cp3.jpg
    8 KB · المشاهدات: 226
  • postbit.GIF
    postbit.GIF
    40.3 KB · المشاهدات: 239
  • postbit2.GIF
    postbit2.GIF
    42.4 KB · المشاهدات: 227