Đă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 |
[Invision] Giao dịch gửi tiền nhanh
5 posters
Trang 1 trong tổng số 1 trang
[Invision] Giao dịch gửi tiền nhanh
Như ở topic trước mình có làm cho punbb [You must be registered and logged in to see this link.]
Hôm nay mình sẽ làm cho Invision
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
Bước 3 : Chỉnh trong ACP :
ACP --> QLTT --> Forum --> Security --> Security Administration
Unauthorize unofficial forms to post messages and private messages on the forum : Không
Bước 4 : ACP --> Display --> CSS :
Bước 5 : Thêm HTML : ACP --> Modules --> Forum widgets management --> Tạo 1 widget mới
Widget name : PointButton
Use a table type : Không
Widget source * :
[You must be registered and logged in to see this image.]
Lưu lại
Bước 6 : ACP --> Modules --> Javascript codes management --> Tạo 1 file javascript mới :
Title * : Points System Invision
Placement : In all the page
Code :
Tìm
var id = 3; thay con số 3 thành id của WallPoints ở bước 1
Lưu lại xong .
Hôm nay mình sẽ làm cho Invision
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
Bước 3 : Chỉnh trong ACP :
ACP --> QLTT --> Forum --> Security --> Security Administration
Unauthorize unofficial forms to post messages and private messages on the forum : Không
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********/
Bước 5 : Thêm HTML : ACP --> Modules --> Forum widgets management --> Tạo 1 widget mới
Widget name : PointButton
Use a table type : Không
Widget source * :
- Code:
<div id ="panelpoint">
<div id="pointopen" style ="cursor:pointer;" onclick="if(jQuery('.pointuser').css('display')=='none'){jQuery('.pointuser').show()}else{jQuery('.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>
[You must be registered and logged in to see this image.]
Lưu lại
Bước 6 : ACP --> Modules --> Javascript codes management --> Tạo 1 file javascript mới :
Title * : Points System Invision
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
$(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(".box-content 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");
});
});
});
}
});
Tìm
var id = 3; thay con số 3 thành id của WallPoints ở bước 1
Lưu lại xong .
Tác giả : 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 27/8/2013, 11:45 am; sửa lần 1.
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: [Invision] Giao dịch gửi tiền nhanh
like 1 cái cho anh đi ^^(để khích lệ tinh thần làm bản phpbb2, phpbb3) ^^
em đang hóng bản phpbb2, anh làm giúp nhé^^thanks anh trước^^
em đang hóng bản phpbb2, anh làm giúp nhé^^thanks anh trước^^
Similar topics
» Trả lời nhanh Invision
» [Invision]Last topic tiên phong cho Invision[✔]
» [Share][Mod] Giao dịch gửi tiền nhanh[✔]
» [Thắc mắc] Giao dịch gửi tiền nhanh cho phpbb2?
» [Thắc mắc giao diện]CHo hỏi về phần Trả Lời Nhanh của Forum
» [Invision]Last topic tiên phong cho Invision[✔]
» [Share][Mod] Giao dịch gửi tiền nhanh[✔]
» [Thắc mắc] Giao dịch gửi tiền nhanh cho phpbb2?
» [Thắc mắc giao diện]CHo hỏi về phần Trả Lời Nhanh của Forum
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
|
|