Warning: Function get_magic_quotes_gpc() is deprecated in /home/forumbs/public_html/includes/class_core.php on line 1960
الاختام للنسخة 1.7.0 [الأرشيف] - منتديات بانى ستار

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

مشاهدة النسخة كاملة : الاختام للنسخة 1.7.0



Bakenam
03-17-2009, 02:41 AM
هاك الاختام للنسخة 1.7.0
قمت بتطوير الهاك الذي برمجه بو خليفة بعد اذنه طبعا
طريقة التركيب
افتح ملف show.php
وابحث عن

رمز Code:
if ($info_row[\'show_subject_all\'] == 1 or $info_row[\'show_subject_all\'] == 0 and $start == 0){$Smarty->display(\'post_show_topic.tpl\');}
ضع فوقها

رمز Code:
if ($subject_row[\'stampid\'] !=0) {$stampid_query = $DB->sql_query(\"SELECT * FROM \" . $db_prefix . \"stamps WHERE stampid=\'\" . $subject_row[\'stampid\'] . \"\'\");$stampid_row = $DB->sql_fetch_array($stampid_query);if ($stampid_row[\'url\']){$url = \"<img border=\'0\'src=\'\" . $stampid_row[\'url\'] . \"\' border=\'0\' alt=\'{$stampid_row[\'title\']}\' width=\'204\' height=\'134\'>\";}else{$url = \'\';}}$Smarty->assign(\'url\',$url);
افتح ملف topic_cp.phpوابحث عن

رمز Code:
elseif ($_REQUEST[\'D1\'] == 7) { $SF->html_title_page(\'فتح موضوع - (Powered By MySmartBB)\'); $update = $DB->sql_query(\"UPDATE \" . $db_prefix . \"subject SET close=\'0\' WHERE id=\'$id\'\"); if ($update) { if ($info_row[\'supermember_logs\'] == 1) { $DB->sql_query(\"INSERT INTO \" . $db_prefix . \"supermemberlogs(id,username,edit_action,subject_ti tle,subject_id,edit_date) VALUES(\'NULL\',\'\" . $SF->SafeSQL($member_row[\'username\']) . \"\',\'فتح موضوع\',\'\" . $SF->SafeSQL($subject_row[\'title\']) . \"\',\'\" . $subject_row[\'id\'] . \"\',\'\" . $date . \"\')\"); } $Smarty->assign(\'msgg\',\'فُتِحَ الموضوع\'); $Smarty->assign(\'GO\',\'show.php?main=1&id=\' . $id); $SF->go_to(\'show.php?main=1&id=\' . $id,2); $Smarty->display(\'loading.tpl\'); } }
ضع تحتها الاتي

رمز Code:
if ($_REQUEST[\'D1\'] == 8) {if ($groupper_row[\'admincp_allow\'] == 1 or $groupper_row[\'stamp_subject\'] == 1) {$getstamps_query = $DB->sql_query(\"SELECT * FROM \" . $db_prefix . \"stamps\");$getcurstamps_query = $DB->sql_query(\"SELECT * FROM \" . $db_prefix . \"stamps\");$getcurstamps_row = $DB->sql_fetch_array($getcurstamps_query);while ($getstamps_row = $DB->sql_fetch_array($getstamps_query)) {$getstamps_rows[] = $getstamps_row;$Smarty->assign(\'getstamps_rows\',$getstamps_rows);}$Smart y->assign(\'s_id\',$id);$Smarty->assign_by_ref(\'getcurstamps_row\',$getcurstamps_r ow);$Smarty->display(\'stamp_topic.tpl\');}}
وابحث ايضا عن

رمز Code:
if ($update) { if ($info_row[\'supermember_logs\'] == 1) { $DB->sql_query(\"INSERT INTO \" . $db_prefix . \"supermemberlogs(id,username,edit_action,subject_ti tle,subject_id,edit_date) VALUES(\'NULL\',\'\" . $SF->SafeSQL($member_row[\'username\']) . \"\',\'حذف الموضوع\',\'\" . $SF->SafeSQL($subject_row[\'title\']) . \"\',\'\" . $subject_row[\'id\'] . \"\',\'\" . $date . \"\')\"); } $SF->UpdateForumsArray(); $SF->UpdateSubForums(); $SF->UpdateLastReplyArray(); $Smarty->assign(\'msgg\',\'حُذِفَ الموضوع بنجاح\'); $Smarty->assign(\'GO\',\'forum.php?show=1&id=\' . $writer_row[\'section\']); $SF->go_to(\'forum.php?show=1&id=\' . $writer_row[\'section\'],2); $Smarty->display(\'loading.tpl\'); } } } } }
واضف تحتها التالي

رمز Code:
if ($_GET[\'update_stamp\'] == 1) {if ($groupper_row[\'admincp_allow\'] == 1 or $groupper_row[\'stamp_subject\'] == 1) {if (empty($_POST[\'s_D1\'])) { $SF->error(\'يرجى تعبئة كافة المعلومات\'); }$id = intval($_GET[\'id\']);$DB->sql_query(\"UPDATE \" . $db_prefix . \"subject SET stampid=\'\" . intval($_POST[\'s_D1\']) . \"\' WHERE id=\'$id\'\");$getstamptitle_query = $DB->sql_query(\"SELECT stampid,title FROM \" . $db_prefix . \"stamps WHERE stampid=\'\" . intval($_POST[\'s_D1\']) . \"\'\");$getstamptitle_row = $DB->sql_fetch_array($getstamptitle_query);if ($update) {if ($info_row[\'supermember_logs\'] == 1) { $DB->sql_query(\"INSERT INTO \" . $db_prefix . \"supermemberlogs(id,username,edit_action,subject_ti tle,subject_id,edit_date) VALUES(\'NULL\',\'\" . $SF->SafeSQL($member_row[\'username\']) . \"\',\'ختم الموضوع\',\'\" . $subject_row[\'title\'] . \"\',\'\" . $subject_row[\'id\'] . \"\',\'\" . $date . \"\')\"); }$SF->msg(\'تم ختم الموضوع بنجاح !\');$SF->msg(\'<br><a href=show.php?main=1&id=\' . $id .\'>ملاحظة: إذا كان متصفحك لا يدعم الإنتقال التلقائي اضغط هنا</a>\');$SF->go_to(\'show.php?main=1&id=\' . $id,2);}}}
افتح ملف admin/usergroup.php
وابحث عن

رمز Code:
,admincp_contactus,group_order
واستبدلها ب
رمز Code:
,admincp_contactus,group_order,stamp_subject
وابحث عن

رمز Code:
\" . $_POST[\'admincp_contactus\'] . \"\',\'\" . $_POST[\'group_order\'] . \"\',\'\" . $_POST[\'upload_attach_num\'] . \"\')\");
واضف بعدها

رمز Code:
$_POST[\'stamp_subject\'] . \"\'
وابحث عن

رمز Code:
close_subject=\'\" . $_POST[\'close_subject\'] . \"\',
اضف بعدها

رمز Code:
stamp_subject=\'\" . $_POST[\'stamp_subject\'] . \"\',
ح افتح ملف styles/main/template/post_subject-top.tpl
مع العلم ان main مجلد الستايل المراد تركيب الهاك عليه
وابحث عن

رمز Code:
{if $subject_row.close eq 0}<option value=\"6\">إغلاق الموضوع</option>{/if}
اضف بعدها

رمز Code:
{if $groupper_row.admincp_allow neq 1 && $groupper_row.stamp_subject eq 1}<option value=\"8\">ختم الموضوع</option>{/if}
وابحث ايضا عن

رمز Code:
{if $subject_row.close eq 1}<option value=\"7\">فتح الموضوع</option>{/if}
واضف بعدها

رمز Code:
<option value=\"8\">ختم الموضوع</option>
افتح ملف
styles/main/template/post_show-topic.tpl
وابحث عن

رمز Code:
{$****}
وضع بعده

رمز Code:
{$url} <br>
افتح الملف
admin/style/template/menu.tpl
وابحث عن

رمز Code:
{if $getgroupinfo_row.admincp_fixup eq 1}<br><table border=\"1\" cellpadding=\"3\" cellspacing=\"1\" style=\"{$border_style}\" bordercolor=\"#CCCCCC\" width=\"200\" height=\"1\" id=\"AutoNumber1\"><tr><td class=\"thead\" width=\"200\" height=\"5\" align=\"center\"><p align=\"center\" class=\"thead\">صيانة</td></tr><tr><td class=\"row1\" width=\"200\" height=\"1\" align=\"center\"><a href=\"fixup.php?subject=1&index=1\" target=\"main\">صيانة عداد المواضيع</a></td></tr><tr><td class=\"row1\" width=\"200\" height=\"1\" align=\"center\"><a href=\"fixup.php?repair=1\" target=\"main\">إصلاح جداول قواعد البيانات</a></td></tr><tr><td class=\"row1\" width=\"200\" height=\"1\" align=\"center\"><a href=\"fixup.php?cache=1\" target=\"main\">حذف ملفات القوالب المؤقتة</a></td></tr></table>{/if}
اضف بعدها

رمز Code:
{if $getgroupinfo_row.stamp_subject eq 1}<br><table border=\"1\" cellpadding=\"3\" cellspacing=\"1\" style=\"{$border_style}\" bordercolor=\"#CCCCCC\" width=\"200\" height=\"1\" id=\"AutoNumber1\"><tr><td class=\"thead\" width=\"200\" height=\"5\" align=\"center\"><p align=\"center\" class=\"thead\">خيارات لختم</td></tr><tr><td class=\"row1\" width=\"200\" height=\"1\" align=\"center\"><a href=\"stamp.php?add=1&index=1\">إ</a><a href=\"stamp.php?add=1&index=1\" target=\"main\">ضافة ختم جديد</a></td></tr><tr><td class=\"row1\" width=\"200\" height=\"1\" align=\"center\"><a href=\"stamp.php?main=1\" target=\"main\">التحكم في الختم</a></td></tr></table>{/if}
افتح الملف admin/style/template/usergroup_edit.tpl
وابحث عن

رمز Code:
<tr><td class=\"row1\" width=\"232\" height=\"1\" align=\"center\">امكانية اغلاق الردود</td><td class=\"row1\" width=\"222\" height=\"1\" align=\"center\"><select size=\"1\" name=\"close_subject\" style=\"font-family: Tahoma; font-size: 8pt\" dir=\"rtl\">{if $getgroupinfos_row.close_subject eq 1}<option selected value=\"1\">نعم</option><option value=\"0\">لا</option>{/if}{if $getgroupinfos_row.close_subject neq 1}<option value=\"1\">نعم</option><option selected value=\"0\">لا</option>{/if}</select></td></tr>
اضف بعدها

رمز Code:
<tr><td class=\"row1\" width=\"232\" height=\"1\" align=\"center\">امكانية ختم المواضيع</td><td class=\"row1\" width=\"222\" height=\"1\" align=\"center\"><select size=\"1\" name=\"stamp_subject\" style=\"font-family: Tahoma; font-size: 8pt\" dir=\"rtl\">{if $getgroupinfos_row.stamp_subject eq 1}<option selected value=\"1\">نعم</option><option value=\"0\">لا</option>{/if}{if $getgroupinfos_row.stamp_subject neq 1}<option value=\"1\">نعم</option><option selected value=\"0\">لا</option>{/if}</select></td></tr>
افتح الملف admin/style/template/usergroup_add.tpl
وابحث عن

رمز Code:
<tr><td class=\"row1\" width=\"232\" height=\"1\" align=\"center\">امكانية اغلاق الردود</td><td class=\"row1\" width=\"222\" height=\"1\" align=\"center\"><select size=\"1\" name=\"close_subject\" style=\"font-family: Tahoma; font-size: 8pt\" dir=\"rtl\"><option selected value=\"1\">نعم</option><option value=\"0\">لا</option></select></td></tr>
اضف بعدها

رمز Code:
<tr><td class=\"row1\" width=\"232\" height=\"1\" align=\"center\">امكانية ختم المواضيع</td><td class=\"row1\" width=\"222\" height=\"1\" align=\"center\"><select size=\"1\" name=\"stamp_subject\" style=\"font-family: Tahoma; font-size: 8pt\" dir=\"rtl\"><option selected value=\"1\">نعم</option><option value=\"0\">لا</option></select></td></tr>
بامكانك تحميل ملفات الهاك من هالرابط
http://upload.traidnt.net/dlds6s10213.zip.html (http://upload.traidnt.net/dlds6s10213.zip.html)
ابس لسا في كمان خطوة ارفع هالملفات بالملف المضغوط على موقعك كلو عمساره كما هي محطوطة بالفولدارات والي مش محطوط بالفولدر ارفعها للمجلد الرئيسي
الي يبي الملفات معدلة جاهزة مع ملفات الهاك
من الرابط
تم حذف الرابط لإحتوائه فايروس
بخصوص الملفات المعدلة الملفات الي مش موجودة بفولدر موجودة مباشرة ضعها بالمجلد الرئيسي والملفات الموجودة بمجلد ملفات الادمن ارفعها داخل مجلد لوحة التحكم والملفات الموجودة بمجلد ملفات ستايل الادمن ارفعها عالمسار admin/style/template
والملفات الموجودة بمجلد ملفات الصور ارفعها عالمسار image
والملفات الموجود بمجلد ملفات ستايل المنتدى
ارفعها على مجلد القوالب في الستايل هذا فقط للذين حملو الملفات المعدلة
وكل من يريد ان يركب الهاك طبعا يبقى اخر خطوةاذهب الى الرابط www.xxxx.com/forum/mysbb_Mod.php (http://www.xxxx.com/forum/mysbb_Mod.php)
تابع وسيتم تنصيب الهاك وبعدها اذهب الى موضوع انظر الى القائمة المنسدلة الخاصة بخيارات الادارة ستجد ختم الموضوع اختم اي موضوع تريد


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

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-top-right-10.gifافتح ملف
styles/main/template/post_show-topic.tpl
وابحث عن

شيفره برمجيه :

رمز Code:
{$****}
وضع بعده

شيفره برمجيه :

رمز Code:
{$url} <br>
http://traidnt.net/vb/AGT04/misc/quotes/quot-bot-left.gifhttp://traidnt.net/vb/AGT04/misc/quotes/quot-bot-right.gif

واعمل بدالها هذه الخطوة
افتح ملف
styles/main/template/post_show-topic.tpl
وابحث عن

رمز Code:
{$****}
وضع فوقها وليس بعدها

رمز Code:
{$url} <br>