السلام عليكم
اكيد كلكم تعرفون بالسكربت هايف ميل الذي يقدم حسابات بريد مجانيه مثل الهوتميل
فانا اتسال هل من الممكن دمجه مع phpbbبمعني التسجيل يكون هنا وهناك هو من اصل فيه دمج مع الvbفهل من الممكن تحويله للphpbb
فانا سوف اعطيكم بعد الاختصارات حوله هناك ملف اسمه hivevb_install.php اضعه في مجلد الadminثم استدعيه وسوف يثبت جداول في التمبلت ومن ثم اقوم
ادخل الى التمبلت وابحث عن Registration Templates
وادخل الى registeradult
ومن ثم ابحث عن $customfields_required
واضيف بعدها
">
كود:
<!-- *** -->
<tr>
<td bgcolor="{tableheadbgcolor}" colspan="2">
<normalfont color="{tableheadtextcolor}" class="thtcolor">
<b>Sign Up for an Email Account</b>
</normalfont>
<smallfont color="{tableheadtextcolor}" class="thtcolor">
This section is optional.
</smallfont></td>
</tr>
<!-- *** -->
<tr>
<td bgcolor="{firstaltcolor}"><normalfont>
<b>Get your own $hive_domainname email account?</b>
</normalfont><br><smallfont>
If you select yes please choose an account name below.
</smallfont></td>
<td bgcolor="{firstaltcolor}"><normalfont>
<input type="radio" name="hive_signup" value="yes" checked> yes
<input type="radio" name="hive_signup" value="no"> no
</normalfont></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}"><normalfont>
<b>Account name:</b>
</normalfont><br><smallfont>
The password for your email account will be the same as your forum account.
</smallfont></td>
<td bgcolor="{secondaltcolor}"><normalfont>
<input type="text" name="hive_username" class="bginput" />
<select name="hive_userdomain">
$hive_domainname_options
</select>
</normalfont></td>
</tr>
<!-- *** -->
ومن ثم افتح ملف الmember.php
وابحث عن
كود:
if ($newpassword!=$newpasswordconfirm) {
eval("standarderror(\"".gettemplate("error_passwordmismatch")."\");");
exit;
}
ومن ثم افتح ملف register.php
وابحث عن
كود:
if ($url==$HTTP_REFERER) {
$url=urlencode($url);
}
واضيف بعدها
كود:
// @@@@@@@@@@
// <hivemail>
$hivemail_filepath = '/home/yoursite/public_html/hivemail';
if ($action == 'mailsignup') {
if ($bbuserinfo['userid'] != 0) {
$action = 'register';
define('VB_PLUGIN', true);
require($hivemail_filepath.'/includes/vbulletin_plugin.php');
if ($bbuserinfo['hiveuserid'] != 0 and
$hiveuser = $DB_Hive->query_first("
SELECT userid FROM hive_user
WHERE userid = $bbuserinfo[hiveuserid]
")) {
header('Location: usercp.php');
}
eval('dooutput("'.gettemplate('hivemail_signup').'");');
exit;
} else {
$action = 'signup';
}
}
if ($HTTP_POST_VARS['action'] == 'addmail') {
if ($bbuserinfo['userid'] != 0) {
$action = 'register';
define('VB_PLUGIN', true);
require($hivemail_filepath.'/includes/vbulletin_plugin.php');
if ($bbuserinfo['hiveuserid'] != 0 and
$hiveuser = $DB_Hive->query_first("
SELECT userid FROM hive_user
WHERE userid = $bbuserinfo[hiveuserid]
")) {
header('Location: usercp.php');
}
$email = $bbuserinfo['email'];
hivemail_register_user($bbuserinfo['userid'], false);
hivemail_update_password($bbuserinfo['password'], $bbuserinfo['userid']);
eval('standardredirect("'.gettemplate('hivemail_thankyou').'", "usercp.php");');
exit;
} else {
$action = 'signup';
}
}
define('VB_PLUGIN', true);
require($hivemail_filepath.'/includes/vbulletin_plugin.php');
if (($action == 'signup' or $action == 'register') and
$bbuserinfo['userid'] != 0 and
!$allowmultiregs and
($bbuserinfo['hiveuserid'] == 0 or
!$hiveuser = $DB_Hive->query_first("
SELECT userid FROM hive_user
WHERE userid = $bbuserinfo[hiveuserid]
"))) {
header('Location: register.php?action=mailsignup');
exit;
}
// </hivemail>
// @@@@@@@@@@@
وفي نفس الملف ابحث عن
كود:
$userid=$DB_site->insert_id();
واضيف بعدها
كود:
// @@@@@@@@@@
// <hivemail>
if ($hive_signup == 'yes') {
hivemail_register_user($userid);
}
// </hivemail>
// @@@@@@@@@@@
وارجوا من خبراء التحويل بين ال vbوالphpbb
ان يساعدوني وشكرا
والملف hivevb_install.php في المرفق للتجربة
وللمزيد http://manual.hivemail.com/topic/vb_2_121
او هل من الممكن دمجه مع النيوك