Mohannad
01-05-2006, 01:09 AM
بسم الله الرحمن الرحيم
قمت بتطوير هاك النشره الدوريه من النسخه vb_2 الى vb_3
النسخه من تعريب ابو عامر في الـvb2
اولا ارفع جميع الملفات commbull و commbull_phrases الى مجلد المنتدى vb/admincp
طريقة التركيب
ثانيا
تعديل تمبليت
Modify User Option Templates -> 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>
</if>
اضف بعده الكود التالي
<tr>
<td><label for="commbull"><input type="checkbox" name="commbull" value="1" id="commbull" $checked[receivebulletin] />$vbphrase[receive_email_from_commbull]</label></td>
</tr>
<tr>
<td><br />$vbphrase[newsletterformat]<br /><label for="commbull"><input type="checkbox" name="commbull_type" value="1" id="commbull_type" $checked[receivebulletin_type] />$vbphrase[type_email_from_commbull]</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('commbull_type' => INT, 'commbull' => 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 = ($commbull) ? 1 : 0;
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
receivebulletin = $receivebulletin
WHERE userid = $bbuserinfo[userid]
");
$receivebulletin_type = ($commbull_type) ? 1 : 0;
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
receivebulletin_type = $receivebulletin_type
WHERE userid = $bbuserinfo[userid]
");
افتح الملف
admincp/index.php
ابحث عن الكود التالي
construct_nav_option($vbphrase['view_banned_users'], "../$modcpdir/banning.php?do=modify", '<br />');
[/CODE]
وضع الكود التالي اسفله
[CODE] construct_nav_option('نشرة المنتدى الدوريه', 'commbull.php?', '<br />');
رابط الهاك الاصلي
http://www.arab55.com/vb/showthread.php?p=25353
انتهى وبالتوفيق
وأشكر من قام على هذا الهاك الأخ العزيز
أستاذي أبو عمر
نايس مان
مع تحياتي لكم
في النهايه الهاك منقوووول من سوالف سوفت
انا عن نفسي ركبته شغال 100%
يالي محتاج اي مساعده انا تحت امره تحاتي لكم :icon31:
قمت بتطوير هاك النشره الدوريه من النسخه vb_2 الى vb_3
النسخه من تعريب ابو عامر في الـvb2
اولا ارفع جميع الملفات commbull و commbull_phrases الى مجلد المنتدى vb/admincp
طريقة التركيب
ثانيا
تعديل تمبليت
Modify User Option Templates -> 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>
</if>
اضف بعده الكود التالي
<tr>
<td><label for="commbull"><input type="checkbox" name="commbull" value="1" id="commbull" $checked[receivebulletin] />$vbphrase[receive_email_from_commbull]</label></td>
</tr>
<tr>
<td><br />$vbphrase[newsletterformat]<br /><label for="commbull"><input type="checkbox" name="commbull_type" value="1" id="commbull_type" $checked[receivebulletin_type] />$vbphrase[type_email_from_commbull]</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('commbull_type' => INT, 'commbull' => 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 = ($commbull) ? 1 : 0;
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
receivebulletin = $receivebulletin
WHERE userid = $bbuserinfo[userid]
");
$receivebulletin_type = ($commbull_type) ? 1 : 0;
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
receivebulletin_type = $receivebulletin_type
WHERE userid = $bbuserinfo[userid]
");
افتح الملف
admincp/index.php
ابحث عن الكود التالي
construct_nav_option($vbphrase['view_banned_users'], "../$modcpdir/banning.php?do=modify", '<br />');
[/CODE]
وضع الكود التالي اسفله
[CODE] construct_nav_option('نشرة المنتدى الدوريه', 'commbull.php?', '<br />');
رابط الهاك الاصلي
http://www.arab55.com/vb/showthread.php?p=25353
انتهى وبالتوفيق
وأشكر من قام على هذا الهاك الأخ العزيز
أستاذي أبو عمر
نايس مان
مع تحياتي لكم
في النهايه الهاك منقوووول من سوالف سوفت
انا عن نفسي ركبته شغال 100%
يالي محتاج اي مساعده انا تحت امره تحاتي لكم :icon31: