SMF: ใส่Signatureแล้ว เกิดช่องว่าง ใต้โพสข้อความกับ Signature จะแก้อย่างไรดีครับ

เริ่มโดย SU9799, 28 กรกฎาคม 2012, 02:05:57

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

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

SU9799

บอร์ด SMF แต่เนียนเหมือน IPB ครับ แกะมานาน :-X แก้ไม่หาย ทำไงดีครับ

โพส ตั้งกระทู้ และตอบกระทู้ ตอนไม่ได้ใส่ Signature เป็นแบบนี้ครับ


พอใส่ Signature เข้าไปทั้งแบบข้อความ หรือแบบภาพ  จะเกิดช่องว่างระหว่าง ใต้โพสข้อความกับ Signature ตามภาพเลยครับ


ต้องแก้ที่ class / file ไหนครับ ผู้รู้ช่วยด้วยครับ
ขอบคุณมาก
   :wanwan011: :wanwan017:
Go 10$/Day from Google Adsense  by Only One (Thai) Site

spalner

อ้างถึงจาก: expact ใน 28 กรกฎาคม 2012, 02:12:51
อืม....   

Display.template.php ครับ  เอาโค้ดมาวางในนี้เลยก็ดีครับ

ตามนี้เลยครับ จริๆงผมกับคนนี้น่าจะรู้เเล้วว่าเเก้ยังไงเเต่อยากเห็นโค้ด

SU9799

// Show the member's signature?
      if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
         echo '
                  <br /><br />---------------------------<br />
                  <div class="signature">', $message['member']['signature'], '</div>';

      echo '
            </td>
         </tr>
         <tr>
            <td class="postlastrow">&nbsp;';

ตามนี้ครับ
:wanwan017:
Go 10$/Day from Google Adsense  by Only One (Thai) Site

spalner

ต้องดูทั้งเเผงครับ เพราะโค้ดที่เเสดงมันไม่ได้อยู่ในส่วนนี้ มันอยู่เลยขึ้นไปอีกนะครับ

SU9799



     // Now for the attachments, signature, ip logged, etc...
     echo '
              <div id="msg_', $message['id'], '_footer" class="attachments">';

     // Assuming there are attachments...
     if (!empty($message['attachment']))
     {
        echo '
                 ------------------------<br />
                 <div style="overflow: auto; width: auto;">';
        $last_approved_state = 1;
        foreach ($message['attachment'] as $attachment)
        {
           // Show a special box for unapproved attachments...
           if ($attachment['is_approved'] != $last_approved_state)
           {
              $last_approved_state = 0;
              echo '
                    <fieldset>
                       <legend>', $txt['attach_awaiting_approve'], '&nbsp;[<a href="', $scripturl, '?action=attachapprove;sa=all;mid=', $message['id'], ';sesc=', $context['session_id'], '">', $txt['approve_all'], '</a>]</legend>';
           }

           if ($attachment['is_image'])
           {
              if ($attachment['thumbnail']['has_thumb'])
                 echo '
                       <a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
              else
                 echo '
                       <img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';
           }
           echo '
                       <a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" />&nbsp;' . $attachment['name'] . '</a> ';

           if (!$attachment['is_approved'])
              echo '
                       [<a href="', $scripturl, '?action=attachapprove;sa=approve;aid=', $attachment['id'], ';sesc=', $context['session_id'], '">', $txt['approve'], '</a>]&nbsp;|&nbsp;[<a href="', $scripturl, '?action=attachapprove;sa=reject;aid=', $attachment['id'], ';sesc=', $context['session_id'], '">', $txt['delete'], '</a>] ';
           echo '
                             (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
        }

        // If we had unapproved attachments clean up.
        if ($last_approved_state == 0)
           echo '
                    </fieldset>';

        echo '
                 </div>';
     }

     echo '
              </div>
           
                 <div class="smalltext floatleft" id="modified_', $message['id'], '">';

     // Show "� Last Edit: Time by Person �" if this post was edited.
     if ($settings['show_modify'] && !empty($message['modified']['name']))
        echo '
                    « <em>', $txt['last_edit'], ': ', $message['modified']['time'], ' ', $txt['by'], ' ', $message['modified']['name'], '</em> »';

     echo '
                 </div>';
                 

     // Show the member's signature?
     if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
        echo '
                 <br /><br />---------------------------<br />
                 <div class="signature">', $message['member']['signature'], '</div>';

     echo '
           </td>
        </tr>
        <tr>
           <td class="postlastrow">&nbsp;';

   
Go 10$/Day from Google Adsense  by Only One (Thai) Site

SU9799

อ้างถึงจาก: expact ใน 28 กรกฎาคม 2012, 02:52:32
เอา<br /><br />---------------------------<br />

ออกครับ

 +1 ขอบคุณครับ

เอาออกแล้วครับ  ช่องว่างหายไป แต่ มันยังมี เส้นคั่น ซ้อนกันอยู่  ตามภาพครับ



sorce code ประมาณนี้ครับ
      </td>
               <td valign="top" class="post">
               
               <div id="msg_8">
                  test<br />test<br />test<br />test<br />
               </div>
               <img src="http://..................com/forum/Themes/......./images/icons/modify_inline.gif" alt="" class="modifybutton" id="modify_button_8" style="cursor: pointer; display: none;" onclick="oQuickModify.modifyMsg('8', '0c5fd795e06da526d5050deaada3fc62')" />
               <div id="msg_8_footer" class="attachments">
               </div>
            
                  <div class="smalltext floatleft" id="modified_8">

                  </div>
                  <div class="signature"><a href="http://w...............com/forum" class="bbc_link" target="_blank"><img src="http://image.ohozaa.com/i/076/bOIRUf.gif" alt="" width="700" height="105" class="bbc_img resized" /></a><br /></div>
            </td>
         </tr>
         <tr>
  น่าจะเป็นตรง code สีแดงครับ  ไม่รู้ต้องตามไปแก้ต่อที่ไหนครับ

  รบกวนเทพ SMF ช่วยอีกครั้งครับ
 ขอบพระคุณอย่างสูง
    :wanwan017:
Go 10$/Day from Google Adsense  by Only One (Thai) Site

SU9799

Go 10$/Day from Google Adsense  by Only One (Thai) Site

SU9799

  :wanwan020: ใช้ code ที่คุณ expact ให้มา  แก้ไขปัญหาได้แล้วครับ
ขอบพระคุณ คุณ expact เป็นอย่างสูงครับ ที่ช่วยให้คำแนะนำ และช่วยแก้ไขให้ ครับ

  :wanwan017: :wanwan017: :wanwan017:
Go 10$/Day from Google Adsense  by Only One (Thai) Site