CHINH PHỤC
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.
Đăng nhập

Ghi nhớ
Latest topics
» Tôi sẽ đỗ đại học!
by nightWalker 9/2/2024, 7:00 pm

» Kỷ niệm xưa của chúng ta
by nightWalker 9/2/2024, 6:49 pm

» Bị lệch khung cần người giúp đỡ
by webhuy28 7/10/2021, 10:34 pm

» [HỎI ĐÁP] Danh sách bạn bè không thể hiển thị
by anhdaodaica1 2/10/2021, 10:04 pm

» [HỎI ĐÁP] Thông tin tài khoản không thể lưu thay đổi
by anhdaodaica1 2/10/2021, 6:05 am

» Phim bố già full
by huy.pc52 24/8/2021, 12:20 am

» Xin code Box HTML cho Forumvi
by Larva 1/7/2021, 12:57 pm

» Hello Anh Em Chinh phục
by HoàngTửNaivip5p 28/5/2021, 5:03 am

» Trang chủ tin tức cập nhật HOT 2016
by kenbi05 1/1/2020, 11:02 pm

» Không Dang9 bài viết = hình ảnh được
by huy.pc52 30/11/2019, 10:52 am

» CHÚC ANH EM NĂM MỚI VUI VẺ TRÀNG ĐẦY HẠNH PHÚC
by sps.kủn 12/2/2019, 1:16 pm

» Skin CNTT-K3 2015 (Full Mod)[✔]
by kenbi05 6/7/2018, 12:30 am

» baivong, handsome,....
by sps.kủn 29/6/2018, 1:54 pm

» [SHARE] SKIN ĐHFM.V7 @PUNBB
by tonyhoaivu 2/5/2018, 2:37 pm

» Share Skin Xanh Dương Cùi Bắp
by tonyhoaivu 28/4/2018, 5:57 pm

» Xin Skin http://v1.hotrofm.net/
by tonyhoaivu 28/4/2018, 5:45 pm

» Xin Skin Rao Vặt
by tonyhoaivu 15/4/2018, 12:07 pm

» Làm Sao Để Xóa Khung Này
by tonyhoaivu 14/4/2018, 7:18 pm

» [Lập nhóm]Lập nhóm fm
by vietkanpy 31/3/2018, 11:53 am

» [Help] về server úp ảnh của phutu [✔]
by baivong 17/3/2018, 10:18 pm

» Đừng khóc cho “tôi – Chinh Phục!”…
by AnHung 27/2/2018, 5:33 pm

» [Share] Skin Diendandaihoc.com [ Punbb ] [✔]
by Lu Mờ 13/2/2018, 7:28 pm

» Mời mấy thím vào groups Forumotion Việt Nam.
by dang02315 13/2/2018, 12:40 am

» Có thể làm các kiểu giao diện được không?
by Lu Mờ 9/2/2018, 3:40 pm

» ltns chinhphuc.info
by Shinichi Kudo 27/1/2018, 2:27 am

Top posting users this week
No user


Comment chuyển trang 1 lần + thông báo nếu có người comment cùng 1 lúc[✔]

2 posters

Go down

Comment chuyển trang 1 lần + thông báo nếu có người comment cùng 1 lúc[✔] Empty Comment chuyển trang 1 lần + thông báo nếu có người comment cùng 1 lúc[✔]

Bài gửi by anhdaodaica1 13/11/2013, 9:06 pm

Hiện Phutu.vn đang dùng đoạn js giúp comment nhanh (chuyển trang chỉ 1 lần) và thông báo nếu có người comment trùng topic cùng 1 lúc (tránh trường hợp mất comment)

Thấy cái này khá hay nên view nhưng vì là js nên khi view thì các đoạn code dính vào nhau -> dẫn đến việc không hoạt động

Đây là link trang js của Phutu.vn đang dùng và code view được: http://www.phutu.vn/18690.js

