[SMF] อยากทำหมวดย่อยให้เป็นคอลั่มน์ แต่ไม่มี Tidy Child Boards Mod ในv.2.0

เริ่มโดย sawit, 06 สิงหาคม 2011, 02:04:12

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

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

sawit

หาดูแล้ว"Tidy Child Boards Mod" ไม่ซัพพร์อตSMF2.0
อยากได้คอลั่มน์แบบนี้อ่ะครับ ใครพอมีวิธีมั่ง :wanwan011: :wanwan011: :wanwan011:


MaMa.Killer

รับโมฯ & แก้ไข และสร้าง Theme SMF, Wordpress และงานออกแบบ
Add Line Id : sodeclub

Hanuman


sawit

อ้างถึงจาก: ~ป๊อบ~ ใน 06 สิงหาคม 2011, 02:10:13
2.0 ซัพพอร์ต Tidy Child Boards Mod อยู่ครับ


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

Hanuman


sawit

มันไม่มี 2.0นะ แต่ผมจะลองเอาไปลง



sawit


ganginwpop

เอ๊ะ!! เว็บตัวอย่างเว็บเราหนินา ^^

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

เว็บที่ผมทำใน 2.0 ครับ
hxxp://www.korattalk.com/forum/index.php
รับโม ปรับแต่ง ติดตั้ง แก้ไข [direct=http://www.simpleyoursite.com]บอร์ด SMF[/direct] ผลงาน [direct=http://www.simpleyoursite.com/portfolio.html]คลิกที่นี่[/direct]

อ่านการ์ตูนออนไลน์ ที่ MangaOnlines.com
Auto Pic Post to SMF from Mthai DEMO : MangaOnlines.com

[direct=http://www.simpleyoursite.com]รับทำเว็บไซต์เชียงใหม่[/direct] | [direct=http://www.simpleyoursite.com]รับทำเว็บไซต์[/direct]

sawit

อ้างถึงจาก: ganginwpop ใน 23 มีนาคม 2011, 12:05:07
ลืมไปมี 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ก็ไม่มี

ganginwpop

เอ๊ะ!! ถ้าผมจำไม่ผิดมันแก้ใน boardindex.template.php นะครับ
อีกอย่างโครงสร้าง html อาจต่างกันไปในแต่ละ theme ครับผม

:wanwan017:
รับโม ปรับแต่ง ติดตั้ง แก้ไข [direct=http://www.simpleyoursite.com]บอร์ด SMF[/direct] ผลงาน [direct=http://www.simpleyoursite.com/portfolio.html]คลิกที่นี่[/direct]

อ่านการ์ตูนออนไลน์ ที่ MangaOnlines.com
Auto Pic Post to SMF from Mthai DEMO : MangaOnlines.com

[direct=http://www.simpleyoursite.com]รับทำเว็บไซต์เชียงใหม่[/direct] | [direct=http://www.simpleyoursite.com]รับทำเว็บไซต์[/direct]

sawit

อ้างถึงจาก: ganginwpop ใน 06 สิงหาคม 2011, 03:17:27
เอ๊ะ!! ถ้าผมจำไม่ผิดมันแก้ใน boardindex.template.php นะครับ
อีกอย่างโครงสร้าง html อาจต่างกันไปในแต่ละ theme ครับผม

:wanwan017:


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

Hanuman