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

مشاهدة النسخة كاملة : هاك ربط الفيس بوك بمنتداك تعريب كامل مع الشرح


alfares
04-14-2009, 04:20 PM
رمز PHP:

<!--<div align="center"><b><font face="Arial"><font size="4"><font color="darkslategray">تم بفضل الله تعريب هاك ربط الفيس بوك البرنامج الاول فى العالم للمجموعات الاجتماعية</font></font></font></b>
<b><font face="Arial"><font size="4"><font color="darkslategray">بالمنتدى وذلك لكى تجلب اعضاء وان يستمتع اعضائك المشتركين فى الفيس بوك من داخل منتداك http://www.mtwer.com/vb/images/smilies/smile.gif نعم هذه حقيقة </font></font></font></b>

<b><font face="Arial"><font size="4"><font color="darkslategray">حقوق التعريب</font></font></font></b>

<b><font face="Arial"><font size="4"><font color="darkslategray">تعود حقوق التعريب كاملة<font color="darkgreen"> لمطور</font> و<font color="red"> توب لاين</font> ( تعريب : <font color="dimgray">عاشق الشهادة</font> )</font></font></font></b>


<b><font face="Arial"><font size="4"><font color="darkslategray">التركيب</font></font></font></b>

<b><font face="Arial"><font size="4"><font color="darkslategray">نقوم برفع الملفات الموجودة داخل مجلد Upload داخل مجلد المنتدى الرئيسى vb</font></font></font></b>


<b><font face="Arial"><font size="4"><font color="darkslategray">ثم نقوم برفع البرودكت للمنتدى </font></font></font></b>


<b><font face="Arial"><font size="4"><font color="darkslategray">الان ناتى للتعديل على القوالب ارجوا التركيز</font></font></font></b>

<b><font face="Arial"><font size="4"><font color="darkslategray">قبل ان نبدأ بعون الله </font></font></font></b>

<b><font face="Arial"><font size="4"><font color="darkslategray">لا تنسوا ذكر الله</font></font></font></b>

<b><font face="Arial"><font size="6"><font color="darkred">لا اله الا الله - محمد رسول الله</font></font></font></b>


<b><font face="Arial"><font size="4"><font color="darkslategray">نبدا التعديل على القوالب بعون الله تعالى</font></font></font></b>


<b><font face="Arial"><font size="4"><font color="darkslategray">اولا نفتح قالب <font color="indigo">footer</font></font></font></font></b>

<b><font face="Arial"><font size="4"><font color="darkslategray">ثم نقوم بالبحث عن</font></font></font></b>


<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">رمز PHP:</div>
<div class="alt2" dir="ltr" style="
margin: 0px;
padding: 6px;
border: 1px inset;
width: 640px;
height: 34px;
text-align: left;
overflow: auto">
<code style="white-space:nowrap">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700"><</span><span style="color: #0000BB">script&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/javascript"</span><span style="color: #007700">>&nbsp; </span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</code>
</div>
</div></div>// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>




ثم نضع بعده مباشرتا



رمز PHP:
<!-- fbconnect -->




رمز PHP:

$fbconnect_init [/CENTER]
<!-- / fbconnect -->




ثم نقوم بفتح قالب navbar


ثم نبحث عن



رمز PHP:
<!-- / login form -->


رمز PHP:

<div align="center">

</div>



ثم نضع بعده مباشرتا



رمز PHP:
<!-- fbconnect -->




رمز PHP:

<center>
<span class="fbconnect" style="height:21px">
<img src="http://static.ak.fbcdn.net/images/loaders/indicator_white_small.gif" alt="Connect with Facebook" />[/CENTER]
</span>
[CENTER]</center>
<!-- / fbconnect -->





ثم نقوم بفتح قالب newreply



نبحث بداخله عن




رمز PHP:
<form action="newreply.php?do=postreply&amp;t=$threadid" name="vbform" method="post"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])"</if>>




نستبدله بهذا الكود




