السلام عليكم ورحمة الله وبركاته
يسعدني ان اشارك للمرة الاولي في هذا المنتدي المميز ويسعدني ان اقدم لكم اولي الهاكات هنا وهو هاك مميز ومهم ويختصر علي كثير من الزوار عملية التسجيل
مثال علي الهاك
www.d3mk.net/vb
شرح تركيب الهاك
1- قم باغلاق المنتدي واخذ نسخه احتياطية لملف الاستايل الذي ستقوم بالتعديل علية
2- قم بالذهاب الي
http://www.facebook.com/developers/ وانشاء تطبيق جديد
3- قم بربط منتداك مع التطبيق من خلال Canvas الخاص بالتطبيق
4- قم برفع ملفات الهاك
5- قم باستيراد البرودكت الخاص بالهاك
6- قم بالذهاب الي خيارات المنتدي ثم FB Connect Options وقم باضافة API Key + Secret الخاصين بالتطيق وسوف تحصل عليهم اثناء انشائك للتطبيق
7 - قم بالذهاب الي خيارات المنتدي ثم News-Feed Templates وقم بحفظها حتي ان لم تقم بتغيير شيء
8- التعديل علي القوالب
عدد القوالب التي سيتم التعديل عليها 10 قوالب
بعد تعديل كل قالب قم بحفظة
قالب : footer
ابحث عن :
كود PHP:
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
اسفلة اضف :
كود PHP:
<!-- fbconnect -->
$fbconnect_init
<!-- / fbconnect -->
قالب : navbar
ابحث عن :
كود PHP:
<!-- / login form -->
اسفلة اضف :
كود PHP:
<!-- fbconnect -->
<center>
<span class="fbconnect" style="height:21px">
<img src="http://static.ak.fbcdn.net/images/loaders/indicator_white_small.gif" alt="Connect with Facebook" />
</span>
</center>
<!-- / fbconnect -->
قالب : newreply
ابحث عن :
كود PHP:
<form action="newreply.php?do=postreply&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
<form action="newreply.php?do=postreply&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&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:
$fb_prepare_submit
<form action="newthread.php?do=postthread&f=$forumid" method="post" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return fb_prepare_submit(this, this.subject.value)"</if>>
ابحث عن :
كود 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:
<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&t=$threadid" method="post" name="vbform" onsubmit="return qr_prepare_submit(this, $vboptions[postminchars]);" id="qrform">
استبدلة ب :
كود PHP:
<form action="newreply.php?do=postreply&t=$threadid" method="post" name="vbform" onsubmit="return fb_qr_prepare_submit(this, $vboptions[postminchars]);" id="qrform">
Find:
كود PHP:
<!-- / quick reply -->
اضف فوقة:
كود PHP:
$fb_qr_prepare_submit
قالب : 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:
<if condition="$bbuserinfo[fbemail]">
<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>
<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">
<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>
</fieldset>
استبدلة ب :
كود PHP:
<fieldset class="fieldset">
<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:
<!-- fbconnect -->
$fbconnect_button
<!-- / fbconnect -->
قالب : STANDARD_ERROR_LITE
ابحث عن :
كود PHP:
</fieldset>
اضف فوقة :
كود PHP:
<!-- fbconnect -->
$fbconnect_button
<!-- / fbconnect -->
قالب : STANDARD_ERROR_LOGIN
ابحث عن :
كود PHP:
</fieldset>
اضف فوقة :
كود PHP:
<!-- fbconnect -->
$fbconnect_button
<!-- / fbconnect -->
وبكذا نكون انتهينا من تركيب الهاك
ملفات الهاك والبرودكت في المرفقات
وتحياتي الي كل اعضاء مرسي الفي بي هذا شرح سريع وان شاء الله راح اقوم بتعريب الهاك ووضع شرح مصور لكم هنا