22 พฤษภาคม 2555, 17:30:30
ยินดีต้อนรับผู้เยี่ยมชม
  • noavata
  • ยินดีต้อนรับคุณ, ผู้เยี่ยมชม กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
    เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
Page Rank

ทำเว็บไซต์ | แต่งบอร์ด | ออกแบบ | SMF | Joomla | Drupal | WordPress | JQuery | CMS | ECommerce | Tel. +668-08577477

ส่งหัวข้อนี้พิมพ์ หน้า: 1 2 Next
icon message ผู้เขียน หัวข้อ: ติดตั้ง+ปรับแต่ง Advanced nneonneo's Shoutbox 1.21 [AdvSB_1.21]  (อ่าน 2033 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!NeverDie

United States Minor Outlying Islands   หญิง ผู้เริ่มต้นกระทู้นี้ ออฟไลน์ เว็บไซต์
  • ชื่อ: nneonneo's Shoutbox
  • ผู้เขียน: nneonneo  
  • นำเสนอโดย: DexMoreGroup
  • ปรเภท: New Feature
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 14 มีนาคม 2552
  • ต้นฉบับ: nneonneo's Shoutbox

รายละเอียด
      กล่องสนทนานี้มีความสามารถเพิ่มเติมจากแบบธรรมดาคือ มีเสียงในขณะที่มีข้อความเข้า มีสัญลักษณ์แสดงอารมณ์มาให้ด้วยโดยที่เราไม่ต้องเพิ่มเติมด้วยตัวเองหลังจากติดตั้งแล้ว และรองรับ BBC ที่มีให้ SMF ทั้งหมด

ตัวอย่าง




ดาวน์โหลด AdvSB_1.21ก่อนนะ..
ขออภัย! ส่วนนี้สงวนไว้เฉพาะสมาชิกเท่านั้น กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

แก้ไขไฟล์:

file $boarddir/index.php

ค้นหา -->>
โค๊ด: [Select]
// Get everything started up...
define('SMF', 1);

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
if(isset($_GET['yshout']))
{
$yshout_from_index=true;
include_once('yshout/yshout.php');
exit;
}

file $themedir/index.template.php

ค้นหา -->>
โค๊ด: [Select]
</head>
<body>';

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
';

// script for shoutbox upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><!]]><![CDATA[[CDATA[
var current_header_sb = ', empty($options['collapse_shoutbox']) ? 'false' : 'true', ';

function shrinkHeaderSB(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkSB=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_shoutbox", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("upshrinkSB").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkSBHeader").style.display = mode ? "none" : "";

current_header_sb = mode;
}
function sbToggle() { shrinkHeaderSB(!current_header_sb); }
// ]]]]><![CDATA[></script>

ค้นหา -->>
โค๊ด: [Select]
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

เพิ่มไว้หลัง -->>
ขออภัย! ส่วนนี้สงวนไว้เฉพาะสมาชิกเท่านั้น กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

ค้นหา -->>
โค๊ด: [Select]
echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '">&nbsp;</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '">&nbsp;</td>';
}

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
function shoutbox()
{
global $txt, $options, $settings, $context, $boarddir;

echo '<div class="tborder" style="margin-top: 0; margin-bottom:7px;' , $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' : '', '">
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">MoreShout</div>
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">
<tr>
<td class="windowbg2">';
// SHOUTBOX HERE
global $txt,$context,$boarddir;
if(allowedTo('yshout_view'))
{
echo '<div id="yshout">';
include_once($boarddir.'/yshout/yshout.php');
}
echo '</div>
<div class="smalltext" style="float:right; margin-right:15px;"><a href="http://dexmore.com/">Modification by DexMore Group</a></div>';
if($context['user']['is_guest'])
echo $txt['yshout_no_guests'];
// SHOUTBOX END
echo '
</td>
</tr>
</table></div>';
}

file $themedir/BoardIndex.template

ค้นหา -->>
โค๊ด: [Select]
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>';
}

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// Show the shoutbox!
shoutbox();

file $sourcedir/ManagePermissions.php

