Warning: Function get_magic_quotes_gpc() is deprecated in /home/forumbs/public_html/includes/class_core.php on line 1960

Warning: Array and string offset access syntax with curly braces is deprecated in ..../includes/functions.php on line 865

Warning: Array and string offset access syntax with curly braces is deprecated in ..../includes/functions.php on line 1303

Warning: Array and string offset access syntax with curly braces is deprecated in ..../includes/functions.php on line 4416

Warning: Array and string offset access syntax with curly braces is deprecated in ..../includes/functions.php on line 7343

Warning: Methods with the same name as their class will not be constructors in a future version of PHP; vBulletinHook has a deprecated constructor in ..../includes/class_hook.php on line 27

Warning: Methods with the same name as their class will not be constructors in a future version of PHP; vB_XML_Parser has a deprecated constructor in ..../includes/class_xml.php on line 52

Warning: Methods with the same name as their class will not be constructors in a future version of PHP; vB_XML_Builder has a deprecated constructor in ..../includes/class_xml.php on line 689
[ شرح ] اضافة حقل للعضو [الأرشيف] - منتديات بانى ستار

المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : [ شرح ] اضافة حقل للعضو



Cat
12-28-2008, 11:05 PM
بسم الله الرحمن الرحيم

والصلاة والسلام على اشرف خلق الله سيدنا محمد وعلى آله وصحبه ومن والاه


اخواني الزوار والاعضاء سنقوم بشرح اضافة حقل للعضو في هذا الموضوع


سنتطرق الى معنى جديد وهو الحقل field


اولا وعلى سبيل المثال سنقوم بعمل حقل اضافي للجنس

سواء كان ذكر او انثى

بحيث يتم اختياره اثناء تسجيل العضو لعضويته. .. أي في صفحة التسجيل

وهذا شكل مبسط في صفحة التسجيل


http://www.lewan-qtr.net/exm/field/1.gif


الشرح ينقسم لقسمان:
1- قسم في لوحة التحكم
2- قسم في قالب postbit_legacy

#######################################

اولا نذهب الى لوحة التحكم للمشرف العام
www.xxxx.net/vb/admincp (http://www.xxxx.net/vb/admincp)

ثم نتجه الى الحقول الاضافيه للعضو
ومنه نختار اضافة حقل معلومات جديد

http://www.lewan-qtr.net/exm/field/2.gif

ثم نختار من نوع الحقل
single-selection menu
وهو قائمة الاختيار

http://www.lewan-qtr.net/exm/field/3.gif



بعد ذلك نقوم بملئ الخانات كالتالي:

http://www.lewan-qtr.net/exm/field/4.gif


ونعتمد الحفظ.


في اسفل الصفحه ستجد خيارات العرض

تختار مثلا في صفحة التسجيل

http://www.lewan-qtr.net/exm/field/5.gif

لاحظ الجدول التالي


http://www.lewan-qtr.net/exm/field/6.gif

انظر الى رقم الحقل (( 8 ))

احفظ هذا الحقل عندك (( field8 ))



هنا انتهينا من القسم الاول وهو الضبط في لوحة التحكم.


###########################

الان القسم الثاني وهو التعديل في قالب postbit_legacy

وهو القالب الخاص لعرض المواضيع


نقوم بفتح هذا القالب في الفرونت بيج

ونذهب الى قائمة الحقول الخاصه ببيانات العضو

ونضع مؤشر الفأره هنا

http://www.lewan-qtr.net/exm/field/7.gif




ومن ثم نذهب الى صفحة code الاكواد للصفحه نفسها بالفرونت بيج

ونضع هذا الكود


رمز Code:
<input type="****" name="City" size="24" dir="rtl" value="الجنس : $post[field8]" style="border-style:solid; border-width:1px; font-family:MS Sans Serif; font-size:10px; vertical-align:middle; letter-spacing:0;; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px; background-color:#FFF9ED; color:#1B5DB5">
لاحظ ان رقم الحقل هو 8 وانت سوف تغير هذا الرقم على حسب رقم الحقل الذي انشأته انت.

ويكون الناتج النهائي:

http://www.lewan-qtr.net/exm/field/10.gif

اما اذا اردت الحقل عباره عن صوره بدل الكلمه

تضع هذا الكود بدل السابق

رمز Code:
<p><if condition="$post[field8]"><a title="$post[field8]الجنس:" href="#post$post[postid]"><img border="0" src="http://www.XXXX.com/vb/images/any-folder/$post[field8].gif"></a></if></p><p>
التغيير في هذا الكود سيكون عباره عن اربع تغييرات
ثلاثه منهم تغير رقم الحقل للرقم الذي يناسبك
وامتداد الصوره في أي مجلد.

وصل اللهم وسلم على سيدنا محمد وعلى اله وصحبه وسلم