Đăng nhập
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 |
[Share][Mod] Giao dịch gửi tiền nhanh[✔]
+24
Cyhitmen
daiqb147
Chúa Tể Địa Ngục
Ngọc Trâm
anhdaodaica1
Lowie
hunghsmn
_Alexander_
baivong
kenzy
miamor
vantrong
Méo Hắc Hắc
HoàngTửNaivip5p
Rin
mrtienduc1999
notme
RoronoaZoro
Lùn Lì Lợm
Rune
K.-Kun
Ocean Sapphire
Larva
Get Over
28 posters
Trang 4 trong tổng số 4 trang
Trang 4 trong tổng số 4 trang • 1, 2, 3, 4
[Share][Mod] Giao dịch gửi tiền nhanh[✔]
First topic message reminder :
thấy có vài người thích cái chuyển tiền hướng là khi điền thông tin thì sẽ gửi tin nhắn lên tường của BQT và chờ BQT xét duyệt . Nhưng cách này thì cũng tốn thời gian cho BQT để vào ACP rồi chỉnh ... Giờ mình xin được viết mod Giao dịch gửi tiền nhanh
Demo :
Giao diện mod :
[You must be registered and logged in to see this image.]
Nếu không phải người kiểm giao dịch sẽ không thể vào :
[You must be registered and logged in to see this image.]
Đối với người kiểm duyệt giao dịch thì sẽ có chức năng thêm ở wall kiểm duyệt
[You must be registered and logged in to see this image.]
Sau khi click hệ thống sẽ tự động kiểm duyệt cộng tiền cho người được nhận, trừ tiền cho người gửi với số tiền tương ứng
[You must be registered and logged in to see this image.]
Chức năng nổi bật :
- Giao diện gửi tiền
- Gửi thông báo lên wall lưu trữ giao dịch
- Chưc năng chấp nhận giao dịch nhanh không phải vào ACP làm gì cho tốn công
- Tự động cộng, trừ tiền cho người tương ứng
- Tự động xóa giao dịch thành công không chuyển trang
Chú ý : giao dịch sẽ chuyển lên tường của tài khoản WallPoints (bước 1) nên chỉ có ai được ủy quyền mới có thể kiểm duyệt đơn
Hướng dẫn : Mình mới làm Punbb các phiên bản khác đợi nhé
Bước 1 : Tạo 1 tài khoản mới để lưu trữ các giao dịch . Đặt tên là WallPoints và bạn hãy nhớ số id của tài khoản đó VD : /u4 , /u5 ,.. thì 4 ,5 là id của tài khoản
Bước 2 : Truy cập vào tài khoản đó và tìm đến đường dẫn sau : /profile?mode=editprofile&page_profil=preferences
Chỉnh :
Allow visitor messages on my profile : Tất cả thành viên
Lưu lại
Bước 3 : Chỉnh trong ACP :
ACP --> QLTT --> Forum --> Cấu hình diễn đàn --> Thiết Lập Tổng Quát Diễn Đàn :
Mô Tả * : <span id=useraccess style=display:none>{USER-LINK}</span>
(Chú ý bỏ - trong thẻ { } đi nhé vì mình đưa lên đây là bị lỗi nên phải đưa theo kiểu đó)
ACP --> QLTT --> Forum --> Security --> Security Administration
Unauthorize unofficial forms to post messages and private messages on the forum : Không
Lưu lại
Bước 4 : ACP --> Display --> CSS :
Tìm trong code [href*="/u3wall?d"] sửa 3 thành id bạn của WallPoints ở bước 1
Bước 5 : Thêm HTML : ACP --> Display --> Templates --> Overall_header thêm đoạn code sau dưới cùng
Bước 6 : ACP --> Modules --> Javascript codes management --> Tạo 1 file javascript mới :
Title * : Points System
Placement : In all the page
Code :
Chỉnh code :
Tìm
var id = 3; thay con số 3 thành id của WallPoints ở bước 1
var user_access = "Admin" ; thay Admin thành tên tài khoản là người duyệt giao dịch (Giữ nguyên dấu " ")
(Chú ý người này phải là admin phụ hoặc chính , miễn là có thể truy cập vào được ACP )
Sau đó save lại
Bước 7 : ACP --> Quản lý người dùng & Quản lý nhóm --> Profiles --> Points*
Click vào [You must be registered and logged in to see this image.]của hàng Points*
Display : Tích vào Lý lịch và Messages
----------------------------------------------------------------------------------------
Chú ý : với nhưng ai không làm được thì làm như sau
Các bạn sẽ bỏ Bước 3 phần 1 đi tức là bỏ
Và thay Javascript ở bước 6 thành :
Sau đó bạn sẽ tìm id thay tương tự như trên nhưng bạn sẽ không cần phải tìm user_access nữa vì mình đã bỏ nó đi
Bạn sẽ thấy : Chuyển Points ở góc màn hình bên trái
Chúc các bạn thành công
thấy có vài người thích cái chuyển tiền hướng là khi điền thông tin thì sẽ gửi tin nhắn lên tường của BQT và chờ BQT xét duyệt . Nhưng cách này thì cũng tốn thời gian cho BQT để vào ACP rồi chỉnh ... Giờ mình xin được viết mod Giao dịch gửi tiền nhanh
Demo :
Giao diện mod :
[You must be registered and logged in to see this image.]
Nếu không phải người kiểm giao dịch sẽ không thể vào :
[You must be registered and logged in to see this image.]
Đối với người kiểm duyệt giao dịch thì sẽ có chức năng thêm ở wall kiểm duyệt
[You must be registered and logged in to see this image.]
Sau khi click hệ thống sẽ tự động kiểm duyệt cộng tiền cho người được nhận, trừ tiền cho người gửi với số tiền tương ứng
[You must be registered and logged in to see this image.]
Chức năng nổi bật :
- Giao diện gửi tiền
- Gửi thông báo lên wall lưu trữ giao dịch
- Chưc năng chấp nhận giao dịch nhanh không phải vào ACP làm gì cho tốn công
- Tự động cộng, trừ tiền cho người tương ứng
- Tự động xóa giao dịch thành công không chuyển trang
Chú ý : giao dịch sẽ chuyển lên tường của tài khoản WallPoints (bước 1) nên chỉ có ai được ủy quyền mới có thể kiểm duyệt đơn
Hướng dẫn : Mình mới làm Punbb các phiên bản khác đợi nhé
Bước 1 : Tạo 1 tài khoản mới để lưu trữ các giao dịch . Đặt tên là WallPoints và bạn hãy nhớ số id của tài khoản đó VD : /u4 , /u5 ,.. thì 4 ,5 là id của tài khoản
Bước 2 : Truy cập vào tài khoản đó và tìm đến đường dẫn sau : /profile?mode=editprofile&page_profil=preferences
Chỉnh :
Allow visitor messages on my profile : Tất cả thành viên
Lưu lại
Bước 3 : Chỉnh trong ACP :
ACP --> QLTT --> Forum --> Cấu hình diễn đàn --> Thiết Lập Tổng Quát Diễn Đàn :
Mô Tả * : <span id=useraccess style=display:none>{USER-LINK}</span>
(Chú ý bỏ - trong thẻ { } đi nhé vì mình đưa lên đây là bị lỗi nên phải đưa theo kiểu đó)
ACP --> QLTT --> Forum --> Security --> Security Administration
Unauthorize unofficial forms to post messages and private messages on the forum : Không
Lưu lại
Bước 4 : ACP --> Display --> CSS :
- Code:
/*************Point send system********/
a[href*="/u3wall?d"] {
font-size:0px;}
a[href*="/u3wall?d"]:after {
content:"Chấp nhận giao dịch";
font-size : 12px;
}
#pointopen {
text-align :center;
position: fixed;
bottom: 10px;
left: 10px;
min-height: 20px;
width: 120px ;
z-index: 999;
-moz-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
background: #000000;
font-weight: bold;
color:white
}
.pointuser, .erroraccess {
-moz-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
background: #fff;
border: 1.5px solid #D5D5D5;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
padding: 12px ;
border-radius: 3px;
margin-top: 100px;
margin-left: 600;
width : auto;
color:black;
position: fixed;
}
.notepass {
background-position: 10px center;
border-radius: 4px 4px 4px;
background-color: #d1e4f3;
background-image: url("http://cdn1.iconfinder.com/data/icons/musthave/24/Information.png");
background-repeat: no-repeat;
color: #073561;
border: 1px solid #175fa3;
margin: 10px 0px;
padding: 15px 10px 15px 50px;
}
.pointuser .button {
background-image:url(http://2img.net/i/fa/admin/icon_ok.gif);
background-repeat:no-repeat;
color: #6C0;
border: 1px solid #8FD534;
margin: 2px 0 2px 20px;
padding:0 5px 0 16px;
cursor:pointer;
background-repeat:no-repeat;
direction:ltr;
margin-left: 170;
}
.pointuser .button:hover {
border-color:#66CC00;
background-color: #eeeeee;
background-image:url(http://2img.net/i/fa/admin/icon_ok.gif);
background-repeat:no-repeat;
text-decoration: none;
}
.notifi {color : green; font-weight:bold }
/*************Point send system********/
Tìm trong code [href*="/u3wall?d"] sửa 3 thành id bạn của WallPoints ở bước 1
Bước 5 : Thêm HTML : ACP --> Display --> Templates --> Overall_header thêm đoạn code sau dưới cùng
- Code:
<div id ="panelpoint">
<div id="pointopen" style ="cursor:pointer;" onclick="if($('.pointuser').css('display')=='none'){$('.pointuser').show()}else{$('.pointuser').hide()}">Chuyển points</div>
<div class="pointuser" style ="display:none;">
<div class ="notepass">Hãy nhập tên người bạn muốn chuyển tiền và số tiền phía dưới. Giao dịch sẽ được gửi tới BQT</div>
<label for="usersend" style="text-align:left; color : red; font-weight:bold;margin-left: 2px;">User : </label>
<input type="text" id="usersend" placeholder="Tên người nhận..."/>
<br>
<br>
<label for="pointsend" style="text-align:left; color : blue; font-weight:bold">Point : </label>
<input type="text" id="pointsend" placeholder="Tiền muốn gửi..."/>
<br>
<br>
<input type="submit" name="pointsubmit" style="float:left; " value="Chấp nhận" class="button"/>
<div class="notifi">
<span class="loadajax" style="display:none;margin-left:80px;">
<img src ="http://i35.servimg.com/u/f35/15/64/85/86/ajax-l10.gif" /></span></div>
</div>
</div>
Bước 6 : ACP --> Modules --> Javascript codes management --> Tạo 1 file javascript mới :
Title * : Points System
Placement : In all the page
Code :
- Code:
var copyrightVi = "Points System được viết bởi doannamthai - diendan.chinhphuc.info . Vui lòng không xóa dòng bản quyền này" ;
var copyrightEn = "Points System was written by doannamthai - diendan.chinhphuc.info . Please don't remove this copyright";
var id = 3; //ID của tài khoản chứa giao dịch
var wallp = "WallPoints"; // Tên tài khoản chứ giao dịch
var user_access = "Admin" ; //Tên người có thể truy cập vào wall giao dịch
$(function(){
$(".pointuser .button").click(function(){
var d = $("#usersend").val();
var e = Number($("#pointsend").val());
if(e < 1 || isNaN(e) == true){
alert("Bạn phải nhập số tiền (Số tiền > 0 ) vào phía dưới");
}
else if(d.length < 1) {
alert("Vui lòng nhập tên người nhận ở phía dưới");
}
else{
$.get("/profile?mode=viewprofile&u="+$("#useraccess").text() , function(a) {
var pt = Number($(a).find("#field_id-13 .field_uneditable").text());
if(pt < e) {
alert("Bạn không đủ points trong tài khoản. Hiện giờ bạn có : "+pt+" points")
}
else{
$.post("/privmsg", {
subject: "Giao dịch chuyển tiền",
message: "Tôi muốn chuyển [b]"+e+"[/b] points cho [b]"+d+"[/b]" ,
username : wallp,
u : id,
mode: "post_profile",
folder: "profile",
"auth[]": $("input[name='auth[]']:last").val(),
post: "Send"
}, function(z){
if($(z).find(".message a[href*='wall']").length){
alert("Gửi giao dịch thành công . Hãy chờ BQT kiểm duyệt giao dịch của bạn");
}
else{
alert("Gửi giao dịch thất bại. Vui lòng thử lại");
}
});
}
});
}
});
});
$(function(){
prehref = RegExp("u"+id+"wall");
if ($("#useraccess").text() != user_access){
prehref.test(window.location.pathname.substr(1))&&($("body").html('<style>body {z-index: 9999; opacity: 1; background-color: #a1a1a1;" }</style><div class="passforum"><div class ="notepass">Xin lỗi bạn! Bạn không được phép truy cập vào trang này</div></div>'));
}
if($('a[href*="/admin/index.forum"]').length){
var acplink = $('a[href*="/admin/index.forum"]:last').attr("href").slice($('a[href*="/admin/index.forum"]:last').attr("href").lastIndexOf("=")+1);
$('a[href*="/u'+id+'wall?d"]').click(function(v){
v.preventDefault();
$(this).after('<div class="loadpoint">Hệ thống đang gửi dữ liệu vui lòng chờ ..</div>');
var a = $(this).parents(".message-block").find(".message-text strong:last").text();
var b = Number($(this).parents(".message-block").find(".message-text strong:first").text());
var f = $(this).parents(".message-block").find("a[href*='/u']:first").text();
var h = $(this).attr("href");
var g = $(this);
$.get("/memberlist?username="+a ,function(c){
var n = $(c).find('a[href*="/u"]:first').attr("href").slice($(c).find('a[href*="/u"]:first').attr("href").indexOf("u")+1);
$.get("admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid="+acplink+"&action=add_points_for_user&search_user="+a+"&submit_search_user=ok" , function(q) {
var pointdef = Number($(q).find("form:first td:last input").attr("value"));
$.post("admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid="+acplink+"&action=add_points_for_user&search_user="+a+"&submit_search_user=ok&points_new_value["+n+"]="+(pointdef + b)+"&submit=Chấp nhận", function(a) {
if($(a).find(".successbox").length){
$.get(h , function (j){
var delid = $(j).find('input[name="tid"]').val();
$.post(h , {
"tid" : delid ,
"confirm" : "Có"
});
$(g).parents("li").slideUp();
});
alert("Đã gửi giao dịch thành công");
$(".loadpoint").remove();
}
else {
alert("Lỗi khi gửi giao dịch");
$(".loadpoint").remove();
}
});
});
});
$.get("/memberlist?username="+f ,function(c){
var n = $(c).find('a[href*="/u"]:first').attr("href").slice($(c).find('a[href*="/u"]:first').attr("href").indexOf("u")+1);
$.get("admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid="+acplink+"&action=add_points_for_user&search_user="+f+"&submit_search_user=ok" , function(q) {
var pointdef = Number($(q).find("form:first td:last input").attr("value"));
$.post("admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid="+acplink+"&action=add_points_for_user&search_user="+f+"&submit_search_user=ok&points_new_value["+n+"]="+(pointdef - b)+"&submit=Chấp nhận");
});
});
});
}
});
Chỉnh code :
Tìm
var id = 3; thay con số 3 thành id của WallPoints ở bước 1
var user_access = "Admin" ; thay Admin thành tên tài khoản là người duyệt giao dịch (Giữ nguyên dấu " ")
(Chú ý người này phải là admin phụ hoặc chính , miễn là có thể truy cập vào được ACP )
Sau đó save lại
Bước 7 : ACP --> Quản lý người dùng & Quản lý nhóm --> Profiles --> Points*
Click vào [You must be registered and logged in to see this image.]của hàng Points*
Display : Tích vào Lý lịch và Messages
----------------------------------------------------------------------------------------
Chú ý : với nhưng ai không làm được thì làm như sau
Các bạn sẽ bỏ Bước 3 phần 1 đi tức là bỏ
ACP --> QLTT --> Forum --> Cấu hình diễn đàn --> Thiết Lập Tổng Quát Diễn Đàn :
Mô Tả * : <span id=useraccess style=display:none>{USER-LINK}</span>
(Chú ý bỏ - trong thẻ { } đi nhé vì mình đưa lên đây là bị lỗi nên phải đưa theo kiểu đó)
Và thay Javascript ở bước 6 thành :
- Code:
var copyrightVi = "Points System được viết bởi doannamthai - diendan.chinhphuc.info . Vui lòng không xóa dòng bản quyền này" ;
var copyrightEn = "Points System was written by doannamthai - diendan.chinhphuc.info . Please don't remove this copyright";
var id = 3; //ID của tài khoản chứa giao dịch
var wallp = "WallPoints"; // Tên tài khoản chứ giao dịch
$(function(){
$(".pointuser .button").click(function(){
$("#pointsend").after('<div class="loadpoint"><br>Hệ thống đang gửi giao dịch lòng chờ ..</div>');
var d = $("#usersend").val();
var e = Number($("#pointsend").val());
if(e < 1 || isNaN(e) == true){
alert("Bạn phải nhập số tiền (Số tiền > 0 ) vào phía dưới");
$(".loadpoint").remove();
}
else if(d.length < 1) {
alert("Vui lòng nhập tên người nhận ở phía dưới");
$(".loadpoint").remove();
}
else{
$.get("/popup_help.forum?l=miscvars" , function(a){
var userlink = $(a).find("a[href*='mode=viewprofile']:last").attr("href");
$.get(userlink , function(a) {
var pt = Number($(a).find("#field_id-13 .field_uneditable").text());
if(pt < e) {
alert("Bạn không đủ points trong tài khoản. Hiện giờ bạn có : "+pt+" points");
$(".loadpoint").remove();
}
else{
$.post("/privmsg", {
subject: "Giao dịch chuyển tiền",
message: "Tôi muốn chuyển [b]"+e+"[/b] points cho [b]"+d+"[/b]" ,
username : wallp,
u : id,
mode: "post_profile",
folder: "profile",
"auth[]": $("input[name='auth[]']:last").val(),
post: "Send"
}, function(z){
if($(z).find(".message a[href*='wall']").length){
alert("Gửi giao dịch thành công . Hãy chờ BQT kiểm duyệt giao dịch của bạn");
$(".loadpoint").remove();
}
else{
alert("Gửi giao dịch thất bại. Vui lòng thử lại");
$(".loadpoint").remove();
}
});
}
});
});
}
});
});
$(function(){
if($('a[href*="/admin/index.forum"]').length){
var acplink = $('a[href*="/admin/index.forum"]:last').attr("href").slice($('a[href*="/admin/index.forum"]:last').attr("href").lastIndexOf("=")+1);
$('a[href*="/u'+id+'wall?d"]').click(function(v){
v.preventDefault();
$(this).after('<div class="loadpoint">Hệ thống đang gửi dữ liệu vui lòng chờ ..</div>');
var a = $(this).parents(".message-block").find(".message-text strong:last").text();
var b = Number($(this).parents(".message-block").find(".message-text strong:first").text());
var f = $(this).parents(".message-block").find("a[href*='/u']:first").text();
var h = $(this).attr("href");
var g = $(this);
$.get("/memberlist?username="+a ,function(c){
var n = $(c).find('a[href*="/u"]:first').attr("href").slice($(c).find('a[href*="/u"]:first').attr("href").indexOf("u")+1);
$.get("admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid="+acplink+"&action=add_points_for_user&search_user="+a+"&submit_search_user=ok" , function(q) {
var pointdef = Number($(q).find("form:first td:last input").attr("value"));
$.post("admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid="+acplink+"&action=add_points_for_user&search_user="+a+"&submit_search_user=ok&points_new_value["+n+"]="+(pointdef + b)+"&submit=Chấp nhận", function(a) {
if($(a).find(".successbox").length){
$.get(h , function (j){
var delid = $(j).find('input[name="tid"]').val();
$.post(h , {
"tid" : delid ,
"confirm" : "Có"
});
$(g).parents("li").slideUp();
});
alert("Đã gửi giao dịch thành công");
$(".loadpoint").remove();
}
else {
alert("Lỗi khi gửi giao dịch");
$(".loadpoint").remove();
}
});
});
});
$.get("/memberlist?username="+f ,function(c){
var n = $(c).find('a[href*="/u"]:first').attr("href").slice($(c).find('a[href*="/u"]:first').attr("href").indexOf("u")+1);
$.get("admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid="+acplink+"&action=add_points_for_user&search_user="+f+"&submit_search_user=ok" , function(q) {
var pointdef = Number($(q).find("form:first td:last input").attr("value"));
$.post("admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid="+acplink+"&action=add_points_for_user&search_user="+f+"&submit_search_user=ok&points_new_value["+n+"]="+(pointdef - b)+"&submit=Chấp nhận");
});
});
});
}
});
Sau đó bạn sẽ tìm id thay tương tự như trên nhưng bạn sẽ không cần phải tìm user_access nữa vì mình đã bỏ nó đi
Bạn sẽ thấy : Chuyển Points ở góc màn hình bên trái
Chúc các bạn thành công
Viết bởi : doannamthai
Vui lòng ghi rõ nguồn [You must be registered and logged in to see this link.] khi sao chép bài viết
Vui lòng ghi rõ nguồn [You must be registered and logged in to see this link.] khi sao chép bài viết
Được sửa bởi doannamthai ngày 28/7/2013, 3:38 pm; sửa lần 12.
Get Over- CPModerator
-
Ngày đăng ký : 05/10/2012
Số bài : 362
CPP : 487
Châm ngôn sống : Ngọn gió sẽ đưa ta vi vu trên dòng đời cuộc sống
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
Méo Hắc Hắc đã viết:Em tên là Méo, có 1000 Gold, em gửi cho Silver 1000 Gold, rốt cuộc xem lại em còn -1000 [You must be registered and logged in to see this image.]
Forum + nick test ?
Get Over- CPModerator
-
Ngày đăng ký : 05/10/2012
Số bài : 362
CPP : 487
Châm ngôn sống : Ngọn gió sẽ đưa ta vi vu trên dòng đời cuộc sống
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
doannamthai đã viết:Thế thì thôi bỏ cái mod kia đi để hết lỗi
Vậy có cách nào cho cái chuyển point này chỉ hoạt động ở wall không?
tức là vào *tường* mình hoặc mọi người mới ra nút gửi point
Lowie- CPPurpleMember
-
Ngày đăng ký : 24/06/2011
Số bài : 1345
CPP : 231
Châm ngôn sống : Dẫu hiên ngang giữa đất trời, VỢ DÂM BẠN ĐỂU thì đời cũng xong!
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
doannamthai đã viết:
Forum + nick test ?
nick: Test (có viết hoa)
pass: testing123
forum: [You must be registered and logged in to see this link.]
Nick đang có 1000 Gold
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
truongchun đã viết:Làm xong lâu rồi mà giờ mới biết bị xung đột với SCEditor 1 cách... kính phục:
Mem: không hiện thanh SCEditor
Admin (được set quyền kiểm duyệt): hiện thanh SCEditor...
[You must be registered and logged in to see this link.] (đã tắt js), xem giúp với thái ơi
gặp cái tình trạng này thì sửa làm sao nếu nó giống đoạn này thái nói
doannamthai đã viết:Hoặc muốn tự update thì tìm trong code js :Không biết mình chỉnh sửa mấy triệu lần rồi các bạn thử lại js trên kia nhé mình mới update .
var acplink thêm trước : if($('a[href*="/admin/index.forum"]').length){ và tìm }); cuối cùng trong code js đó sau đó thêm trước nó ký tự }
thì lúc Rin fix nó ko chạy giao dịch có cách khắc phục ko thái
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
Rin đã viết:truongchun đã viết:Làm xong lâu rồi mà giờ mới biết bị xung đột với SCEditor 1 cách... kính phục:
Mem: không hiện thanh SCEditor
Admin (được set quyền kiểm duyệt): hiện thanh SCEditor...
[You must be registered and logged in to see this link.] (đã tắt js), xem giúp với thái ơi
gặp cái tình trạng này thì sửa làm sao nếu nó giống đoạn này thái nóidoannamthai đã viết:Hoặc muốn tự update thì tìm trong code js :Không biết mình chỉnh sửa mấy triệu lần rồi các bạn thử lại js trên kia nhé mình mới update .
var acplink thêm trước : if($('a[href*="/admin/index.forum"]').length){ và tìm }); cuối cùng trong code js đó sau đó thêm trước nó ký tự }
thì lúc Rin fix nó ko chạy giao dịch :~có cách khắc phục ko thái
Chạy bt mà Rin thử lại code ở bài viết đi
Get Over- CPModerator
-
Ngày đăng ký : 05/10/2012
Số bài : 362
CPP : 487
Châm ngôn sống : Ngọn gió sẽ đưa ta vi vu trên dòng đời cuộc sống
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
Méo Hắc Hắc đã viết:doannamthai đã viết:
Forum + nick test ?
nick: Test (có viết hoa)
pass: testing123
forum: [You must be registered and logged in to see this link.]
Nick đang có 1000 Gold
Đã thử và không có lỗi
Get Over- CPModerator
-
Ngày đăng ký : 05/10/2012
Số bài : 362
CPP : 487
Châm ngôn sống : Ngọn gió sẽ đưa ta vi vu trên dòng đời cuộc sống
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
giúp đi thái ơi
Lowie- CPPurpleMember
-
Ngày đăng ký : 24/06/2011
Số bài : 1345
CPP : 231
Châm ngôn sống : Dẫu hiên ngang giữa đất trời, VỢ DÂM BẠN ĐỂU thì đời cũng xong!
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
sao em k gửi đk vậy đủ tiền mà nó bảo là k đủ hiện giớ bạn có 0 ponit là sao
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
fix lại rồi thái tại trong js của thái Rin có thêm 1 đoạn làm cho nó nữa chạy nữa không
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
muốn chức năng chuyển point chỉ thực hiện được ở wall thì làm như thế nào hả trời
Lowie- CPPurpleMember
-
Ngày đăng ký : 24/06/2011
Số bài : 1345
CPP : 231
Châm ngôn sống : Dẫu hiên ngang giữa đất trời, VỢ DÂM BẠN ĐỂU thì đời cũng xong!
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
Tìm đoạn $(function(){ đầu tiên đến }); trước $(function(){ thứ 2 sửa thành
- Code:
if (window.location.pathname.indexOf('/u') == 0 && window.location.pathname.split('w')[1] == "all"){
$(function(){
$(".pointuser .button").click(function(){
$("#pointsend").after('<div class="loadpoint"><br>Hệ thống đang gửi giao dịch lòng chờ ..</div>');
var d = $("#usersend").val();
var e = Number($("#pointsend").val());
if(e < 1 || isNaN(e) == true){
alert("Bạn phải nhập số tiền (Số tiền > 0 ) vào phía dưới");
$(".loadpoint").remove();
}
else if(d.length < 1) {
alert("Vui lòng nhập tên người nhận ở phía dưới");
$(".loadpoint").remove();
}
else{
$.get("/popup_help.forum?l=miscvars" , function(a){
var userlink = $(a).find("a[href*='mode=viewprofile']:last").attr("href");
$.get(userlink , function(a) {
var pt = Number($(a).find("#field_id-13 .field_uneditable").text());
if(pt < e) {
alert("Bạn không đủ points trong tài khoản. Hiện giờ bạn có : "+pt+" points");
$(".loadpoint").remove();
}
else{
$.post("/privmsg", {
subject: "Giao dịch chuyển tiền",
message: "Tôi muốn chuyển [b]"+e+"[/b] points cho [b]"+d+"[/b]" ,
username : wallp,
u : id,
mode: "post_profile",
folder: "profile",
"auth[]": $("input[name='auth[]']:last").val(),
post: "Send"
}, function(z){
if($(z).find(".message a[href*='wall']").length){
alert("Gửi giao dịch thành công . Hãy chờ BQT kiểm duyệt giao dịch của bạn");
$(".loadpoint").remove();
}
else{
alert("Gửi giao dịch thất bại. Vui lòng thử lại");
$(".loadpoint").remove();
}
});
}
});
});
}
});
});
}
else{
$("#panelpoint").remove();
}
Get Over- CPModerator
-
Ngày đăng ký : 05/10/2012
Số bài : 362
CPP : 487
Châm ngôn sống : Ngọn gió sẽ đưa ta vi vu trên dòng đời cuộc sống
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
ý mình là muốn js chỉ nằm trong wall vì nếu để all page sẽ ảnh hưởng đến js khác, html ở header thì chèn vào wall kiểu gì
Lowie- CPPurpleMember
-
Ngày đăng ký : 24/06/2011
Số bài : 1345
CPP : 231
Châm ngôn sống : Dẫu hiên ngang giữa đất trời, VỢ DÂM BẠN ĐỂU thì đời cũng xong!
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
Dù sao cũng LIKE cho cái này. Nhưng phải chờ chấp nhận. PHP thì cho nó tự động hóa vẫn ngon hơn. CHứ duyệt như Forum Phutu chắc gãy cái mà tay . Dùng HOST FREE thì ai mà local được 1 file PHP thôi
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
Tại sao mod chuyển point nó lúc ấn vô toàn phải f11 mới hiện toàn bộ khung chuyển còn k chỉ hiện đến dòng Hãy nhập tên người bạn muốn chuyển tiền và số tiền phía dưới. Giao dịch sẽ được gửi tới BQT
Demo: [You must be registered and logged in to see this link.]
nick test : pr0lathe
pas: dung123
Demo: [You must be registered and logged in to see this link.]
nick test : pr0lathe
pas: dung123
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
Anh ơi, forum em nhấn nút chuyển Point nó không hiện cái gì ra cả
Nick test:
Miku
Pass: 0917658274
Nick có để sẵn 1000 Coins để anh test thử luôn đó
Forum em [You must be registered and logged in to see this link.]
Nick test:
Miku
Pass: 0917658274
Nick có để sẵn 1000 Coins để anh test thử luôn đó
Forum em [You must be registered and logged in to see this link.]
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
Ở cái bước 6: làm thì giao dịch đk nhưng mà nó k có người duyệt đơn thì phải làm sao đây. vào wall k có đơn nào cả
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
hic. mình nghĩ nên lập hẳn topic mới về báo lỗi mod giao dịch gửi tiền nhanh này
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
Thôi mình đóng không hỗ trợ mod này nữa đâu vì fix lỗi hết rồi nếu còn lỗi thì có thể là do xung đột với forum bạn thôi . Chú ý làm cẩn thận nhé vì đa số mọi người đều thành công .
Get Over- CPModerator
-
Ngày đăng ký : 05/10/2012
Số bài : 362
CPP : 487
Châm ngôn sống : Ngọn gió sẽ đưa ta vi vu trên dòng đời cuộc sống
Lowie- CPPurpleMember
-
Ngày đăng ký : 24/06/2011
Số bài : 1345
CPP : 231
Châm ngôn sống : Dẫu hiên ngang giữa đất trời, VỢ DÂM BẠN ĐỂU thì đời cũng xong!
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
doannamthai đã viết:Thôi mình đóng không hỗ trợ mod này nữa đâu vì fix lỗi hết rồi nếu còn lỗi thì có thể là do xung đột với forum bạn thôi . Chú ý làm cẩn thận nhé vì đa số mọi người đều thành công .
chắc chắn sẽ hỗ trợ lại khi FM có đợt update mới
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
rum của em làm nhưng click không hiện ra :(bản punbb nhé! không pik lỗi gì giúp em với
demo: [You must be registered and logged in to see this link.]
demo: [You must be registered and logged in to see this link.]
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
thử js nyaf
- Code:
var copyrightVi = "Points System được viết bởi doannamthai - diendan.chinhphuc.info . Vui lòng không xóa dòng bản quyền này" ;[color=#826253][/color]
var copyrightEn = "Points System was written by doannamthai - diendan.chinhphuc.info . Please don't remove this copyright";[color=#826253][/color]
var id = 3; //ID của tài khoản chứa giao dịch [color=#826253][/color]
var wallp = "WallPoints"; // Tên tài khoản chứ giao dịch [color=#826253][/color]
$(function(){[color=#826253][/color]
$(".pointuser .button").click(function(){[color=#826253][/color]
$("#pointsend").after('<div class="loadpoint"><br>Hệ thống đang gửi giao dịch lòng chờ ..</div>');[color=#826253][/color]
var d = $("#usersend").val();[color=#826253][/color]
var e = Number($("#pointsend").val());[color=#826253][/color]
if(e < 1 || isNaN(e) == true){[color=#826253][/color]
alert("Bạn phải nhập số tiền (Số tiền > 0 ) vào phía dưới");[color=#826253][/color]
$(".loadpoint").remove();[color=#826253][/color]
}[color=#826253][/color]
else if(d.length < 1) {[color=#826253][/color]
alert("Vui lòng nhập tên người nhận ở phía dưới");[color=#826253][/color]
$(".loadpoint").remove();[color=#826253][/color]
} [color=#826253][/color]
else{[color=#826253][/color]
$.get("/popup_help.forum?l=miscvars" , function(a){[color=#826253][/color]
var userlink = $(a).find("a[href*='mode=viewprofile']:last").attr("href");[color=#826253][/color]
$.get(userlink , function(a) {[color=#826253][/color]
var pt = Number($(a).find("#field_id-13 .field_uneditable").text());[color=#826253][/color]
if(pt < e) {[color=#826253][/color]
alert("Bạn không đủ points trong tài khoản. Hiện giờ bạn có : "+pt+" points");[color=#826253][/color]
$(".loadpoint").remove();[color=#826253][/color]
}[color=#826253][/color]
else{[color=#826253][/color]
$.post("/privmsg", { [color=#826253][/color]
subject: "Giao dịch chuyển tiền",[color=#826253][/color]
message: "Tôi muốn chuyển [b]"+e+"[/b] points cho [b]"+d+"[/b]" , [color=#826253][/color]
username : wallp,[color=#826253][/color]
u : id,[color=#826253][/color]
mode: "post_profile", [color=#826253][/color]
folder: "profile",[color=#826253][/color]
"auth[]": $("input[name='auth[]']:last").val(), [color=#826253][/color]
post: "Send" [color=#826253][/color]
}, function(z){[color=#826253][/color]
if($(z).find(".message a[href*='wall']").length){[color=#826253][/color]
alert("Gửi giao dịch thành công . Hãy chờ BQT kiểm duyệt giao dịch của bạn");[color=#826253][/color]
$(".loadpoint").remove();[color=#826253][/color]
}[color=#826253][/color]
else{[color=#826253][/color]
alert("Gửi giao dịch thất bại. Vui lòng thử lại");[color=#826253][/color]
$(".loadpoint").remove();[color=#826253][/color]
}[color=#826253][/color]
});[color=#826253][/color]
}[color=#826253][/color]
});[color=#826253][/color]
});[color=#826253][/color]
}[color=#826253][/color]
});[color=#826253][/color]
});[color=#826253][/color]
[color=#826253][/color]
$(function(){[color=#826253][/color]
if($('a[href*="/admin/index.forum"]').length){[color=#826253][/color]
var acplink = $('a[href*="/admin/index.forum"]:last').attr("href").slice($('a[href*="/admin/index.forum"]:last').attr("href").lastIndexOf("=")+1);[color=#826253][/color]
$('a[href*="/u'+id+'wall?d"]').click(function(v){[color=#826253][/color]
v.preventDefault();[color=#826253][/color]
$(this).after('<div class="loadpoint">Hệ thống đang gửi dữ liệu vui lòng chờ ..</div>');[color=#826253][/color]
var a = $(this).parents(".message-block").find(".message-text strong:last").text();[color=#826253][/color]
var b = Number($(this).parents(".message-block").find(".message-text strong:first").text()); [color=#826253][/color]
var f = $(this).parents(".message-block").find("a[href*='/u']:first").text();[color=#826253][/color]
var h = $(this).attr("href");[color=#826253][/color]
var g = $(this);[color=#826253][/color]
$.get("/memberlist?username="+a ,function(c){[color=#826253][/color]
var n = $(c).find('a[href*="/u"]:first').attr("href").slice($(c).find('a[href*="/u"]:first').attr("href").indexOf("u")+1);[color=#826253][/color]
$.get("admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid="+acplink+"&action=add_points_for_user&search_user="+a+"&submit_search_user=ok" , function(q) {[color=#826253][/color]
var pointdef = Number($(q).find("form:first td:last input").attr("value"));[color=#826253][/color]
$.post("admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid="+acplink+"&action=add_points_for_user&search_user="+a+"&submit_search_user=ok&points_new_value["+n+"]="+(pointdef + b)+"&submit=Chấp nhận", function(a) {[color=#826253][/color]
if($(a).find(".successbox").length){[color=#826253][/color]
$.get(h , function (j){[color=#826253][/color]
var delid = $(j).find('input[name="tid"]').val();[color=#826253][/color]
$.post(h , {[color=#826253][/color]
"tid" : delid , [color=#826253][/color]
"confirm" : "Có"[color=#826253][/color]
});[color=#826253][/color]
$(g).parents("li").slideUp();[color=#826253][/color]
});[color=#826253][/color]
alert("Đã gửi giao dịch thành công");[color=#826253][/color]
$(".loadpoint").remove();[color=#826253][/color]
}[color=#826253][/color]
else {[color=#826253][/color]
alert("Lỗi khi gửi giao dịch");[color=#826253][/color]
$(".loadpoint").remove();[color=#826253][/color]
}[color=#826253][/color]
});[color=#826253][/color]
});[color=#826253][/color]
});[color=#826253][/color]
$.get("/memberlist?username="+f ,function(c){[color=#826253][/color]
var n = $(c).find('a[href*="/u"]:first').attr("href").slice($(c).find('a[href*="/u"]:first').attr("href").indexOf("u")+1);[color=#826253][/color]
$.get("admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid="+acplink+"&action=add_points_for_user&search_user="+f+"&submit_search_user=ok" , function(q) {[color=#826253][/color]
var pointdef = Number($(q).find("form:first td:last input").attr("value"));[color=#826253][/color]
$.post("admin/index.forum?part=modules&sub=point&mode=don&extended_admin=1&tid="+acplink+"&action=add_points_for_user&search_user="+f+"&submit_search_user=ok&points_new_value["+n+"]="+(pointdef - b)+"&submit=Chấp nhận");[color=#826253][/color]
});[color=#826253][/color]
});[color=#826253][/color]
});[color=#826253][/color]
}[color=#826253][/color]
});
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
Theo mình biết cái nhấn nút không hiện ra thì nhiều khi là tại trong Overall_header cái Code nút chuyển Point nó bị xung đột với 1 yếu tố nào đó ( forum mình đã từng bị và hết khi mình đưa về mặc định và chỉ chèn Code chuyển Point vào, và mình phát hiện ra nó bị xung đột với last topic ) Bạn thử kiểm tra lại Overall_header của mình xem sao. Chúc bạn thành công
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
Mình muốn nút chuyển tiền nó nhích lên trên và cái khung chuyển tiền khi bấm vào nó hiện sang bên phải/trái forum được không ạ mọi người?
Re: [Share][Mod] Giao dịch gửi tiền nhanh[✔]
Có cách nào để chuyển tiền bằng trang HTML mà ko phải overall_header không doannamthai @@'
Trang 4 trong tổng số 4 trang • 1, 2, 3, 4
Similar topics
» [Invision] Giao dịch gửi tiền nhanh
» [Thắc mắc giao diện]CHo hỏi về phần Trả Lời Nhanh của Forum
» [Thắc mắc] Giao dịch gửi tiền nhanh cho phpbb2?
» Đổi giao diện từ XP sang Vista nhanh gọn
» [Share] Chỉnh sửa kích thước khung gửi bài nhanh (mới)
» [Thắc mắc giao diện]CHo hỏi về phần Trả Lời Nhanh của Forum
» [Thắc mắc] Giao dịch gửi tiền nhanh cho phpbb2?
» Đổi giao diện từ XP sang Vista nhanh gọn
» [Share] Chỉnh sửa kích thước khung gửi bài nhanh (mới)
Trang 4 trong tổng số 4 trang
Permissions in this forum:
Bạn không có quyền trả lời bài viết
|
|