:: กติกา มารยาท ในการใช้งานเว็บบอร์ด ::กรุณากรอกอีเมล์จริงในการสมัคร และรับอีเมล์ยืนยันเพื่อใช้งานในบอร์ด
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
<edit file>$boarddir/index.php</edit file>
<search for> 'calendar' => array('Calendar.php', 'CalendarMain'),</search for>
<add after> 'delete_all_shouts' => array('shout.php', 'delete_all_shouts'), 'delete_shout_age' => array('shout.php', 'delete_shout_age'), 'delete_shout' => array('shout.php', 'delete_shout'),</add after>
<edit file>$sourcedir/Subs.php</edit file>
<search for> log_error('Copyright removed!!'); }}</search for>
<add after>function smfshout(){ global $sourcedir; include_once("$sourcedir/shout.php"); shout_display(true);}</add after>
<edit file>$sourcedir/ModSettings.php</edit file><search for> 'karma' => 'ModifyKarmaSettings',</search for>
<add after> 'shout' => 'ModifyShoutboxSettings',</add after>
<search for> 'layout' => array( 'title' => $txt['mods_cat_layout'], 'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'], ),</search for>
<add after> 'shout' => array( 'title' => $txt['shoutbox_0'], 'href' => $scripturl . '?action=featuresettings;sa=shout;sesc=' . $context['session_id'], ),</add after>
<search for>function ModifyKarmaSettings()</search for>
<add before>function ModifyShoutboxSettings(){ global $txt, $scripturl, $context, $settings, $sc; $config_vars = array( array('check', 'shout_enableXML'), array('text', 'shoutlimit'), array('text', 'shoutsep'), array('text', 'shoutmaxchr'), array('text', 'shoutsplitchr'), array('check', 'shout_noGuestEmail'), array('select', 'shoutdir', array( '1' => &$txt['shoutbox_19'], '0' => &$txt['shoutbox_20'], )), array('check', 'enablearchiveshout'), array('check', 'enablescrollshout'), array('text', 'shoutscrollwidth'), array('text', 'shoutscrollheight'), array('text', 'shoutscrolldelay'), array('select', 'shoutscrolldir', array( 'up' => &$txt['shoutbox_37'], 'down' => &$txt['shoutbox_38'], 'left' => &$txt['shoutbox_39'], 'right' => &$txt['shoutbox_40'], )), array('select', 'shoutscrollspeed', array( '1' => &$txt['shoutbox_31'], '2' => &$txt['shoutbox_32'], '3' => &$txt['shoutbox_33'], '4' => &$txt['shoutbox_34'], '5' => &$txt['shoutbox_35'], )), ); // Saving? if (isset($_GET['save'])) { saveDBSettings($config_vars); redirectexit('action=featuresettings;sa=shout'); } $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=shout'; $context['settings_title'] = $txt['shoutbox_0']; prepareDBSettingContext($config_vars);}</add before>
<edit file>$languagedir/Modifications.english.php</edit file><search for>?></search for>
<add before>//text for Ultimate Shoutbox$txt['shoutbox_0'] = 'Shoutbox';$txt['shoutbox_1'] = 'Shoutbox Archive';$txt['shoutbox_2'] = 'Delete shouts older than:';$txt['shoutbox_3'] = 'days';$txt['shoutbox_4'] = 'Delete all shouts over your current limit of';$txt['shoutbox_5'] = 'Delete';$txt['shoutbox_6'] = 'Name';$txt['shoutbox_7'] = 'Email';$txt['shoutbox_8'] = 'Message';$txt['shoutbox_9'] = 'Shout';$txt['shoutbox_10'] = 'Sorry, if you are a guest you must enter both your name and your email address';$txt['shoutbox_11'] = 'Whoops, looks like you forgot to fill in one of the Shoutbox fields. Please try again.';$txt['shoutbox_12'] = 'Sorry, if you are a guest you must enter a valid email address when using the Shoutbox.';$txt['shoutbox_13'] = 'Sorry, but you do not have the proper priveledges to delete that.';$txt['shoutdir'] = 'Shout Direction';$txt['shoutbox_19'] = 'Ascending';$txt['shoutbox_20'] = 'Descending';$txt['shoutsep'] = 'Shout Separator';$txt['enablearchiveshout'] = 'Allow people to shout from the archive page?';$txt['shoutlimit'] = 'Number of shouts to return';$txt['shoutmaxchr'] = 'Max number of characters per line';$txt['shoutsplitchr'] = 'Character number to split long words at (usually 3 less than max)';$txt['enablescrollshout'] = 'Enable scrolling';$txt['shoutbox_27'] = 'The following options are only available is scrolling is activated:';$txt['shoutscrollwidth'] = 'Scroll box width (pixels)';$txt['shoutscrollheight'] = 'Scroll box height (pixels)';$txt['shoutscrollspeed'] = 'Scrolling speed';$txt['shout_noGuestEmail'] = 'Don\'t require email address for guests';$txt['shout_enableXML'] = 'Enable javascript XML refreshing of the shoutbox. (This will increase server load)';$helptxt['shout_enableXML'] = 'Turning on this option will make the shoutbox refresh automatically every five seconds - but will increase the server load considerably.';$txt['shoutbox_31'] = 'slowest';$txt['shoutbox_32'] = 'slower';$txt['shoutbox_33'] = 'medium';$txt['shoutbox_34'] = 'faster';$txt['shoutbox_35'] = 'fastest';$txt['shoutscrolldir'] = 'Scrolling direction';$txt['shoutbox_37'] = 'up';$txt['shoutbox_38'] = 'down';$txt['shoutbox_39'] = 'left';$txt['shoutbox_40'] = 'right';$txt['shoutscrolldelay'] = 'Scroll Delay (milliseconds - normal is 60)';$txt['shoutbox_42'] = 'Delete Options';$txt['shoutbox_43'] = 'View All';$txt['permissiongroup_shout'] = 'Shoutbox';$txt['permissionname_make_shout'] = 'Can Shout';$txt['permissionname_delete_shout'] = 'Can Delete Shouts';$txt['shout_delete_selected'] = 'Delete Selected';$txt['cannot_delete_shout'] = 'You do not have permission to delete shouts.';$txt['cannot_make_shout'] = 'You do not have permission to shout.';</add before>
<edit file>$boarddir/SSI.php</edit file><search for>?></search for>
<add before>function ssi_shout($showform = true){ global $sourcedir; include_once("$sourcedir/shout.php"); shout_display($showform);}</add before>
<edit file>$boarddir/ssi_examples.php</edit file><search for> <hr /> <h3>Some notes on usage</h3></search for>
<add before> <h3>Shoutbox: <?php ssi_shout(); ?></h3> <?php ssi_shout(); ?> <hr /></add before>
<edit file>$boarddir/ssi_examples.shtml</edit file><search for> <h3>Recent Calendar Events Function: <!--#include virtual="./SSI.php?ssi_function=recentEvents" --></h3> <!--#include virtual="./SSI.php?ssi_function=recentEvents" --> <hr /></search for>
<add after> <h3>Shoutbox Function: <!--#include virtual="./SSI.php?ssi_function=shout" --></h3> <!--#include virtual="./SSI.php?ssi_function=shout" --> <hr /></add after>
<edit file>$sourcedir/ManagePermissions.php</edit file><search for> 'pm' => array( 'pm_read' => false, 'pm_send' => false, ),</search for>
<add after> 'shout' => array( 'make_shout' => false, 'delete_shout' => false, ),</add after>
<?php ssi_shout(); ?>
echo ' </table> </div> </div>';}?>
// ----------*** เพิ่ม Chat Box ในส่วนล่างของบอร์ด ***---------- echo ' </table> </div></div><br />'; echo ' <table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;"> <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '> <div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; "> <a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a> ', $txt['justchatbox'], ' </div> <div class="windowbg2" style="padding: 6px; "> <iframe name="I1" width="100%" align="center" border="0" frameborder="0" src="shoutbox.php" height="200" target="_blank"> Your browser does not support inline frames or is currently configured not to display inline frames. </iframe> </div> </div> </table>';}?>
ไม่มีคนตอบ เง้อๆๆๆ
เชาท์ตัวนี้วิธีมันคงเยอะเกินไป เดี๋ยวไว้รอเคลียร์งานให้มันเบาๆมือสักหน่อย จะลองทำบทความตัวที่จัสต์ใช้มาลงไว้