1 Đưa jumpbox xuống footer cho phpBB2 Wed Jun 20, 2012 4:09 pm
Admin
Admin
Display - Templates - Quản lý tổng thể - Viewtopic_body
Tìm code này
Code:
<form
action="{S_JUMPBOX_ACTION}" method="get" name="jumpbox"
onsubmit="if(document.jumpbox.f.value == -1){return false;}">
...
</form>
... và bao quanh nó bằng
Code:
<div id="bvjump">
...
</div>
Tìm đoạn code này:
Code:
<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 -->
...và thay bằng:
Code:
<td id="j1" 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>
<td id="j2" align="right" nowrap="nowrap"><span
class="gensmall">{S_JUMPBOX_SELECT} <input class="liteoption"
type="submit" value="{L_GO}" /></span></td>
Bây giờ muốn mang nó đi đâu thì chỉ cần dùng code sau:
Code:
<script type="text/javascript">
jQuery.get('/t1-baivong', function(data) {
html = jQuery('#bvjump', data).html();
jQuery('#jumbox').html(html);
jQuery('#jumbox #j1').remove();
});
</script><div id="jumbox">Loading...</div>Viết bởi baivong - Độtkích.tk