[Thông báo] Chuyển diễn đàn


Diễn đàn về free Code sẽ chuyển sang ICT2.net







You are not connected. Please login or register

Xem chủ đề cũ hơn Xem chủ đề mới hơn Go down  Thông điệp [Trang 1 trong tổng số 1 trang]

duongcam.ict

duongcam.ict
Admin
Admin
Loading
Ghi chú: phpBB2 cũng có jumpbox nhưng nó chỉ hiện trong viewtopic, hướng dẫn này sẽ giúp bạn chuyển nó xuống overall_footer và sẽ hiện tất cả các trang.

Demo: https://i.servimg.com/u/f48/16/58/89/73/jumbox10.png

Hướng dẫn: Templates - Viewtopic_body

Tìm đoạn code này:
Code:
<form action="{S_JUMPBOX_ACTION}" method="get" name="jumpbox" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
   <tr>
      <td align="left" valign="middle" nowrap="nowrap" {WIDTH_GALLERY}>
         <span class="nav">
            <!-- BEGIN switch_user_authpost -->
            <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}Newtopic" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a> 
            <!-- END switch_user_authpost -->
            <!-- BEGIN switch_user_authreply -->
            <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
            <!-- END switch_user_authreply -->
         </span>
      </td>

      <!-- BEGIN viewtopic_bottom -->
      <td align="right" nowrap="nowrap"><span class="gensmall">{L_JUMP_TO}: {S_JUMPBOX_SELECT} <input class="liteoption" type="submit" value="{L_GO}" /></span></td>
      <!-- END viewtopic_bottom -->

      <!-- BEGIN moderation_panel -->
      <td align="center">
         <span class="gensmall">{moderation_panel.U_YOUR_PERSONAL_MODERATE}</span>
      </td>
      <td align="center" width="250">
         <span class="gensmall"> </span>
      </td>
      <!-- END moderation_panel -->
   </tr>
</table>
</form>

...và thay bằng:

Code:
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
   <tr>
      <td align="left" valign="middle" nowrap="nowrap" {WIDTH_GALLERY}>
         <span class="nav">
            <!-- BEGIN switch_user_authpost -->
            <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}Newtopic" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a>
             
            <!-- END switch_user_authpost -->
            <!-- BEGIN switch_user_authreply -->
            <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
            <!-- END switch_user_authreply -->
         </span>
      </td>
      <!-- BEGIN viewtopic_bottom -->
      <td align="right" nowrap="nowrap">
         <form id="jumpboxFMvi" action="{S_JUMPBOX_ACTION}" method="get" name="jumpbox" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
            <span class="gensmall">
               {S_JUMPBOX_SELECT}
               <input class="liteoption" type="submit" value="{L_GO}" />
            </span>
         </form>
      </td>
      <!-- END viewtopic_bottom -->
      <!-- BEGIN moderation_panel -->
      <td align="center">
         <span class="gensmall">
            {moderation_panel.U_YOUR_PERSONAL_MODERATE}
         </span>
      </td>
      <td align="center" width="250">
         <span class="gensmall">
            
         </span>
      </td>
      <!-- END moderation_panel -->
   </tr>
</table>

Bây giờ muốn mang nó đi đâu thì chỉ cần dùng code sau và đặt ở vị trí cần hiển thị trong overall_footer:

Code:
<div id="fmviJumbox">
  Loading...
</div>
<script type="text/javascript">
$("#fmviJumbox").load("/t1-FMvi form#jumpboxFMvi");
</script>

Viết bởi baivong - www.FMvi.org


Nguồn: http://www.fmvi.vn/t20-tao-sitemap-bang-cach-ua-jumpbox-xuong-footer-cho-phpbb2

Xem chủ đề cũ hơn Xem chủ đề mới hơn Về Đầu Trang  Thông điệp [Trang 1 trong tổng số 1 trang]

Permissions in this forum:
Bạn không có quyền trả lời bài viết