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

مشاهدة النسخة كاملة : هاك النشره الدورية وبمييزات عاليه _vb3 يوجد مثال بداخل


Mr.ATef
24-09-2005, 07:07 PM
بسم الله الرحمن الرحيم
اولا ارفع جميع الملفات 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.me33d.com/up/file//8441.jpg
انتهى وبالتوفيق