Code:
if(document.location.protocol=='http:'){var Tynt=Tynt||[];Tynt.push('b-YHwq12Wr3784adbi-bnq');Tynt.i={"ap":"BĂ i viết : ","as":"Nguồn phutu.vn"};(function(){var s=document.createElement('script');s.async="async";s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h)})()}window.___gcfg={lang:'vi'};(function(){var po=document.createElement('script');po.type='text/javascript';po.async=true;po.src='https://apis.google.com/js/plusone.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s)})();(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="//connect.facebook.net/vi_VN/all.js#xfbml=1&appId=490806194349758";fjs.parentNode.insertBefore(js,fjs)}(document,'script','facebook-jssdk'));var skin='http://content.longtailvideo.com/skins/glow/glow.zip';plugin='fbit-1';width='704';height='400';allowfullscreen='true';autostart='false';stretching='uniform';volume='90';centered='true';where='.postbody';$.getScript('http://player.longtailvideo.com/jwplayer.js');$(function(){var a=encodeURIComponent(skin);$(where+' embed[src*="youtube"]').each(function(){$(this).replaceWith("<embed class='jwplayer' name='jwplayer' src='http://player.longtailvideo.com/player.swf' width='"+width+"' height='"+height+"' allowscriptaccess='always' allowfullscreen='"+allowfullscreen+"' flashvars='file="+$(this).attr("src")+"&skin="+a+"&plugins="+plugin+"&autostart="+autostart+"&stretching="+stretching+"&volume="+volume+"' />");if(centered=="true"){$(".jwplayer").wrap("<center/>")}})});$(window).load(function(){$(".sceditor-button.sceditor-button-servimg").click(function(){$(".sceditor-imgshack p").html("<p><iframe class='imageshackiframe' src='/h37-' scrolling='no' allowtransparency='true' frameborder='0' width=500 height=220>Update your browser for ImageShack.us!</iframe></p>")})});function level(la,lb,lc,ld){var y=((lb*1+lc/5+ld*1)/100);var e=(lb*1+lc/5+ld*1);var g=Math.floor(y+parseInt(1));if(g>4){(y="1")};var d=((lb*1+lc/5+ld*1)-((g-1)*100));var o=(g*100);document.write('<div style="background: rgb(165,162,165);width:125px;height:13px;margin-left:-3px;"><div style="height:12px;float:left;background: rgb(24,117,189);width:'+d+'%;padding:1px 2px 0px 2px"><img src="http://i28.servimg.com/u/f28/14/28/30/23/spacer10.gif"></div><img src="http://i72.servimg.com/u/f72/16/18/15/10/111.png" style="position: absolute;margin-top:-2px"></div><div style="position: absolute;width:120px;height:13px;margin-top:-12px;color:#FFF;font:9px Tahoma;padding-left:2px" title="'+d+'%">Lv: '+g+'<div style="display:inline-block;width:80px;text-align:center;float:right;font:9px Arial">'+e+' / '+o+'</div></div>')};$(function(){setTimeout(function(){$(".topbai").fadeIn()},2000);topic_title=$(".titlept").html().replace(/ /gi,'+');forum_number=$(".main-content a.nav:last").attr('href').split('/').pop().split('-')[0];$('.topbai').load('/search?mode=searchbox&search_keywords='+topic_title+'&search_where='+forum_number+' a.topictitle:lt(10)');$(".topbai").mouseenter(function(){$("a.topictitle").each(function(){var normal_link=$(this).attr('href').split('?')[0];$(this).attr('href',normal_link)})})});
Ai biết đoạn code gốc thì share cho mình với

P/s: Dùng cái này ko biết có cần fix cái gì trong viewtopic ko nhỉ?
anhdaodaica1
anhdaodaica1
CPPurpleMember
CPPurpleMember

Chrome PhpBB2
Ngày đăng ký : 01/03/2011
Số bài : 857
CPP : -16

http://OtakuWorld.Biz

Về Đầu Trang Go down

Comment chuyển trang 1 lần + thông báo nếu có người comment cùng 1 lúc[✔] Empty Re: Comment chuyển trang 1 lần + thông báo nếu có người comment cùng 1 lúc[✔]

Bài gửi by Zero 14/11/2013, 2:15 pm

Zero
Zero
CPYellowMember
CPYellowMember

Firefox PunBB
Ngày đăng ký : 01/01/2009
Số bài : 2328
CPP : 2418
Châm ngôn sống : YOLO

http://devs.cf

Về Đầu Trang Go down

Về Đầu Trang

- Similar topics

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