Thích bài này? Bài TrướcBài Sau

๖ۣۜThần ๖ۣۜChết

Mon Sep 09, 2013 9:06 pm

1
๖ۣۜThần ๖ۣۜChết

๖ۣۜThần ๖ۣۜChết

๖ۣۜMemBer

๖ۣۜMemBer
• Số Bài : 27
Z-Coin : 563
• Thanks : 23
• Sinh Nhật : 23/03/1995
• Tham Gia : 09/09/2013
Tạo Avatar hoạt hình mặc định Empty Bài ViếtTạo Avatar hoạt hình mặc định

Trên mạng có rất nhìu bài viết về vấn đề này nhưng đa số ko làm được, hôm nay mình xin hương dẫn cụ thể, bảo đảm 100% thành công cười nhăng răng

Bước 1:
ACP-->QLTT--> Categories and forums tạo 1 forum như sau:

   Choose the kind of forum you want : forum
   Forum name : Hóa đơn mua Item Avatar anime


Sau khi tạo song nhớ số thứ tự của forum. Vidu: http://www.1stvn.tk/f27-forum
vậy thứ tự forum này là 27.

Bước 2:
ACP --> Quản lí người dùng và quản lí nhóm --> Quản lí người dùng--> Profiles --> Profile fields
tạo 1 profile như sau:

Spoiler:

Sau khi làm xong bước này các bạn vào đây:

Code:
http://link forum của bạn/profile?mode=editprofile
Bấm Ctrl+u, Bấm Ctrl+F nhập vào chữ profile_field_13_ .bạn để ý đoạn profile_field_13_? Dấu ? là số tùy từng forum mà nó có VD Froum của mình là profile_field_13_1 vậy dấu ? ở đây là số 1
Bước 3: Đây là bước dễ sai nhất nên các bạn chú ý nhé
ACP - Display - Templates - QLTT - viewtopic_body
Tìm:

Code:
{postrow.displayed.POSTER_AVATAR}
và thay 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/&browser=Other&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 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 -->
Lưu ý: trong viewtopic_body có 2 code dạng như thế này nên phải thật để ý. Nhìu bạn nhầm lẫn chỗ này nên khi vào nó chỉ hiện hình chiếc xe chứ ko chịu vào.

đến đây bạn vào:

Code:
http://link forum của bạn/profile?mode=editprofile
nhập vào avatar-dulieu

Code:
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 nó hiện nên như thế này là thành công

Tạo Avatar hoạt hình mặc định 217
Trả lời chủ đề này

Reply FaceBook