رمز PHP:
$fb_prepare_submit




رمز PHP:

<form action="newreply.php?do=postreply&amp;t=$threadid" name="vbform" method="post"<if condition="!is_browser('webtv')"> onsubmit="return fb_prepare_submit(this, 0)"</if>>



فى نفس القالب نبحث عن



رمز PHP:
<input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[submit_reply]" accesskey="s" tabindex="1" />




نستبدله بهذا الكود




رمز PHP:
<input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[submit_reply]" accesskey="s" tabindex="1" onclick="isPreview = false" />




ايضا مازلنا فى نفس القالب




نبحث عن



رمز PHP:
<input type="submit" class="button" name="sbutton" value="$vbphrase[submit_reply]" accesskey="s" tabindex="1" />





نستبدله بهذا الكود



رمز PHP:
<input type="submit" class="button" name="sbutton" value="$vbphrase[submit_reply]" accesskey="s" tabindex="1" onclick="isPreview = false" />




انتهينا من هذا القالب



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



اللهم صلى وسلم وبارك عليه صلاة ترضيك وترضيه




نقوم بفتح هذا القالب newthread



نبحث عن



رمز PHP:
<form action="newthread.php?do=postthread&amp;f=$forumid" method="post" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.subject.value, $vboptions[postminchars])"</if>>


رمز PHP:

<form action="newthread.php?do=postthread&amp;f=$forumid" method="post" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return fb_prepare_submit(this, this.subject.value)"</if>><div align="center">


<font size="4"><font color="#2f4f4f">نقوم باستبداله بالكود التالى</font></font>



<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">رمز PHP:</div>
<div class="alt2" dir="ltr" style="
margin: 0px;
padding: 6px;
border: 1px inset;
width: 640px;
height: 34px;
text-align: left;
overflow: auto">
<code style="white-space:nowrap">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">$fb_prepare_submit&nbsp; </span>
</span>
</code><!-- php buffer end -->
</code>
</div>
</div>
</div>



ثم نبحث فى نفس القالب عن الكود التالى



رمز PHP:
<input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />




ثم نقوم باستبداله بهذا الكود




رمز PHP:
<input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" onclick="isPreview = false" />




ثم نقوم بالبحث عن الكود التالى




رمز PHP:
<input type="submit" class="button" name="sbutton" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />




رمز PHP:





ثم نستبدله بهذا الكود




رمز PHP:
<input type="submit" class="button" name="sbutton" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" onclick="isPreview = false" />




انتهينا من هذا القالب



فلنذهب سويا الى القالب الاخر الذى سوف نقوم بالتعديل عليه




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




نقوم بفتح قالب SHOWTHREAD



نبحث عن




رمز PHP:
<form action="newreply.php?do=postreply&amp;t=$threadid" method="post" name="vbform" onsubmit="return qr_prepare_submit(this, $vboptions[postminchars]);" id="qrform">




نقوم باستبداله بهذا الكود




رمز PHP:
<form action="newreply.php?do=postreply&amp;t=$threadid" method="post" name="vbform" onsubmit="return fb_qr_prepare_submit(this, $vboptions[postminchars]);" id="qrform">




ثم نبحث عن




رمز PHP:
<!-- / quick reply -->




رمز PHP:





نضع قبله ( انتبه قبل الكود وليس بعده )



رمز PHP:
$fb_qr_prepare_submit




رمز PHP:





الله تعالى انتهينا من هذا القالب



نقوم بفتح القالب USERCP_SHELL



نبحث عن



رمز PHP:
<tr><td class="$navclass[password]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editpassword">$vbphrase[edit_email_and_password]</a></td></tr>


رمز PHP:

<tr><td class="$navclass[password]" nowrap="nowrap"><a class="smallfont" href="#" onclick="facebook_prompt_permission('email'); return false;">$vbphrase[fbconnect_email_settings]</a></td></tr><div align="center">


<font size="4"><font color="#2f4f4f">نستبدله بهذا</font></font>



