สำหรับ SMF 2.0.xxแก้ไขไฟล์:file $sourcedir/ManageSettings.php
ค้นหา -->>
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
เพิ่มไว้หลัง -->>
//eFloatingbar by Ricky.
$txt['admin_efloatingbar'],
array('check', 'efloatingbar_mode_guest'),
array('text', 'efloatingbar_text_guest'),
array('check', 'efloatingbar_mode_logged'),
array('text', 'efloatingbar_text_logged'),
array('check', 'efloatingbar_css_enable'),
array('large_text', 'efloatingbar_user_style', '6" style="width:95%'),
//End eFloatingbar
file $themedir/index.template.php
ค้นหา -->>
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
เพิ่มไว้ก่อน -->>
//eFloating Bar Mod by Ricky.
if ($context['user']['is_guest'] && !empty($modSettings['efloatingbar_mode_guest']) && $context['current_action'] != 'login' && $context['current_action'] != 'register')
echo '<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/floating-bar-guest.js"></script>';
if ($context['user']['is_logged'] && !empty($modSettings['efloatingbar_mode_logged']) && $context['current_action'] != 'login' && $context['current_action'] != 'register')
echo'
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/floating-bar-logged.js"></script>
';
echo
'<style type="text/css"> ',
(empty($modSettings['efloatingbar_css_enable']))? $txt['efloatingbar_css_default'] : $modSettings['efloatingbar_user_style'] , '</style>';
//End eFloating Bar Mod
ค้นหา -->>
<body>';
เพิ่มไว้หลัง -->>
if ($context['user']['is_guest'] && !empty($modSettings['efloatingbar_mode_guest']) && $context['current_action'] != 'login' && $context['current_action'] != 'register')
{
echo '<div id="topbar">
<span style="float:right"><a href="javascript:void(0);" onClick="closebar(); return false"><strong>[x]</strong></a></span>
', (empty($modSettings['efloatingbar_text_guest'])) ? $txt['efloatingbar_text_guest_default'] : $modSettings['efloatingbar_text_guest'], '
</div>';
}
//Show the efloating bar only if the MOD is enabled for Members
if ($context['user']['is_logged'] && !empty($modSettings['efloatingbar_mode_logged']) && $context['current_action'] != 'login' && $context['current_action'] != 'register')
{
echo '<div id="topbar">
<span style="float:right"><a href="javascript:void(0);" onClick="closebar(); return false"><strong>[x]</strong></a></span>
', (empty($modSettings['efloatingbar_text_logged'])) ? $txt['efloatingbar_text_logged_default'] : $modSettings['efloatingbar_text_logged'], '
</div>';
}
file $languagedir/Modifications.thai-utf8.php
เพิ่ม -->>
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Comดาวน์โหลด: Floatingbar.rar แตกไฟล์แล้วเอาไปไว้ใน Themes/default
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Comลิงค์หัวข้อ:
http://dexmore.com/topic/294