ค้นหา -->>
โค๊ด: [Select]
// This is just a helpful array of permissions guests... cannot have.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
// YSHOUT HERE - permissions
$permissionList['membergroup']['yshout'] = array('yshout_view' => false, 'yshout_post' => false, 'yshout_moderate' => false);
// YSHOUT END - permissions

file themedir/languages/Modifications.thai-utf8

เพิ่ม -->>
โค๊ด: [Select]
// ---- Begin modification - nneonneo's Shoutbox ----
$txt['yshout_shoutbox'] = 'Shout Box';
$txt['yshout_loading'] = '...loading shoutbox...';
$txt['yshout_rp_banned'] = "Sorry, you've been banned from the shoutbox.";
$txt['yshout_no_guests'] = 'Sorry, you must be logged in to use the shoutbox!';
$txt['yshout_ban_conf'] = 'Ban Confirmation';
$txt['yshout_select_mode'] = 'Select Ban Mode:';
$txt['yshout_rp'] = 'Reading and Posting';
$txt['yshout_p'] = 'Posting only';
$txt['yshout_error'] = 'ERROR: ';
$txt['yshout_no_user'] = 'User not found.';
$txt['yshout_del_success'] = 'Shout deleted.';
$txt['yshout_no_action'] = 'Nothing to do.';
$txt['yshout_history'] = 'History';
$txt['yshout_commands'] = 'Commands';
$txt['yshout_exthistory'] = 'ExtendedHistory';
$txt['yshout_hide'] = 'Hide';
$txt['yshout_show'] = 'Show';
$txt['yshout_admlinks'] = 'AdminLinks';
$txt['yshout_return'] = 'ReturnToShoutbox';
$txt['yshout_p_banned'] = 'You are banned from posting.';
$txt['yshout_banned'] = 'Banned';
$txt['yshout_shout_button'] = 'Shout!';
$txt['yshout_banlist_caption'] = 'Shout Box Bans (click to unban)';
$txt['yshout_ip_bans'] = 'IP Bans for ';
$txt['yshout_username_bans'] = 'Username Bans for ';
$txt['yshout_ban_type_error'] = 'use /banuser or /banip!';
$txt['yshout_ban_mode_error'] = 'Must have mode argument.';
$txt['yshout_imp_slash_error'] = 'Prefix shout with "/" (slash character)! See "/help impersonate" for details.';
$txt['yshout_imp_uname_error'] = 'No username given!';
$txt['yshout_imp_max4_error'] = 'Maximum 4 arguments!';
$txt['yshout_cmd_reference'] = 'Command Reference';
$txt['yshout_cmdlist'] = array(
'/help' => ' [command]: Help on a command, or all if no command is specified.',
'/return' => ': Go back to the Shout Box.',
'/pi' => ' [digits]: What is the value of pi to the nth digit?',
'/me' => ' &lt;message&gt;: Emotes the message (e.g. <span class="meaction"> * Nathaniel likes dogs</span>)');
$txt['yshout_cmdlistadmin'] = array(
'/clear' => ': Completely empty the Shout Box.',
'/help' => ' [command]: Help on a command, or all if no command is specified.',
'/return' => ': Go back to the Shout Box.',
'/banlist' => ': List all bans currently in place. Unban the users by clicking on their names.',
'/banuser' => ' &lt;mode&gt; &lt;username&gt;: Ban a user by name. You should use the user\'s real username, otherwise the ban can be evaded. Mode can be "u" to unban, "rp" for read and post bans, or "p" for a post ban.',
'/banip' => ' &lt;mode&gt; &lt;IP&gt;: Ban a user by IP. Mode can be "u" to unban, "rp" for read and post bans, or "p" for a post ban.',
'/impersonate' => ' &lt;user&gt; [userlevel] [ip] [userid] /[shout text]: Impersonate a user. Shout text must be prefixed by a "/" or else it will fail.<blockquote><div>
&lt;user&gt;: Username to use<br />
[userlevel]: User Level to use. 0=normal, 1=mod, 2=admin<br />
[ip]: IP address to use, as 1.2.3.4<br />
[userid]: User ID from forum, to fix profile link</div></blockquote>',
'/lock' => ' &lt;message&gt;: Lock the shoutbox for maintenance with the specified message.',
'/unlock' => ': Release the shoutbox from maintenance.');
$txt['yshout_maintenance'] = 'Locked';
$txt['yshout_lock_arg_error'] = 'You need to specify a reason for maintenance!';
$txt['yshout_lock_changed'] = 'Changed maintenance reason to "%s".';
$txt['yshout_lock_success'] = 'Locked shoutbox for maintenance with reason "%s".';
$txt['yshout_unlock_already'] = 'Failed to unlock: shoutbox isn\'t locked!';
$txt['yshout_unlock_success'] = 'Successfully unlocked shoutbox.';
$txt['yshout_no_posting'] = 'Sorry, you cannot post to the shoutbox.';
$txt['yshout_smilies'] = "Smilies";
// Permissions
$txt['permissiongroup_yshout'] = 'Shoutbox';
$txt['permissionname_yshout_view'] = 'View shoutbox';
$txt['permissionname_yshout_post'] = 'Post in shoutbox';
$txt['permissionname_yshout_moderate'] = 'Moderate shoutbox';
$txt['permissionhelp_yshout_view'] = 'This permission allows access to the shoutbox. If it is enabled, users will see the shoutbox and the chats in it.';
$txt['permissionhelp_yshout_post'] = 'This permission allows users to post messages to the shoutbox. If it is disabled, users cannot enter any messages.';
$txt['permissionhelp_yshout_moderate'] = 'If this permission is set, users will be allowed to moderate the shoutbox -- deleting, banning and clearing among other features.';
// ---- End modification - nneonneo's Shoutbox ----

