ThaiSEOBoard.com

พัฒนาเว็บไซต์ => CMS & Free Script => ข้อความที่เริ่มโดย: george ที่ 18 มีนาคม 2014, 15:17:09



หัวข้อ: smf กับ header
เริ่มหัวข้อโดย: george ที่ 18 มีนาคม 2014, 15:17:09
(http://www.uppic.org/image-3938_53280080.jpg)

ถ้าเราจะเปลี่ยนสี และขนาดตัวอักษรเราจะสามารถแก้ได้จากตรงไหนครับ และถ้าเรา
จะเอาตำแหน่งนี้ออกทั้งหมด เราต้องทำยังไงและจะมีผลยังไงบ้างครับ

ขอบคุณครับ


หัวข้อ: Re: smf กับ header
เริ่มหัวข้อโดย: gamepc2u ที่ 18 มีนาคม 2014, 16:19:17
ไฟล์ index.template ครับ
ถ้าจะลบหา คำว่า Login ลบออกก็ไม่มีผลอะไรครับ


หัวข้อ: Re: smf กับ header
เริ่มหัวข้อโดย: george ที่ 18 มีนาคม 2014, 16:45:21
ไฟล์ index.template ครับ
ถ้าจะลบหา คำว่า Login ลบออกก็ไม่มีผลอะไรครับ

ไม่ทราบว่าลบอันไหน และถ้าต้องการเปลี่ยนสีตัวอักษร แก้ที่ตรงไหนครับ

ขอบคุณครับ

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   elseif (!empty($context['show_login_bar']))
   {
      echo '
            <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
            <form style="text-align: right" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, '' . $context['session_id'] . '');"' : '', '>
               <div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
               <input type="text" name="user" size="10" class="input_text" />
               <input type="password" name="passwrd" size="10" class="input_password" />
               <select name="cookielength">
                  <option value="60">', $txt['one_hour'], '</option>
                  <option value="1440">', $txt['one_day'], '</option>
                  <option value="10080">', $txt['one_week'], '</option>
                  <option value="43200">', $txt['one_month'], '</option>
                  <option value="-1" selected="selected">', $txt['forever'], '</option>
               </select>
               <input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
               <div class="info">', $txt['quick_login_dec'], '</div>';

      if (!empty($modSettings['enableOpenID']))
         echo '
               <br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

      echo '
               <input type="hidden" name="hash_passwrd" value="" />
            </form>';
   }
   
   
   echo '
         </div>
         
      </div></div>';
      
   // Show the menu here, according to the menu sub template.
   template_menu();

   echo '
      <br class="clear" />';


หัวข้อ: Re: smf กับ header
เริ่มหัวข้อโดย: MaMa.Killer ที่ 18 มีนาคม 2014, 16:50:00
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   elseif (!empty($context['show_login_bar']))
   {
      echo '
            <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
            <form style="text-align: right" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, '' . $context['session_id'] . '');"' : '', '>
               <div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
               <input type="text" name="user" size="10" class="input_text" />
               <input type="password" name="passwrd" size="10" class="input_password" />
               <select name="cookielength">
                  <option value="60">', $txt['one_hour'], '</option>
                  <option value="1440">', $txt['one_day'], '</option>
                  <option value="10080">', $txt['one_week'], '</option>
                  <option value="43200">', $txt['one_month'], '</option>
                  <option value="-1" selected="selected">', $txt['forever'], '</option>
               </select>
               <input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
               <div class="info">', $txt['quick_login_dec'], '</div>';

      if (!empty($modSettings['enableOpenID']))
         echo '
               <br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

      echo '
               <input type="hidden" name="hash_passwrd" value="" />
            </form>';
   }


หัวข้อ: Re: smf กับ header
เริ่มหัวข้อโดย: george ที่ 18 มีนาคม 2014, 17:03:29

แก้แล้วหน้าตามันเปลี่ยนไปน่ะครับ

(http://www.uppic.org/image-ADA7_532819B0.jpg)


หัวข้อ: Re: smf กับ header
เริ่มหัวข้อโดย: george ที่ 18 มีนาคม 2014, 17:05:07
ถ้าเราจะเปลี่ยนตัวหนังสือสำหรับ login จากสีดำให้เป็นสีขาว จะต้องแก้ตรงไหนครับ

ขอบคุณครับ


หัวข้อ: Re: smf กับ header
เริ่มหัวข้อโดย: romance69 ที่ 18 มีนาคม 2014, 18:50:36
ถ้าเราจะเปลี่ยนตัวหนังสือสำหรับ login จากสีดำให้เป็นสีขาว จะต้องแก้ตรงไหนครับ

ขอบคุณครับ


แก้ไขตามนี้ครับ

โค๊ด:
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   elseif (!empty($context['show_login_bar']))
   {
      echo '
            <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
            <form style="text-align: right" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, '' . $context['session_id'] . '');"' : '', '>
               <div class="info"><font color="#fff">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</font></div>
               <input type="text" name="user" size="10" class="input_text" />
               <input type="password" name="passwrd" size="10" class="input_password" />
               <select name="cookielength">
                  <option value="60">', $txt['one_hour'], '</option>
                  <option value="1440">', $txt['one_day'], '</option>
                  <option value="10080">', $txt['one_week'], '</option>
                  <option value="43200">', $txt['one_month'], '</option>
                  <option value="-1" selected="selected">', $txt['forever'], '</option>
               </select>
               <input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
               <div class="info"><font color="#fff">', $txt['quick_login_dec'], '</font></div>';

      if (!empty($modSettings['enableOpenID']))
         echo '
               <br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

      echo '
               <input type="hidden" name="hash_passwrd" value="" />
            </form>';
   }
   
   
   echo '
         </div>
         
      </div></div>';
     
   // Show the menu here, according to the menu sub template.
   template_menu();

   echo '
      <br class="clear" />';


หัวข้อ: Re: smf กับ header
เริ่มหัวข้อโดย: george ที่ 18 มีนาคม 2014, 19:41:51
ผมได้ผลอย่างรูปครับ ตัวหนังสือในกรอบไม่เปลี่ยนสีครับ เปลี่ยนแต่ข้างล่างครับ

ขอบคุณครับ

(http://www.uppic.org/image-E70F_53283EAE.jpg)