طريقة تركيب الهاك
اولاً ازرع هذا الامر في قاعدة البيانات حقت المنتدى
ALTER TABLE " . TABLE_PREFIX . "user ADD receivebulletin SMALLINT (5) UNSIGNED DEFAULT '1' NOT NULL ;
ALTER TABLE " . TABLE_PREFIX . "user ADD receivebulletin_type SMALLINT (5) UNSIGNED DEFAULT '1' NOT NULL ;
أفتح تامبلت (modifyoptions)
ابحث عن هذا
<tr>
<td><label for="cb_showemail"><input type="checkbox" name="options[showemail]" value="1" id="cb_showemail" $checked[showemail] />$vbphrase[receive_email_from_other_members]</label></td>
</tr>
بعده اضف هذا
<tr>
<td><label for="html"><input type="checkbox" name="html" value="1" id="html" $checked[receivebulletin] />$vbphrase[receive_email_from_html]</label></td>
</tr>
أفتح ملف (profile.php)
أبحث عن هذا الكود
globalize($_POST, array('newstyleset' => INT, 'dst' => INT, 'showvbcode' => INT, 'pmpopup' => INT, 'umaxposts' => INT, 'prunedays' => INT,
'timezoneoffset', 'startofweek' => INT, 'languageid' => INT, 'threadedmode' => INT, 'invisible' => INT, 'autosubscribe' => INT,
'options', 'modifyavatar'));
استبدله بهذا
globalize($_POST, array('html' => INT, 'newstyleset' => INT, 'dst' => INT, 'showvbcode' => INT, 'pmpopup' => INT, 'umaxposts' => INT, 'prunedays' => INT,
'timezoneoffset', 'startofweek' => INT, 'languageid' => INT, 'threadedmode' => INT, 'invisible' => INT, 'autosubscribe' => INT,
'options', 'modifyavatar'));
وبنفس التمبلت ابحث عن
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
" . $updatestyles . "
showvbcode = $showvbcode,
pmpopup = $pmpopup,
maxposts = $umaxposts,
daysprune = $prunedays,
timezoneoffset = '$timezoneoffset',
startofweek = $startofweek,
languageid = $languageid,
threadedmode = $threadedmode,
autosubscribe = $autosubscribe,
options = " . convert_array_to_bits($options, $_USEROPTIONS) . "
WHERE userid = $bbuserinfo[userid]
");
اعلاه مباشره اضف الاتي
$receivebulletin = ($html) ? 1 : 0;
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
receivebulletin = $receivebulletin
WHERE userid = $bbuserinfo[userid]
");
أفتح ملف (admincp/index.php)
أبحث عن هذا الكود
['send_email_to_users'], 'email.php?do=start', '|');
استبدله بهذا
construct_nav_option('Send Html Email', 'html.php?', '<br />');
construct_nav_option($vbphrase['send_email_to_users'], 'email.php?do=start', '|');
اضف العباره التاليه في اللغه
receive_email_from_html
الترجمه
'أستقبال النشرة الدوريه على البريد الخاص'