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
Bước 1:
ACP-->QLTT--> Categories and forums tạo 1 forum như sau:
Sau khi tạo song nhớ số thứ tự của forum. Vidu: codeforumotion.forumvi.com/f18-forum
vậy thứ tự forum này là 18.
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:
Sau khi làm xong bước này các bạn vào đây:
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:
đến đây bạn vào:
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
![shop avatar anime tự cập nhật 100% Untitl24](https://i.servimg.com/u/f49/17/59/85/75/untitl24.jpg)
Còn tiếp.
![Very Happy](/users/2716/35/05/56/smiles/364988687.gif)
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: codeforumotion.forumvi.com/f18-forum
vậy thứ tự forum này là 18.
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:
- Type : Text field
Name : avatar-dulieu
Necessarily filled ? : không
Display : Messages
Display type : Text
Who can modify the profile field value ? : Người Điều Hành và Member himself
Display this field for users that are at least : Guests
- Type : Text field
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ướ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}
- 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>
- Code:
<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
- 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 đây bạn vào:
- Code:
http://link forum của bạn/profile?mode=editprofile
- 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
![shop avatar anime tự cập nhật 100% Untitl24](https://i.servimg.com/u/f49/17/59/85/75/untitl24.jpg)
Còn tiếp.
Được sửa bởi Tuấn Anh ngày Tue Jan 22, 2013 6:14 am; sửa lần 5.