<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">رمز PHP:</div>
<div class="alt2" dir="ltr" style="
margin: 0px;
padding: 6px;
border: 1px inset;
width: 640px;
height: 34px;
text-align: left;
overflow: auto">
<code style="white-space:nowrap">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700"><if&nbsp;</span><span style="color: #0000BB">condition</span><span style="color: #007700">=</span><span style="color: #DD0000">"$bbuserinfo[fbemail]"</span><span style="color: #007700">>&nbsp; </span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</code>
</div>
</div>
</div><else />
<tr><td class="$navclass[password]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editpassword">$vbphrase[edit_email_and_password]</a></td></tr>
</if>




ثم نقوم بفتح قالب modifyprofile


ونبحث عن



رمز PHP:
<fieldset class="fieldset">


رمز PHP:

<legend>$vbphrase[email_and_password]</legend><div align="center">

</div><table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td>$vbphrase[click_button_below_edit_email]</td>
</tr>
<tr>
<td>
<!-- don't remove -->
<input type="image" src="$vboptions[cleargifurl]" style="width: 1px; height: 1px;" />
<!-- / don't remove -->
<input type="submit" class="button" style="font-weight:normal" value="$vbphrase[edit_email_and_password]" name="gotopassword" />
</td>
</tr>
</table>
</fieldset>




ونستبدله بهذا



رمز PHP:
<fieldset class="fieldset">




رمز PHP:

[CENTER]<if condition="$bbuserinfo[fbemail]">
<legend>$vbphrase[fbconnect_email_settings]</legend>
<a href="#" onclick="facebook_prompt_permission('email'); return false;">$vbphrase[set_email_notification_settings]</a>
<else />
<legend>$vbphrase[email_and_password]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td>$vbphrase[click_button_below_edit_email]</td>
</tr>
<tr>
<td>
<!-- don't remove -->
<input type="image" src="$vboptions[cleargifurl]" style="width: 1px; height: 1px;" />
<!-- / don't remove -->
<input type="submit" class="button" style="font-weight:normal" value="$vbphrase[edit_email_and_password]" name="gotopassword" />
</td>
</tr>
</table>
</if>
</fieldset>




نقوم بفتح قالب STANDARD_ERROR


نبحث عن



رمز PHP:
</fieldset>


رمز PHP:

<div align="center">

</div>



نضع قبله ( انتبه قبل الكود )


رمز PHP:
<!-- fbconnect -->




رمز PHP:

$fbconnect_button
<!-- / fbconnect -->




ثم نقوم بفتح القالب STANDARD_ERROR_LITE



نبحث عن



رمز PHP:
</fieldset>


رمز PHP:

<div align="center">

</div>



نضع قبله ( انتبه قبل الكود )


رمز PHP:
<!-- fbconnect -->




رمز PHP:

$fbconnect_button
<!-- / fbconnect -->




نقوم بفتح القالب STANDARD_ERROR_LOGIN


نبحث عن




رمز PHP:
</fieldset>




رمز PHP:





نضع قبله ( انتبه قبل الكود )


رمز PHP:
<!-- fbconnect -->




رمز PHP:

$fbconnect_button
<!-- / fbconnect -->




وانتهى امر تركيب الاكواد والملفات


ناتى يا احبة لربط الهاك بالفيس بوك مهمة جدا



لن اقوم بالشرح قبل ان ندعوا الى اخواننا المستضعفين فى الارض



اللهم انصر اخواننا المستضعفين فى فلسطين والعراق والشيشان وافغانستان


وفى كشمير وفى كل بقاع الارض يا رحيم بالعباد




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



سوف تجد فى قائمة لوحة تحكم المنتدى الاتى اتبع الشرح



هذه هى صورة القائمة الجانبية




http://up.mtwer.com/files/1317.jpg (http://up.mtwer.com/index.php?action=viewfile&id=1317)






يوجد بها احبتنا




- الاعدادات