อัฟโหลดโฟลเดอร์ yshout ไปไว้ใน $boarddir อัฟโหลดไฟล์รูปทั้งหมดไปไว้ใน $themedir/images

$boarddir/yshout/chats

CHMOD history.home.txt & home.txt =777

จบขั้นตอนการติดตั้ง..

ต่อไปเป็นการปรับแต่ง

ขออภัย! ส่วนนี้สงวนไว้เฉพาะสมาชิกเท่านั้น กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เรียบร้อย มี Shout แจ่ม ๆ ไว้เมาท์แตกได้แล้ว..

วิธีใช้: ผู้ดูแล >> แก้ไขการอนุญาต >> [กลุ่มสมาชิก] ขั้นสูง

Shoutbox
View shoutbox = ให้มองเห็น Shout
Post in shoutbox = ให้โพสข้อความใน Shout
Moderate shoutbox = ให้ลบข้อความ และแบนผู้ใช้ใน Shout (สำหรับกลุ่มผู้ดูแล)

ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Firefox 3.5.7   see ip บันทึกการเข้า
ดูรายการสิ่งของบัตรผ่านห้องเกมส์ใช้ได้ 30 วัน  

-:-DexMore.Com แหล่งมั่วสุมทางปัญญา-:-
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 1 เมื่อ: 27 กรกฎาคม 2554, 18:07:57
บรรทัดที่ 855 ครับมีปัญหา



แก้ไขอย่างไรครับผม

ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Firefox 5.0   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 2 เมื่อ: 27 กรกฎาคม 2554, 18:59:20
เอาโค้ดมาดูครับ..

ดูแล้วมันไม่เห็นผิดตรงใหนนี่ครับลองแก้
โค๊ด: [Select]
echo $txt['yshout_no_guests'];

เป็น
โค๊ด: [Select]
echo '' ,$txt['yshout_no_guests'], '';

