พัฒนาโดย : ..::Frans::..
Version : 2.2.6
ดาวน์โหลดได้ที่ : https://www.mindphp.com/download/files/115-1 ... 6-zip.html
ไฟล์ที่ใช้ในการติดตั้ง
>>includes/constants.php,
>>includes/functions.php
วิธีติดตั้ง
เปิดไฟล์ : includes/constants.php,
ค้นหา
โค้ด: เลือกทั้งหมด
// Additional constants
โค้ด: เลือกทั้งหมด
define('WPM_CONFIG_ID', 1);
โค้ด: เลือกทั้งหมด
?>
โค้ด: เลือกทั้งหมด
define('WPM_TABLE', $table_prefix . 'wpm');
ค้นหา
โค้ด: เลือกทั้งหมด
// Special case... the user is effectively banned, but we allow founders to login
if (defined('IN_CHECK_BAN') && $result['user_row']['user_type'] != USER_FOUNDER)
{
return;
}
โค้ด: เลือกทั้งหมด
/*
* Welcome PM on First Login (WPM)
* By DualFusion /adjusted by ..::Frans::.. for phpbb3 GOLD
*/
$sql = 'SELECT wpm_enable FROM '.WPM_TABLE.' WHERE wpm_config_id =1';
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if($row['wpm_enable'] && $user->data['user_lastvisit'] == 0)
{
include($phpbb_root_path . 'includes/functions_wpm.' . $phpEx);
$wpm = new welcome_pm();
$wpm->get_vars();
$wpm->send_wpm();
}
/* End WPM */