-قوالب تغذية الاخبار
-بيانات الخرائط
- حقوق التعريب http://www.mtwer.com/vb/images/smilies/redface.gif



الان ندخل الى الاعدادات تابع بكل دقة معى الله يبارك فيكم



http://up.mtwer.com/files/1318.jpg

(http://up.mtwer.com/index.php?action=viewfile&id=1318)

الان ياتى اهم شىء ركز معى احنا الان فاتحين على صفحة الاعدادات



نتوجه للرابط الاتى على الــ Face Book




http://www.facebook.com/developershttp://i.ixnp.com/images/v3.76/t.gif (http://www.facebook.com/developers)



بعدها بتسجل دخول عادى جدا من خلال الرابط المذكور سلفا



بتجد مثل هذه الصفحة امامك مباشرتا




http://up.mtwer.com/files/1319.jpghttp://i.ixnp.com/images/v3.76/t.gif (http://up.mtwer.com/index.php?action=viewfile&id=1319)

(http://up.mtwer.com/index.php?action=viewfile&id=1319)



الحين نرى ان هناك مربع بداخله كلمة Create one



بنضغط عليها يا احبة بتظهر لنا هذه الصفحة




http://up.mtwer.com/files/1320.jpghttp://i.ixnp.com/images/v3.76/t.gif (http://up.mtwer.com/index.php?action=viewfile&id=1320)

(http://up.mtwer.com/index.php?action=viewfile&id=1320)


كما هو موضح بتنشط انك موافق على الاتصال


وبتكتب اسم الجروب الخاص بك



بعدها بنتابع وبتظهر لنا هذه الصفحة




http://up.mtwer.com/files/1321.jpg (http://up.mtwer.com/index.php?action=viewfile&id=1321)

(http://up.mtwer.com/index.php?action=viewfile&id=1321)


كما هو موضح ظهر لنا اكواد وارقام وضعت عليها مربع اسود هام جدا



بعدها بتستكمل كافة بينات الاتصال فى الصفحة



ويجب وضع رابط المنتدى كما هو موضح



ثم بعد الانتهاء نحفظ الصفحة



سوف تظهر لنا هذه القائمة







http://up.mtwer.com/files/1322.jpg (http://up.mtwer.com/index.php?action=viewfile&id=1322)

(http://up.mtwer.com/index.php?action=viewfile&id=1322)




بها كافة البيانات التى تم اضافتها



طبعا المفترض تكون سرية لك فقط ولكن هذا مجرد مثال وسوف يتم حذفه



الان نعود الى الاعدادات فى الهاك فى لوحة تحكم المنتدى



الان اول اعداد كما هو موضح فى الاعدادات لديكم هو


Facebook Application API Key



سوف اقوم باخذ الكود الخاص به من الفيس بوك والذى كان برقم



API Key


257c02ae8cda1bb5079d2b7223cf219d



ثانى اعداد كما هو موضح فى الاعدادات بعنوان


Facebook Application Secret




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



Application Secret


249f648bf52d07070211396521d10041




ثالث اعداد وهو رقم الجروب الذى تم ربطه للتواصل وهو ايضا موضح اسفل تلك الاكواد بعنوان



رقم عضوية منشىء المجموعة الأفتراضى



وهو كما كان موضح فى الصورة لدى انا



Application ID


50971863634


http://www.traidnt.net/vb/images/attach/zip.gifasw.zip (http://www.traidnt.net/vb/attachment.php?attachmentid=363477&d=1239704532) (54.8

بكل تاكيد اوضح ان لكل عضوية وكل جروب رقم انا اعطيت هذه للمثال فقط



اما باقى الاعدادات فاتركها كما هى ولا تعدل فيها شىء ثم احفظ الاعدادات



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



ان كان خطأ فهو منى ومن نفسى ومن الشيطان

وان كان خير فهو من الله تعالى وتوفيق منه

لا تنسونا من صالح دعائكم فى ظاهر الغيب





للامانه منقول وحبيت انكم تستفيدوا منه