:: กรุณาอย่าปั่นพีอาลิงก์ หากพบเจอลบยูสเซอร์ โดยไม่มีการชี้แจง ::
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
/* 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.) */ foreach ($category['boards'] as $board) { echo ' <tr> <td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><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'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />'; // This board doesn't have new posts, but its children do. elseif ($board['children_new']) echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />'; // No new posts at all! The agony!! else echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />'; echo '</a> </td> <td class="windowbg2"> <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br /> ', $board['description'];
/* 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.) */ foreach ($category['boards'] as $board) { echo ' <tr> <td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><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'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />'; // This board doesn't have new posts, but its children do. elseif ($board['children_new']) echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />'; // No new posts at all! The agony!! else echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />'; echo '</a> </td>';// ----------*** Board Icon ***---------- echo ' <td class="windowbg" width="6%" align="center" valign="center"> <img src="', $settings['images_url'], '/boardicons/board' . $board['id'] . '.gif" alt="" title="', $board['name'], '" /> </td> <td class="windowbg2"> <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br /> ', $board['description'];
มันก็ถูกต้องแล้วนี่ครับเพียงแค่คุณเปลี่ยนรูปจำประบอร์ดไม่ให้เหมือนกัน มันก็แต่ต่างกันแล้วboard1 รูปหนึ่ง board2 ก็อีกรูปหนึ่ง
อันนี้ไม่เกี่ยวกับโค้ดแล้วครับ โค้ดที่คุณเอาไปวางแทนที่ของเดิมนั่นถือว่าถูกต้องแล้ว ใช้งานได้แล้วต่อไปก็คือการสร้างรูป icon ประจำบอร์ดนั้น ๆ ตั้งชื่อตาม ID ของบอร์ด แล้วเอาไปไว้ในโฟลเดอร์ boardicons
// ----------*** Board Icon ***---------- echo ' <td class="windowbg" width="6%" align="center" valign="center"> <img src="', $settings['images_url'], '/boardicons/board_6' . $board['6'] . '.gif" alt="" title="', $board['6'], '" /> </td>
// ----------*** Board Icon ***---------- echo ' <td class="windowbg" width="6%" align="center" valign="center"> <img src="', $settings['images_url'], '/boardicons/board' . $board['id'] . '.gif" alt="" title="', $board['name'], '" /> </td>
อย่าแก้ไขโค้ดซิครับโค้ดของคุณผิดโค๊ด: [Select]// ----------*** Board Icon ***---------- echo ' <td class="windowbg" width="6%" align="center" valign="center"> <img src="', $settings['images_url'], '/boardicons/board_6' . $board['6'] . '.gif" alt="" title="', $board['6'], '" /> </td>โค้ดที่ถูกต้องโค๊ด: [Select]// ----------*** Board Icon ***---------- echo ' <td class="windowbg" width="6%" align="center" valign="center"> <img src="', $settings['images_url'], '/boardicons/board' . $board['id'] . '.gif" alt="" title="', $board['name'], '" /> </td>ต่อไปก็แค่ตั้งชื่อรูปเป็นboard1board2board3board4+ + -->>
Do not edit the code. But the picture changes.Edit your image name. The name change is board1, board2 no extension. However, the file extensions are gif.