Công Ty Giải Pháp Công Nghệ Số Toàn Cầu Máy Tính Vàng 9999
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.
Latest topics
» Bảng thông báo đẹp cho forum
by ThanhCong Fri Dec 12, 2014 10:36 pm

» [Hot] Chữ ký lung linh!...
by pe.keomut_love_who Wed Nov 21, 2012 8:49 pm

» QUY ĐỊNH CHUNG CHO CÁC THÀNH VIÊN TRONG DIỄN ĐÀN Thành công
by pe.keomut_love_who Wed Nov 21, 2012 8:47 pm

» CSS thay backgound liên tục
by ThanhCong Thu Jul 26, 2012 10:18 am

» [Chia sẻ] Bảng Thông Báo [Đơn Giản] [Đẹp]
by ThanhCong Wed Feb 01, 2012 9:05 pm

» [Chia sẻ] Thanh load kute
by ThanhCong Wed Feb 01, 2012 8:51 pm

» Nút Move Lên Đầu Trang
by ThanhCong Wed Feb 01, 2012 8:33 pm

» [FMvi.Org] Shop avatar hoạt hình tự cập nhật 100%
by ThanhCong Wed Feb 01, 2012 8:18 pm

» Share cây thư mục, khung login + trang thông báo đăng nhập thành công
by ThanhCong Wed Feb 01, 2012 8:08 pm

» [Chia sẻ] Viewsoure Website Nhanh ^^ Vui Lắm
by ThanhCong Sat Jan 07, 2012 1:26 pm

» [Chia sẻ] Khung đăng nhập+chuyển trang thành công ver 1..."HOT"
by ThanhCong Sat Jan 07, 2012 1:20 pm

» [Chia Sẽ] Code Trò Nhỏ Rất Hay ! HeHe
by ThanhCong Sat Jan 07, 2012 1:18 pm

» [Chia sẻ] Chec lượt truy cập của 4rum trên Alexa
by ThanhCong Sat Jan 07, 2012 1:17 pm

» Chia sẻ] Câu đối trượt chào năm mới
by ThanhCong Sat Jan 07, 2012 1:15 pm

» Share thanh chia sẻ bài viết lên các trang mạng xã hội
by ThanhCong Sat Jan 07, 2012 1:12 pm

Poll
Statistics
Diễn Đàn hiện có 115 thành viên
Chúng ta cùng chào mừng thành viên mới đăng ký: Ren_KXO

Tổng số bài viết đã gửi vào diễn đàn là 670 in 624 subjects
QUY ĐỊNH CHUNG CHO CÁC THÀNH VIÊN TRONG DIỄN ĐÀN Thành công

Mon Oct 17, 2011 12:39 pm by ThanhCong

QUY ĐỊNH CHUNG CHO CÁC THÀNH VIÊN TRONG DIỄN ĐÀN FORUM Wed 1 Jun 2011 - 20:57 Trả lời với trích dẫn nội dung bài viết này Sửa/Xóa bài viết Xóa bài viết Xem địa chỉ IP của thành viên này
* Tất cả thành viên có trách nhiệm thực hiện nội quy khi tham gia hoạt động trên https://thanhcong.forumvi.com/forum đồng thời chú ý theo …

Comments: 3


[FMvi.Org] Shop avatar hoạt hình tự cập nhật 100%

Go down

 [FMvi.Org] Shop avatar hoạt hình tự cập nhật 100% Empty [FMvi.Org] Shop avatar hoạt hình tự cập nhật 100%

Bài gửi by ThanhCong Wed Feb 01, 2012 8:18 pm

First topic message reminder :

Bước 1: ACP - Ganeral - Forum - Categories and forums
Click vào nút Add  [FMvi.Org] Shop avatar hoạt hình tự cập nhật 100% Ajouterđể tạo một chuyên mục mới để lưu hóa đơn mua Item.
* Choose the kind of forum you want : forum
* Forum name : Hóa đơn mua Item Avatar anime


Sau khi tạo xong chuyên mục, bạn ghi nhớ số thự tự chuyên mục đó để thực hiện các bước tiếp theo. Ví dụ link của Fmvi là http://www.fmvi.org/f30-hoa-don-mua-avatar thì số thứ tự là 30.

Bước 2: ACP - Users & Groups - Users - Profiles - Profile fields
Click vào nút Add  [FMvi.Org] Shop avatar hoạt hình tự cập nhật 100% Ajouterđể tạo khung dữ liệu cho avatar.
* Type : Text field
* Name : avatar-dulieu
* Necessarily filled ? : No
* Display : Messages
* Display type : Text
* Who can modify the profile field value ? : Moderators & Member himself
* Display this field for users that are at least : Guests


