The author of this message was banned from the forum -
See the messageBài viết : 32
Tài sản : 198
Uy tín : 4
Hỏi: Hiện tại thì e muốn lấy link chuyển số trang paging ở view_forum, khi click vào
button cần chuyển paging nó sẽ tự chuyển sang trang paging kế tiếp
Demo: https://i.imgur.com/Y74RU5u.png
Đáp:
https://devs.forumvi.com/t405-hoi-dap-lay-link-chuyen-trang-paging?showpost=p2683 Bài viết : 514
Tài sản : 927
Uy tín : 808
Cho mình xin link forum đi bạn
Bài viết : 276
Tài sản : 432
Uy tín : 89
theo mình biết . Lấy loca khi cick vô tự động thêm p 20 vào box là đc chỗ số 20 đó là +20 kết quả chưa có = 0+20
The author of this message was banned from the forum -
See the messageBài viết : 32
Tài sản : 198
Uy tín : 4
KirigayaKazuto wrote:Cho mình xin link forum đi bạn
http://lastest7.forumvi.com/
@phutu01 : là sao a , nếu a bít thì giúp e với :D
Bài viết : 514
Tài sản : 927
Uy tín : 808
Mình làm ở viewforum_body: đoạn
{PAGINATION} đặt nó vào trong 1 thẻ
div có
id là
pageSau đó thêm vào CSS:
- Code:
#page{font-size:0px;}#page a{display:none;}#page a img{width:0px;}
#page a:last-child{display:block;padding:15px 0px 15px 25px;width:600px;margin:0px auto;background:#24BBFF url(http://i57.servimg.com/u/f57/16/18/15/10/xt10.png) no-repeat top center;border-radius:3px;}
Đó là cách đơn giản nhất :D
The author of this message was banned from the forum -
See the messageBài viết : 32
Tài sản : 198
Uy tín : 4
ồ rất tuyệt đấy :3
P/s : nhưng có cách nào khác k như thế sửa lại rối lắm :(
Bài viết : 514
Tài sản : 927
Uy tín : 808
Đợi tý! Mình viết code đã :v
The author of this message was banned from the forum -
See the messageBài viết : 32
Tài sản : 198
Uy tín : 4
đâu r , xong chưa kazu :3
Bài viết : 217
Tài sản : 4458
Uy tín : 459
dùng ajax thì không cần chuyển trang nhưng phải cho cái isotope function lại
code này chuyển trang bình thường +20
- Code:
$(function () {
href = location.pathname.replace(/\/f[0-9]*p/, '').match(/[0-9]*/);
$('#pages a').attr('href', $('#page a').attr('href').replace('p' + href, 'p' + href + 20));
});
The author of this message was banned from the forum -
See the messageBài viết : 32
Tài sản : 198
Uy tín : 4
- Code:
http://lastest7.forumvi.com/f1-forum
click vào nó hiện ra như thế :P "javascrip20t:Pagination%28%29;"
Bài viết : 276
Tài sản : 432
Uy tín : 89
http://lastest7.forumvi.com/spa/mousety dùng này khi click vào tên :)) giống như xem ảnh đã đẳng
The author of this message was banned from the forum -
See the messageBài viết : 32
Tài sản : 198
Uy tín : 4
Bài viết : 217
Tài sản : 4458
Uy tín : 459
vô template thêm vào {PAGINATION}, cho ẩn đi bằng css
- Code:
$(function () {
a = document.getElementsByClassName('paging')[0].getElementsByTagName('b')[0].nextElementSibling.href;
document.getElementById('pages').getElementsByTagName('a')[0].setAttribute('href', a);
});
The author of this message was banned from the forum -
See the messageBài viết : 32
Tài sản : 198
Uy tín : 4
http://lastest7.forumvi.com/f1-forum vẫn không được luôn nè a ơi :(
Bài viết : 1498
Tài sản : 9065
Uy tín : 3601
- Code:
$(function () {
$(".paging").replaceWith(function () {
var next = $(".sprite-arrow_prosilver_right").parent().attr("href");
if (void 0 !== next) return '<div id="pages"><a class="uibutton special large" href="' + next + '">xem thêm, còn nhiều lắm</a></div>'
})
});
The author of this message was banned from the forum -
See the messageBài viết : 32
Tài sản : 198
Uy tín : 4
Bài viết : 1498
Tài sản : 9065
Uy tín : 3601
Kiểm tra trong
viewforum_body có còn:
- Code:
<p class="paging">{PAGINATION}</p>
Và đã xóa hết css và js liên quan trước đó chưa?
Nếu vẫn không được thì đưa paging về mặc định rồi mình xem lại.
The author of this message was banned from the forum -
See the messageBài viết : 32
Tài sản : 198
Uy tín : 4