ตอบด่วน แบบนี้ทำยังไงครับ

เริ่มโดย Omyim, 27 กันยายน 2009, 16:56:42

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

Omyim

ต้องการตั้งค่า ตอบด่วน ให้เป็นแบบในรูป ต้องทำอย่างไรครับ






genetic

เรียบเรียงคำพูดหน่อยดีมั้ยครับ  :P :P
[direct=http://www.signmate.co]Digital Signage[/direct],  [direct=http://www.signmate.co]ป้ายโฆษณาดิจิตอล[/direct],
[direct=https://www.signnex.com]Digital Signage[/direct][direct=http://www.keeate.com]App Creator[/direct],
[direct=http://www.keeate.com]รับทำแอพ[/direct]

victory

อ้างถึงจาก: genetic ใน 27 กันยายน 2009, 17:10:36
เรียบเรียงคำพูดหน่อยดีมั้ยครับ  :P :P

เค้าจะถามว่า  บอร์ด SMF ฟังชั่น ตอบด่วน  ให้มีไอคอน เหมือน ในรูปภาพ ต้องทำยังไง

yuth09

ผมว่าจะขอความช่วยเหลือจากเขา ก็น่าจะตั้งคำถามให้มันน่าตอบ ไม่ใช่ถามแบบบังคับนะครับ  :wanwan010: :wanwan003:

civilclub

#4
• เปิดไฟล์ Sources/Display.php
• นำโค้ดข้างล่างนี้ไปวางบรรทัดสุดท้ายของไฟล์ที่ตำแหน่งก่อนจบแท็ก ?>
// Show an enhanced quick reply box.
// NOTICE: With the exception of some edits, this code was copied from Subs-Post.php, which is the work of the SMF dev team. I only moved things around...so thank them, not me!
function theme_quickreply_box()
{
global $txt, $modSettings, $db_prefix;
global $context, $settings, $user_info;

// Switch between default images and back... mostly in case you don't have an PersonalMessage template, but do ahve a Post template.
if (isset($settings['use_default_images']) && $settings['use_default_images'] == 'defaults' && isset($settings['default_template']))
{
$temp1 = $settings['theme_url'];
$settings['theme_url'] = $settings['default_theme_url'];

$temp2 = $settings['images_url'];
$settings['images_url'] = $settings['default_images_url'];

$temp3 = $settings['theme_dir'];
$settings['theme_dir'] = $settings['default_theme_dir'];
}

// Initialize smiley array...
$context['smileys'] = array(
'postform' => array(),
'popup' => array(),
);

// Load the Post language file for the color dropdown.
loadLanguage('Post');

// Load smileys - don't bother to run a query if we're not using the database's ones anyhow.
if (empty($modSettings['smiley_enable']) && $user_info['smiley_set'] != 'none')
$context['smileys']['postform'][] = array(
'smileys' => array(
array('code' => ':)', 'filename' => 'smiley.gif', 'description' => $txt[287]),
array('code' => ';)', 'filename' => 'wink.gif', 'description' => $txt[292]),
array('code' => ':D', 'filename' => 'cheesy.gif', 'description' => $txt[289]),
array('code' => ';D', 'filename' => 'grin.gif', 'description' => $txt[293]),
array('code' => '>:(', 'filename' => 'angry.gif', 'description' => $txt[288]),
array('code' => ':(', 'filename' => 'sad.gif', 'description' => $txt[291]),
array('code' => ':o', 'filename' => 'shocked.gif', 'description' => $txt[294]),
array('code' => '8)', 'filename' => 'cool.gif', 'description' => $txt[295]),
array('code' => '???', 'filename' => 'huh.gif', 'description' => $txt[296]),
array('code' => '::)', 'filename' => 'rolleyes.gif', 'description' => $txt[450]),
array('code' => ':P', 'filename' => 'tongue.gif', 'description' => $txt[451]),
array('code' => ':-[', 'filename' => 'embarrassed.gif', 'description' => $txt[526]),
array('code' => ':-X', 'filename' => 'lipsrsealed.gif', 'description' => $txt[527]),
array('code' => ':-\\', 'filename' => 'undecided.gif', 'description' => $txt[528]),
array('code' => ':-*', 'filename' => 'kiss.gif', 'description' => $txt[529]),
array('code' => ':\'(', 'filename' => 'cry.gif', 'description' => $txt[530])
),
'last' => true,
);
elseif ($user_info['smiley_set'] != 'none')
{
if (($temp = cache_get_data('posting_smileys', 480)) == null)
{
$request = db_query("
SELECT code, filename, description, smileyRow, hidden
FROM {$db_prefix}smileys
WHERE hidden IN (0, 2)
ORDER BY smileyRow, smileyOrder", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
{
$row['code'] = htmlspecialchars($row['code']);
$row['filename'] = htmlspecialchars($row['filename']);
$row['description'] = htmlspecialchars($row['description']);

$context['smileys'][empty($row['hidden']) ? 'postform' : 'popup'][$row['smileyRow']]['smileys'][] = $row;
}
mysql_free_result($request);

cache_put_data('posting_smileys', $context['smileys'], 480);
}
else
$context['smileys'] = $temp;
}

// Clean house... add slashes to the code for javascript.
foreach (array_keys($context['smileys']) as $location)
{
foreach ($context['smileys'][$location] as $j => $row)
{
$n = count($context['smileys'][$location][$j]['smileys']);
for ($i = 0; $i < $n; $i++)
{
$context['smileys'][$location][$j]['smileys'][$i]['code'] = addslashes($context['smileys'][$location][$j]['smileys'][$i]['code']);
$context['smileys'][$location][$j]['smileys'][$i]['js_description'] = addslashes($context['smileys'][$location][$j]['smileys'][$i]['description']);
}

$context['smileys'][$location][$j]['smileys'][$n - 1]['last'] = true;
}
if (!empty($context['smileys'][$location]))
$context['smileys'][$location][count($context['smileys'][$location]) - 1]['last'] = true;
}
$settings['smileys_url'] = $modSettings['smileys_url'] . '/' . $user_info['smiley_set'];

// Set a flag so the sub template knows what to do...
$context['show_bbc'] = !empty($modSettings['enableBBC']) && !empty($settings['show_bbc']);

// Generate a list of buttons that shouldn't be shown - this should be the fastest way to do this.
if (!empty($modSettings['disabledBBC']))
{
$disabled_tags = explode(',', $modSettings['disabledBBC']);
foreach ($disabled_tags as $tag)
$context['disabled_tags'][trim($tag)] = true;
}

// Go!  Supa-sub-template-smash!
template_quickreply_box();

// Switch the URLs back... now we're back to whatever the main sub template is.  (like folder in PersonalMessage.)
if (isset($settings['use_default_images']) && $settings['use_default_images'] == 'defaults' && isset($settings['default_template']))
{
$settings['theme_url'] = $temp1;
$settings['images_url'] = $temp2;
$settings['theme_dir'] = $temp3;
}
}

civilclub

• เปิดไฟล์ Themes/<theme>/Display.template.php
• นำโค้ดข้างล่างนี้ไปวางบรรทัดสุดท้ายของไฟล์ที่ตำแหน่งก่อนจบแท็ก ?>

// This function displays all the stuff you'd expect to see with a message box, the box, BBC buttons and of course smileys.
// NOTICE: With the exception of some edits, this code was copied from Subs-Post.php, which is the work of the SMF dev team. I only moved things around...so thank them, not me!
function template_quickreply_box()
{
global $context, $settings, $options, $txt, $modSettings;

// Assuming BBC code is enabled then print the buttons and some javascript to handle it.
if ($context['show_bbc'])
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function bbc_highlight(something, mode)
{
something.style.backgroundImage = "url("   smf_images_url   (mode ? "/bbc/bbc_hoverbg.gif)" : "/bbc/bbc_bg.gif)");
}
// ]]></script>';

// The below array makes it dead easy to add images to this page. Add it to the array and everything else is done for you!
$context['bbc_tags'] = array();
$context['bbc_tags'][] = array(
'bold' => array('code' => 'b', 'before' => '[b]', 'after' => '[/b]', 'description' => $txt[253]),
'italicize' => array('code' => 'i', 'before' => '[i]', 'after' => '[/i]', 'description' => $txt[254]),
'underline' => array('code' => 'u', 'before' => '[u]', 'after' => '[/u]', 'description' => $txt[255]),
'strike' => array('code' => 's', 'before' => '[s]', 'after' => '[/s]', 'description' => $txt[441]),
array(),
'glow' => array('code' => 'glow', 'before' => '[glow=red,2,300]', 'after' => '[/glow]', 'description' => $txt[442]),
'shadow' => array('code' => 'shadow', 'before' => '[shadow=red,left]', 'after' => '[/shadow]', 'description' => $txt[443]),
'move' => array('code' => 'move', 'before' => '[move]', 'after' => '[/move]', 'description' => $txt[439]),
array(),
'pre' => array('code' => 'pre', 'before' => '[pre]', 'after' => '[/pre]', 'description' => $txt[444]),
'left' => array('code' => 'left', 'before' => '[left]', 'after' => '[/left]', 'description' => $txt[445]),
'center' => array('code' => 'center', 'before' => '[center]', 'after' => '[/center]', 'description' => $txt[256]),
'right' => array('code' => 'right', 'before' => '[right]', 'after' => '[/right]', 'description' => $txt[446]),
array(),
'hr' => array('code' => 'hr', 'before' => '[hr]', 'description' => $txt[531]),
array(),
'size' => array('code' => 'size', 'before' => '[size=10pt]', 'after' => '[/size]', 'description' => $txt[532]),
'face' => array('code' => 'font', 'before' => '[font=Verdana]', 'after' => '[/font]', 'description' => $txt[533]),
);
$context['bbc_tags'][] = array(
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),
'img' => array('code' => 'img', 'before' => '[img]', 'after' => '[/img]', 'description' => $txt[435]),
'url' => array('code' => 'url', 'before' => '[url=http://anonym.to?', 'after' =&gt; ']', 'after' => '[/url]', 'description' => $txt[257]),
'email' => array('code' => 'email', 'before' => '[email]', 'after' => '[/email]', 'description' => $txt[258]),
'ftp' => array('code' => 'ftp', 'before' => '[ftp]', 'after' => '[/ftp]', 'description' => $txt[434]),
array(),
'table' => array('code' => 'table', 'before' => '[table]', 'after' => '[/table]', 'description' => $txt[436]),
'tr' => array('code' => 'td', 'before' => '[tr]', 'after' => '[/tr]', 'description' => $txt[449]),
'td' => array('code' => 'td', 'before' => '[td]', 'after' => '[/td]', 'description' => $txt[437]),
array(),
'sup' => array('code' => 'sup', 'before' => '[sup]', 'after' => '[/sup]', 'description' => $txt[447]),
'sub' => array('code' => 'sub', 'before' => '[sub]', 'after' => '[/sub]', 'description' => $txt[448]),
'tele' => array('code' => 'tt', 'before' => '[tt]', 'after' => '[/tt]', 'description' => $txt[440]),
array(),
'code' => array('code' => 'code', 'before' => '[code ]', 'after' => '[/code ]', 'description' => $txt[259]),
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt[260]),
array(),
'list' => array('code' => 'list', 'before' => '[list]n[li]', 'after' => '[/li]n[li][/li]n[/list]', 'description' => $txt[261]),
);

$found_button = false;
// Here loop through the array, printing the images/rows/separators!
foreach ($context['bbc_tags'][0] as $image => $tag)
{
// Is there a "before" part for this bbc button? If not, it can't be a button!!
if (isset($tag['before']))
{
// Is this tag disabled?
if (!empty($context['disabled_tags'][$tag['code']]))
continue;

$found_button = true;

// If there's no after, we're just replacing the entire selection in the post box.
if (!isset($tag['after']))
echo '<a href="javascript:void(0);" onclick="replaceText('', $tag['before'], '', document.forms.postmodify.message); return false;">';
// On the other hand, if there is one we are surrounding the selection ;).
else
echo '<a href="javascript:void(0);" onclick="surroundText('', $tag['before'], '', '', $tag['after'], '', document.forms.postmodify.message); return false;">';

// Okay... we have the link. Now for the image and the closing </a>!
echo '<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/', $image, '.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>';
}
// I guess it's a divider...
elseif ($found_button)
{
echo '<img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" />';
$found_button = false;
}
}

// Begin Print a drop down list for font face . . . . . . .
echo '<br/> <select onchange="surroundText('[color='   this.options[this.selectedIndex].value.toLowerCase()   ']', '[/color]', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);" style="margin-bottom: 1ex;margin-top: 1ex;height:18px;">
<option value="" selected="selected">--- Choose Font ---</option>
<option style="font-family: Arial;" value="Arial">Arial</option>
<option style="font-family: Book Antiqua;" value="Book Antiqua">Book Antiqua</option>
<option style="font-family: Comic Sans MS;" value="Comic Sans MS">Comic Sans MS</option>
<option style="font-family: Courier New;" value="Courier New">Courier New</option>
<option style="font-family: Fixedsys;" value="Fixedsys">Fixedsys</option>
<option style="font-family: Franklin Gothic Medium;" value="Franklin Gothic Medium">Franklin Gothic Medium</option>
<option style="font-family: Georgia;" value="Georgia">Georgia</option>
<option style="font-family: Impact;" value="Impact">Impact</option>
<option style="font-family: Lucida Console;" value="Lucida Console">Lucida Console</option>
<option style="font-family: MS Sans Serif;" value="MS Sans Serif">MS Sans Serif</option>
<option style="font-family: Palatino Linotype;" value="Palatino Linotype">Palatino Linotype</option>
<option style="font-family: System;" value="System">System</option>
<option style="font-family: Tahoma;" value="Tahoma">Tahoma</option>
<option style="font-family: Times New Roman;" value="Times New Roman">Times New Roman</option>
<option style="font-family: Trebuchet MS;" value="Trebuchet MS">Trebuchet MS</option>
<option style="font-family: Verdana;" value="Verdana">Verdana</option>
</select>';
// End Print a drop down list for font face . . . . . . . .

// Begin Print a drop down list for font size . . . . . . .
echo ' <select onchange="surroundText('[color='   this.options[this.selectedIndex].value.toLowerCase()   ']', '[/color]', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);" style="margin-bottom: 1ex;margin-top: 1ex;height:18px;">
<option value="" selected="selected">--- Choose Size ---</option>
<option style="font-size:8pt;" value="8pt">8 pt</option>
<option style="font-size:9pt;" value="9pt">9 pt</option>
<option style="font-size:10pt;" value="10pt">10 pt</option>
<option style="font-size:11pt;" value="11pt">11 pt</option>
<option style="font-size:12pt;" value="12pt">12 pt</option>
<option style="font-size:14pt;" value="14pt">14 pt</option>
<option style="font-size:16pt;" value="16pt">16 pt</option>
<option style="font-size:18pt;" value="18pt">18 pt</option>
<option style="font-size:20pt;" value="20pt">20 pt</option>
<option style="font-size:24pt;" value="24pt">24 pt</option>
<option style="font-size:30pt;" value="30pt">30 pt</option>
</select>';
echo '';
// End Print a drop down list for font size . . . . . . . .
// Java script to handle URL input boxes ...
echo '<script language="JavaScript" type="text/javascript">
<!--
function urlINPT(){
var urlLINK = prompt("Please enter URL address:","http://");
if (urlLINK == null ){ //cancel pressed . . .
}
else if (urlLINK == "" || urlLINK == " "){
alert("Sorry no text entered!");
}
else
{ //ok pressed and there is something :)
var urlNAME = prompt("Please enter URL name:","");
if (urlNAME == null ){ //cancel pressed . . .
}
else if (urlNAME == "" || urlNAME == " "){  //ok pressed but with notext so use URL only!
surroundText('[url=http://anonym.to?' urlLINK '', ']' urlLINK '', '[/url]', document.', $context['post_form'], '.', $context['post_box_name'], ');
}
else //ok pressed with text so use URL and Name!
surroundText('[url=http://anonym.to?' urlLINK ']' urlNAME '', '[/url]', document.', $context['post_form'], '.', $context['post_box_name'], ');
}
}
// -->
</script>';

// Print a drop down list for all the colors we allow!
if (!isset($context['disabled_tags']['color']))
echo ' <select onchange="surroundText('[color='   this.options[this.selectedIndex].value.toLowerCase()   ']', '[/color]', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);" style="margin-bottom: 1ex;margin-top: 1ex;height:18px;">
<option value="" selected="selected">--- Color ---</option>
<option style="background-color: lightgrey; color: lightgrey;" value="lightgrey">LightGrey</option>
<option style="background-color: pink; color: pink;" value="pink">Pink</option>
<option style="background-color: red; color: red;" value="red">Red</option>
<option style="background-color: orange; color: orange;" value="orange">Orange</option>
<option style="background-color: gold; color: gold;" value="gold">Gold</option>
<option style="background-color: yellow; color: yellow;" value="yellow">Yellow</option>
<option style="background-color: greenyellow; color: greenyellow;" value="greenyellow">GreenYellow</option>
<option style="background-color: lime; color: lime;" value="lime">Lime</option>
<option style="background-color: cyan; color: cyan;" value="cyan">Cyan</option>
<option style="background-color: skyblue; color: skyblue;" value="skyblue">SkyBlue</option>
<option style="background-color: hotpink; color: hotpink;" value="hotpink">HotPink</option>
<option style="background-color: magenta; color: magenta;" value="magenta">Magenta</option>
<option style="background-color: blueviolet; color: blueviolet;" value="violet">BlueViolet</option>
<option style="background-color: brown; color: brown;" value="brown">Brown</option>
<option style="background-color: olive; color: olive;" value="olive">Olive</option>
<option style="background-color: green; color: green;" value="green">Green</option>
<option style="background-color: blue; color: blue;" value="blue">Blue</option>
<option style="background-color: darkblue; color: darkblue;" value="darkblue">DarkBlue</option>
<option style="background-color: black; color: black;" value="black">Black</option>
</select>';
echo '<br />';

$found_button = false;
// Print the buttom row of buttons!
foreach ($context['bbc_tags'][1] as $image => $tag)
{
if (isset($tag['before']))
{
// Is this tag disabled?
if (!empty($context['disabled_tags'][$tag['code']]))
continue;

$found_button = true;

// If there's no after, we're just replacing the entire selection in the post box.
if (!isset($tag['after']))
echo '<a href="javascript:void(0);" onclick="replaceText('', $tag['before'], '', document.forms.postmodify.message); return false;">';
// On the other hand, if there is one we are surrounding the selection ;).
else
echo '<a href="javascript:void(0);" onclick="surroundText('', $tag['before'], '', '', $tag['after'], '', document.forms.postmodify.message); return false;">';

// Okay... we have the link. Now for the image and the closing </a>!
echo '<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/', $image, '.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>';
}
// I guess it's a divider...
elseif ($found_button)
{
echo '<img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" />';
$found_button = false;
}
}
}

// Now start printing all of the smileys.
if (!empty($context['smileys']['postform']))
{
echo '
<br />';

// Show each row of smileys ;).
foreach ($context['smileys']['postform'] as $smiley_row)
{
foreach ($smiley_row['smileys'] as $smiley)
echo '
<a href="javascript:void(0);" onclick="replaceText(' ', $smiley['code'], '', document.forms.postmodify.message); return false;"><img src="', $settings['smileys_url'], '/', $smiley['filename'], '" align="bottom" alt="', $smiley['description'], '" title="', $smiley['description'], '" /></a>';

// If this isn't the last row, show a break.
if (empty($smiley_row['last']))
echo '<br />';
}

// If the smileys popup is to be shown... show it!
if (!empty($context['smileys']['popup']))
echo '
<a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';
}

// If there are additional smileys then ensure we provide the javascript for them.
if (!empty($context['smileys']['popup']))
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smileys = [';

foreach ($context['smileys']['popup'] as $smiley_row)
{
echo '
[';
foreach ($smiley_row['smileys'] as $smiley)
{
echo '
["', $smiley['code'], '","', $smiley['filename'], '","', $smiley['js_description'], '"]';
if (empty($smiley['last']))
echo ',';
}

echo ']';
if (empty($smiley_row['last']))
echo ',';
}

echo '];
var smileyPopupWindow;

function moreSmileys()
{
var row, i;

if (smileyPopupWindow)
smileyPopupWindow.close();

smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
smileyPopupWindow.document.write('n<html>');
smileyPopupWindow.document.write('nt<head>ntt<title>', $txt['more_smileys_title'], '</title>ntt<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css" />nt</head>');
smileyPopupWindow.document.write('nt<body style="margin: 1ex;">ntt<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">nttt<tr class="titlebg"><td align="left">', $txt['more_smileys_pick'], '</td></tr>nttt<tr class="windowbg"><td align="left">');

for (row = 0; row < smileys.length; row  )
{
for (i = 0; i < smileys[row].length; i  )
{
smileys[row][i][2] = smileys[row][i][2].replace(/"/g, '&quot;');
smileyPopupWindow.document.write('<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; '   smileys[row][i][0]   '&quot;, window.opener.document.forms.postmodify.message); window.focus(); return false;"><img src="', $settings['smileys_url'], '/'   smileys[row][i][1]   '" alt="'   smileys[row][i][2]   '" title="'   smileys[row][i][2]   '" style="padding: 4px;" border="0" /></a> ');
}
smileyPopupWindow.document.write("<br />");
}

smileyPopupWindow.document.write('</td></tr>nttt<tr><td align="center" class="windowbg"><a href="javascript:window.close();">', $txt['more_smileys_close_window'], '</a></td></tr>ntt</table>nt</body>n</html>');
smileyPopupWindow.document.close();
}
// ]]></script>';
}

// Finally the most important bit - the actual text box to write in!
echo '
<table width="95%" cellpadding="8" cellspacing="0" border=0 bgcolor="#DDDDDD" style="border:1px #999999 solid;">
  <tr>
<td align="right">
<img src="', $settings['images_url'], '/upshrink2.gif" style="cursor: hand;cursor: pointer;" onclick="document.getElementById('textareaedit').rows  =5" />
<img src="', $settings['images_url'], '/upshrink.gif" style="cursor: hand;cursor: pointer;" onclick="document.getElementById('textareaedit').rows -=5" /><br/>

<textarea class="editor" name="message" id="textareaedit" cols="80" rows="8" style="width: 99%;border:1px #999999 solid" tabindex="1" onselect=storeCaret(this); onclick=storeCaret(this); onkeyup=storeCaret(this); onchange=storeCaret(this);"></textarea></td>
  </tr>
</table>';
}


อย่าลืมแก้ตรงนี้นะครับ
'code' => array('code' => 'code', 'before' => '[code ]', 'after' => '[/code ]', 'description' => $txt[259]),
จะเห็นว่าผมเคาะไป 1 ที เพราะถ้าไม่ทำแบบนั้นมันจะเพี้ยนครับ  :wanwan014:

civilclub

#6
• ค้นหาโค้ด
<td class="windowbg" width="75%" align="center">
• นำโค้ดนี้ไปวางทับ
<td class="windowbg" width="75%" align="left" style="padding:10px">

• ค้นหาโค้ด
<textarea cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea><br />
<input type="submit" name="post" value="' . $txt[105] . '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="2" />
<input type="submit" name="preview" value="' . $txt[507] . '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="4" />';

• นำโค้ดนี้ไปวางทับทั้งหมด

            ';
// Quick Reply Modified
theme_quickreply_box();
echo '
<br />
<center>
<input type="submit" name="post" value="' . $txt[105] . '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="2" />
<input type="submit" name="preview" value="' . $txt[507] . '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="4" />
</center>';


จบสิ้นกระบวนความครับ อยากได้อะไรเพิ่มเติมก็โมเองเองนะครับ  :wanwan003:

สำคัญมาก!!! โค๊ดทั้งหมดนี้ ผมได้มาจาก www.zone-it.com ครับ  :wanwan017:

Omyim

ขอขอบคุณ คุณcivilclub  และคุณvictory มากๆ ด้วยนะครับ