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

مشاهدة النسخة كاملة : حركة بسطية -صورة شخصية افتراضية للذكر والأنثى-



Bakenam
03-17-2009, 04:38 PM
http://traidnt.net/vb/AGT04/misc/quotes/quot-top-left.gifاقتباسhttp://traidnt.net/vb/AGT04/misc/quotes/quot-top-right.gifhttp://traidnt.net/vb/AGT04/misc/quotes/quot-by-left.gif المشاركة الأصلية أضيفت بواسطة : المرابط الفلسطينيhttp://traidnt.net/vb/AGT04/misc/quotes/quot-by-right.gifhttp://traidnt.net/vb/AGT04/misc/quotes/quot-top-right-10.gifبسم الله الرحمن الرحيم ..

اخواني الكرام لن اطيل عليكم ..
فوقتي انا ايضاً لا يسمح بالإطالة ..

الحركة هي حركة جمالية .. استخدمها منذ فترة .. وطلبها احد الأخوة الأكارم

فحالياً اطرحها للجميع للإفادة ..

بسم الله نبدأ اولاً بالأمثلة والشرح ..

وظيفة الهاك :
في حالة عدم تعيين صورة شخصية للعضوة .. يتم وضع صورة افتراضية اعتماداً على الجنس

مثال :
http://www.pal-stall.net/up/uploads/35bb84f991.png http://www.pal-stall.net/up/uploads/65dc113f1a.png

تظهر في الرد والموضوع والرسائل الخاصة والهوية الشخصية ..


الآن نأتي الى طريقة التعديل ..

افتح القالب : post_show-topic

ابحث عن :
رمز Code:
{if $writer_row.avater_path neq "" and $info_row.allow_avatar eq 1}<p style="margin-top: 0; margin-bottom: 0"><img alt="" src="{$writer_row.avater_path|escape:"html"}" alt="الصورة الشخصية للعضو {$writer_row.username|escape:"html"}" border="0"></p><br />{/if}{/if}
واستبدله بـ :

رمز Code:
{if $writer_row.avater_path neq "" and $info_row.allow_avatar eq 1}<p style="margin-top: 0; margin-bottom: 0"><img alt="" src="{$writer_row.avater_path|escape:"html"}" alt="الصورة الشخصية للعضو {$writer_row.username|escape:"html"}" border="0"></p><br />{/if}{if $writer_row.avater_path eq "" and $writer_row.user_gender eq "f"}<p style="margin-top: 0; margin-bottom: 0"><img alt="" src="{$image_path}/female.png" alt="الصورة الشخصية للعضو {$writer_row.username|escape:"html"}" border="0"></p><br />{/if}{if $writer_row.avater_path eq "" and $writer_row.user_gender eq "m"}<p style="margin-top: 0; margin-bottom: 0"><img alt="" src="{$image_path}/male.png" alt="الصورة الشخصية للعضو {$writer_row.username|escape:"html"}" border="0"></p><br />{/if}
افتح القالب : Post_show-reply1

ابحث عن :

رمز Code:
{if $replier_row.avater_path neq "" and $info_row.allow_avatar eq 1}<p style="margin-top: 0; margin-bottom: 0"><img src="{$replier_row.avater_path|escape:"html"}" alt="الصورة الشخصية لـ{$replier_row.username|escape:"html"}" border="0" /></p><br />{/if}
واستبدله بـ :

رمز Code:
{if $replier_row.avater_path neq "" and $info_row.allow_avatar eq 1}<p style="margin-top: 0; margin-bottom: 0"><img src="{$replier_row.avater_path|escape:"html"}" alt="الصورة الشخصية لـ{$replier_row.username|escape:"html"}" border="0" /></p><br />{/if} {if $replier_row.avater_path eq "" and $replier_row.user_gender eq "f"}<p style="margin-top: 0; margin-bottom: 0"><img src="{$image_path}/female.png" alt="الصورة الشخصية لـ{$replier_row.username|escape:"html"}" border="0" /></p><br />{/if} {if $replier_row.avater_path eq "" and $replier_row.user_gender eq "m"}<p style="margin-top: 0; margin-bottom: 0"><img src="{$image_path}/male.png" alt="الصورة الشخصية لـ{$replier_row.username|escape:"html"}" border="0" /></p><br /> {/if}
افتح القالب : profile

وابحث عن :
رمز Code:
{if $profile_row.avater_path eq ""}لا توجد صوره شخصيه{/if} {if $profile_row.avater_path neq "" and $info_row.allow_avatar eq 1}<img alt="" src="{$profile_row.avater_path|escape:"html"}" border="0" />{/if}
واستبدله بـ :
رمز Code:
{if $profile_row.avater_path eq "" and $profile_row.user_gender eq "m"}<img alt="" src="{$image_path}/male.png" border="0" />{/if} {if $profile_row.avater_path eq "" and $profile_row.user_gender eq "f"}<img alt="" src="{$image_path}/female.png" border="0" />{/if} {if $profile_row.avater_path neq "" and $info_row.allow_avatar eq 1}<img alt="" src="{$profile_row.avater_path|escape:"html"}" border="0" />{/if}

افتح القالب : usercp_pm-show

وابحث عن :

رمز Code:
{if $sender_row.avater_path neq "" and $info_row.allow_avatar eq 1}<img src="{$sender_row.avater_path|escape:"html"}" alt="الصورة الشخصية للعضو {$sender_row.username|escape:"html"}" border="0" /></p>{/if}

واستبدله بـ :

رمز Code:
{if $sender_row.avater_path neq ""}<img src="{$sender_row.avater_path|escape:"html"}" alt="الصورة الشخصية للعضو {$sender_row.username|escape:"html"}" border="0" /></p>{/if} {if $sender_row.avater_path eq "" and $sender_row.user_gender eq "f"}<img src="{$image_path}/female.png" alt="لا يوجد صورة الشخصية للعضو {$sender_row.username|escape:"html"}" border="0" /></p>{/if} {if $sender_row.avater_path eq "" and $sender_row.user_gender eq "m"}<img src="{$iamge_path}/male.png" alt="لا يوجد صورة شخصية للعضو {$sender_row.username|escape:"html"}" border="0" /></p>{/if}

بعد الإنتهاء من التعديلات .. قم برفع الصور الموجودة في الملف المرفق .. الى داخل ملف صور الستايل ..

stlyes/smart/images مثلاً .. مع تغيير smart الى اسم مجلد الستايل الموجود لديك

ملاحظة : يوجد بالمرفقات جميع القوالب المطلوبة معدلة وجاهزة للرفع .. للستايل smart الجديد والخاص بالنسخة 1.7.0
ملاحظة: الهاك يعمل على جميع النسخ والستايلات في حالة التعديل وليس تبديل القوالب
ملاحظة : يمكن الإكتفاء بأول قالبين .. او 3 .. ولا داعي لتعديل كل القوالب اذا لم ترغب بذلك ..


تحياتي للجميع وبالتوفيق .. ^_^ http://traidnt.net/vb/AGT04/misc/quotes/quot-bot-left.gifhttp://traidnt.net/vb/AGT04/misc/quotes/quot-bot-right.gif

المرفقات



http://mysmartbb.com/forums/attach.p...load=1&id=1934 (http://mysmartbb.com/forums/attach.p...load=1&id=1934)