2010-05-01, 04:46 AM
بملف usercp2.php
ابحث عن (ستجدها بدأ من السطر 60 تقريبا)
ثم قم بحذفه, وكذلك احذف روابط الإشتراك من قوالب forumdisplay_threadlist و showthread
ابحث عن (ستجدها بدأ من السطر 60 تقريبا)
PHP كود :
if($mybb->input['action'] == "addsubscription")
{
if($mybb->input['type'] == "forum")
{
$forum = get_forum($mybb->input['fid']);
if(!$forum['fid'])
{
error($lang->error_invalidforum);
}
$forumpermissions = forum_permissions($forum['fid']);
if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0)
{
error_no_permission();
}
add_subscribed_forum($forum['fid']);
if($server_http_referer)
{
$url = $server_http_referer;
}
else
{
$url = "index.php";
}
redirect($url, $lang->redirect_forumsubscriptionadded);
}
else
{
$thread = get_thread($mybb->input['tid']);
if(!$thread['tid'])
{
error($lang->error_invalidthread);
}
add_breadcrumb($lang->nav_subthreads, "usercp.php?action=subscriptions");
add_breadcrumb($lang->nav_addsubscription);
$forumpermissions = forum_permissions($thread['fid']);
if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0)
{
error_no_permission();
}
$referrer = '';
if($server_http_referer)
{
$referrer = $server_http_referer;
}
require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;
$thread['subject'] = $parser->parse_badwords($thread['subject']);
$thread['subject'] = htmlspecialchars_uni($thread['subject']);
$lang->subscribe_to_thread = $lang->sprintf($lang->subscribe_to_thread, $thread['subject']);
if($mybb->user['subscriptionmethod'] == 1 || $mybb->user['subscriptionmethod'] == 0)
{
$notification_none_checked = "checked=\"checked\"";
}
else if($mybb->user['subscriptionmethod'] == 2)
{
$notification_instant_checked = "checked=\"checked\"";
}
eval("\$add_subscription = \"".$templates->get("usercp_addsubscription_thread")."\";");
output_page($add_subscription);
}
}
ثم قم بحذفه, وكذلك احذف روابط الإشتراك من قوالب forumdisplay_threadlist و showthread