Sau khi làm xong bước này, các bạn vào trang chỉnh sửa Profile ( Ví dụ FMvi: http://www.fmvi.org/profile?mode=editprofile ). Tìm id của input avatar-dulieu bằng cách:

* Cách 1: Tìm id bằng các view mã nguồn (Ctrl+U) và tìm avatar-dulieu (Ctrl+F)
Nó sẽ có dạng như sau
Code:

<span style="color:#000000;">avatar-dulieu</span>: </span></td><td class="gensmall row2"><input type="text" class="post" id="profile_field_13_1" name="profile_field_13_1" style="width:250px" value="" />
Cách 2: Dùng firebug cho Firefox (add-on) với chức năng Thăm dò phần tử hoặc chức năng Kiểm tra phần tử của Chrome hoặc Kiểm tra thành phần của Opera trong menu chuột phải.
 [FMvi.Org] Shop avatar hoạt hình tự cập nhật 100% 10-15-10
Bạn ghi nhớ dòng chữ đằng sau id=" như ở ví dụ trên là profile_field_13_1 để thực hiện các bước tiếp theo.

Bước 3: ACP - Display - Templates - Ganeral - viewtopic_body
Bước này sẽ sửa templates của forum, vì thế các bạn cần cẩn thục lưu lại code gốc trước khi thao tác. Tìm đoạn code sau ( Ctrl+F ):

{postrow.displayed.POSTER_AVATAR}

Thay đoạn code trên bằng:
Code:

<div id="baivongshop{postrow.displayed.U_POST_ID}" style="display:none">
  <!-- BEGIN profile_field -->
  <span class="fmviShopauto">
      {postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}
  </span>
  <!-- END profile_field -->
</div>
<div class="bvavatar">
  {postrow.displayed.POSTER_AVATAR}
</div>
<script>
$(function() {
  if ($("#baivongshop{postrow.displayed.U_POST_ID} span.fmviShopauto:contains('avatar-dulieu')").text().length > 25) {
      $("#baivongshop{postrow.displayed.U_POST_ID}").html('<object width="125" height="180" type="application/x-shockwave-flash" data="http://my.go.vn/swf/avatar2.swf" id="avatar_flash_object" style="visibility: visible;"><param name="flashvars" value="itempath=http://farm01.gox.vn/avatar/store/avatar_part_item/&amp;browser=Other&amp;itemlist=' + $("#baivongshop{postrow.displayed.U_POST_ID} span.fmviShopauto:contains(\'avatar-dulieu\')").text().slice($("#baivongshop{postrow.displayed.U_POST_ID} span.fmviShopauto:contains(\'avatar-dulieu\')").text().indexOf("dulieu") + 8) + '"></object>').show().next().remove();
  };
});
</script>
Cũng trong viewtopic_body, các bạn tìm đoạn:
Code:

<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
... và thay nó bằng:
Code:

<!-- BEGIN profile_field -->
<div class="fmviPro5">
  {postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
</div>
<!-- END profile_field -->
Đến bước này, các bạn có thể kiểm tra xem mình đã làm đúng chưa bằng cách vào trang chỉnh sửa Profile ( Ví dụ FMvi: http://www.fmvi.org/profile?mode=editprofile ). Nhập dòng code sau vào input avatar-dulieu:

57,11497|47,11462|50,11789|49,10853|64,12636|51,11473|48,12290|58,12170|66,11442
Sau đó bạn mở bài viết của mình lên, nếu Avatar của bạn chuyển thành Avatar anime là thành công.

Bước 4: ACP - Modules - HTML & JAVASCRIPT - Javascript codes management
Click vào nút  [FMvi.Org] Shop avatar hoạt hình tự cập nhật 100% Ajouter Create a new javascript, để tạo file javascript nhằm xóa input avatar-dulieu đi, và thành viên sẽ không thể chỉnh sửa nó nữa.
# Title * : Xóa input dữ liệu Avatar Anime
# Placement : In all the pages
# Javascript Code * :

* punBB:

Code:

$(function () {
  $("img[src$=/.gif], .frm-set dl:contains('avatar-dulieu'), .fmviPro5:contains('avatar-dulieu')").remove();
});

phpBB2:
Code:

$(function () {
  if (location.pathname === "/profile") {
      $("td.row1:contains('avatar-dulieu')").parent().remove();
  };
  $("img[src$=/.gif], .fmviPro5:contains('avatar-dulieu')").remove();
});

Lưu ý: Để sử dụng Javascript codes management bạn phải cập nhật Templates: http://help.forumotion.com/t92693-new-update-javascript-code-management


ThanhCong
ThanhCong
Chủ diễn đàn

Tổng số bài gửi : 1072
Tài sản Tài sản : 3197
NGAY SINH NGAY SINH : 14/01/1996
NGAY THAM GIA : 28/08/2011
TUOI : 28
Đến từ Đến từ : Hà nội

https://thanhcong.forumvi.com

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