ThaiSEOBoard.com

พัฒนาเว็บไซต์ => วิจารณ์เว็บไซต์ => ข้อความที่เริ่มโดย: sawit ที่ 06 สิงหาคม 2011, 02:04:12



หัวข้อ: [SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่มี Tidy Child Boards Mod ในv.2.0
เริ่มหัวข้อโดย: sawit ที่ 06 สิงหาคม 2011, 02:04:12
หาดูแล้ว"Tidy Child Boards Mod" ไม่ซัพพร์อตSMF2.0
อยากได้คอลั่มน์แบบนี้อ่ะครับ ใครพอมีวิธีมั่ง :wanwan011: :wanwan011: :wanwan011:

(http://a7.sphotos.ak.fbcdn.net/hphotos-ak-snc6/185515_254213817940203_100000547595514_953519_2698136_n.jpg)


หัวข้อ: Re: [SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่มี Tidy Child Boards Mod ในv.2.0
เริ่มหัวข้อโดย: MaMa.Killer ที่ 06 สิงหาคม 2011, 02:07:23
http://www.thaiseoboard.com/index.php?action=;topic=182520.0

งมดูครับ ผมเคยทำใน 2.0 ให้ลูกค้าแล้ว  :wanwan016:


หัวข้อ: Re: [SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่มี Tidy Child Boards Mod ในv.2.0
เริ่มหัวข้อโดย: Hanuman ที่ 06 สิงหาคม 2011, 02:10:13
2.0 ซัพพอร์ต Tidy Child Boards Mod อยู่ครับ


หัวข้อ: Re: [SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่
เริ่มหัวข้อโดย: sawit ที่ 06 สิงหาคม 2011, 02:33:38
2.0 ซัพพอร์ต Tidy Child Boards Mod อยู่ครับ



เอามาจากใหน ผมหาในนี้ไม่มี
http://www.simplemachines.org/


หัวข้อ: Re: [SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่มี Tidy Child Boards Mod ในv.2.0
เริ่มหัวข้อโดย: Hanuman ที่ 06 สิงหาคม 2011, 02:36:10
2.0 ซัพพอร์ต Tidy Child Boards Mod อยู่ครับ



เอามาจากใหน ผมหาในนี้ไม่มี
[url]http://www.simplemachines.org/[/url]
http://custom.simplemachines.org/mods/index.php?mod=2294 ซัพพอร์ต 1.1.11, 2.0 RC1.2, 2.0 RC2, 2.0 RC3


หัวข้อ: Re: [SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่
เริ่มหัวข้อโดย: sawit ที่ 06 สิงหาคม 2011, 02:50:40
มันไม่มี 2.0นะ แต่ผมจะลองเอาไปลง

(http://a5.sphotos.ak.fbcdn.net/hphotos-ak-snc6/223655_254235824604669_100000547595514_953547_746818_n.jpg)


หัวข้อ: Re: [SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่มี Tidy Child Boards Mod ในv.2.0
เริ่มหัวข้อโดย: sawit ที่ 06 สิงหาคม 2011, 02:52:53

ผลที่ได้ก็เป็นแบบนี้

(http://a1.sphotos.ak.fbcdn.net/hphotos-ak-snc6/284148_254235381271380_100000547595514_953545_530100_n.jpg)
กำ :wanwan010: :wanwan010: :wanwan010: :wanwan010:


หัวข้อ: Re: [SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่มี Tidy Child Boards Mod ในv.2.0
เริ่มหัวข้อโดย: ganginwpop ที่ 06 สิงหาคม 2011, 03:06:41
เอ๊ะ!! เว็บตัวอย่างเว็บเราหนินา ^^

2.0 ทำได้ครับวิธีเดียวกับ กระทู้นี้เลย
http://www.thaiseoboard.com/index.php/topic,182520.msg2485878.html#msg2485878

เว็บที่ผมทำใน 2.0 ครับ
hxxp://www.korattalk.com/forum/index.php


หัวข้อ: Re: [SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่มี Tidy Child Boards Mod ในv.2.0
เริ่มหัวข้อโดย: sawit ที่ 06 สิงหาคม 2011, 03:16:18
ลืมไปมี code ในเครื่อง   :-[
ตามคำขอครับ
โค๊ด:
// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 0px;">';

/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
$picBoard = array('admin', 'ok', 'suggest', 'ti', 'travel', 'eat', 'dorm', 'sevice', 'talk', 'story', 'sara', 'ask', 'gal', 'wall', 'ittech', 'program');
$picBoard2 = array('admin2', 'ok2', 'suggest2', 'ti2', 'travel2', 'eat2', 'dorm2', 'sevice2', 'talk2', 'story2', 'sara2', 'ask2', 'gal2', 'wall2', 'ittech2', 'program2');
$i=1;
foreach ($category['boards'] as $board)
{
if($i%2==1)
echo '<tr>';
echo '
<td class="windowbg" valign="middle" height="100" width="50%">
<div class="picBoard">
<a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/picBoards/',$picBoard[$pic],'.png" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/picBoards/',$picBoard2[$pic],'.png" alt="', $txt[334], '" title="', $txt[334], '" />';

echo '</a>
</div>
<div class="detailBoard">
<b><a class="boardtitle" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'],'<br />',$txt[21],' : ', $board['posts'],' || ',$txt[330], ' : ', $board['topics'];

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';
// Show some basic information about the number of posts, etc.
echo '</div>
</td>';
if($i%2==0)
echo '</tr>';
$i++;
$pic++;
}//end foreach
echo '
</table>';
}
echo '
</div>';
}

if ($context['user']['is_logged'])
{
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="', !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
<img src="' . $settings['images_url'] . '/new_some.gif" alt="" align="middle" /> ', $txt[333], '
<img src="' . $settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt[334], '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '">';

// Mark read button.
ตัวแปล $pic ของผมเป็น index ของภาพประจำบอร์ดนะครับ
ไม่ต้องใส่ใจ


ผมหาส่วนที่ต้องแก้ไม่เจอ ในindex.templateก็ไม่มี


หัวข้อ: Re: [SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่มี Tidy Child Boards Mod ในv.2.0
เริ่มหัวข้อโดย: ganginwpop ที่ 06 สิงหาคม 2011, 03:17:27
เอ๊ะ!! ถ้าผมจำไม่ผิดมันแก้ใน boardindex.template.php นะครับ
อีกอย่างโครงสร้าง html อาจต่างกันไปในแต่ละ theme ครับผม

 :wanwan017:


หัวข้อ: Re: [SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่มี Tidy Child Boards Mod ในv.2.0
เริ่มหัวข้อโดย: sawit ที่ 06 สิงหาคม 2011, 03:44:37
เอ๊ะ!! ถ้าผมจำไม่ผิดมันแก้ใน boardindex.template.php นะครับ
อีกอย่างโครงสร้าง html อาจต่างกันไปในแต่ละ theme ครับผม

 :wanwan017:



ผมใช้theme"TotalBlue"ของเว็บhttp://custom.simplemachines.org ไม่มีไฟล์boardindex.template.php :wanwan011:


หัวข้อ: Re: [SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่มี Tidy Child Boards Mod ในv.2.0
เริ่มหัวข้อโดย: Hanuman ที่ 06 สิงหาคม 2011, 08:53:47
เว็บนี้ก็ 2.0 นะครับ ติดตั้งแพ็คเกจเอา http://www.dinodigg.com