หรือเปลี่ยน elseif เป็น if ครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Firefox 5.0   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 3 เมื่อ: 27 กรกฎาคม 2554, 19:06:37
โค๊ด: [Select]
function shoutbox()
{
global $txt, $options, $settings, $context, $boarddir;

echo '<div class="tborder" style="margin-top: 0; margin-bottom:7px;' , $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' : '', '">
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">MoreShout</div>
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">
<tr>
<td class="windowbg2">';
// SHOUTBOX HERE
global $txt,$context,$boarddir;
if(allowedTo('yshout_view'))
{
echo '<div id="yshout">';
include_once($boarddir.'/yshout/yshout.php');
}
echo '</div>
<div class="smalltext"><span style="float:right; margin-right:15px;"><a href="http://www.dexmore.com/index.php">Modification by DexMore Group</a></span></div>';
elseif($context['user']['is_guest'])
echo $txt['yshout_no_guests'];
// SHOUTBOX END
echo '
</td>
</tr>
</table></div>';
}
?>

ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Firefox 5.0   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 4 เมื่อ: 27 กรกฎาคม 2554, 19:33:54
ได้แล้วครับผม แก้เป็น  if ครับ แล้วแก้แบนออกยังไงครับผมพอดีดันไปแบนตัวเองครับ แล้วก็ตรงฟังช์ชั้น emo ไม่แสดงครับ



ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Firefox 5.0   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 5 เมื่อ: 27 กรกฎาคม 2554, 19:51:59
-->> ปลดแบน nneonneo Shout Box ยังไงคะ..

ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Firefox 5.0   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 6 เมื่อ: 28 กรกฎาคม 2554, 23:36:09
สอบถามนิดนึงครับ ว่าติดตั้งแล้ว ใช้งานได้ปกติครับ แต่ทำไมปุ่ม Open Smiley  ตัวอีโมไม่มีครับ ต้องแก้ตรงไหนครับผม

ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Microsoft Internet Explorer 7.0   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
***



Thailand   ชาย ออฟไลน์ เว็บไซต์
icon message
general ความคิดเห็นที่ 7 เมื่อ: 24 สิงหาคม 2554, 14:36:09
สอบถามเพิ่มเติมครับ
ตัว nneonneo's Shoutbox นี้เวลาติดตั้งแล้วจะแสดงทุกหน้าครับผม

คือผมต้องการให้อยู่หน้าแรกด้านล่างหน้าเดียวต้องแก้ที่ไฟล์ ตัวไหนครับผม



ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Firefox 3.6   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 8 เมื่อ: 24 สิงหาคม 2554, 14:39:12
เอาไฟล์ที่อยู่ใน index.template.php มาไว้ใน BoardIndex.template.php ครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Firefox 6.0   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*
***



Thailand   ชาย ออฟไลน์ เว็บไซต์
icon message
general ความคิดเห็นที่ 9 เมื่อ: 24 สิงหาคม 2554, 18:42:28
ขอบขอบคุณพี่หนุ่ยมากครับผม ทำสำเร็จแล้วครับผม



ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Firefox 3.6   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 10 เมื่อ: 5 ตุลาคม 2554, 21:40:01
http://www.koratok.com/index.php

i do you step but it s not good.
- -''
thank you . but i will try again
dexmore group is super hero.!!!!!!!!



ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Chrome 14.0.835.186   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 11 เมื่อ: 5 ตุลาคม 2554, 22:13:07
What is the problem I need a user name and password to test

ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Firefox 7.0.1   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 12 เมื่อ: 6 ตุลาคม 2554, 11:20:43
HI P'uncle
i send my account and password to you .

thank you very much

ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Chrome 14.0.835.186   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
*
*


!Personal

Germany   ชาย ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 13 เมื่อ: 6 ตุลาคม 2554, 12:28:55
OK, I get it. If you need to edit the file. I need a user account FTP.

ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Firefox 7.0.1   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 14 เมื่อ: 6 ตุลาคม 2554, 15:15:33
Thank you very much

now i send PM ,FTP user&password already

Thank you very much

ลิงค์หัวข้อ: http://dexmore.com/topic/299
Windows XP    Chrome 14.0.835.186   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
ส่งหัวข้อนี้พิมพ์ หน้า: 1 2 Next
กระโดดไป:  

Creative Commons License

SMF Thai Translation Powered by SMF © 2006–2012, Simple Machines LLC

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 16 พฤษภาคม 2555, 20:03:22

jQuery Plugin Copyright © 2551-2555 Themes Design & Hosting by DexMoreGroup

Sitemap | Thai Simple Machines Forum support SMF Thai

Web Begining | SMF Modifications | SMF Thai Translation Web Begining

Drupal | WordPress | CMS Joomla | jQuery Plugin | Web Graphics CMS Joomla