Quản lý người dùng & Quản lý nhóm --> Profiles --> Tạomột mục mới, điền thông tin như sau:
Type : List
Name : gender
Necessarily filled ? Có
Display : Tích hết
Display type : Text
Who can modify the profile field value ? Tích hết tiếp
Cho các mục chọn như sau:
- 1. Nam
- 2. Nữ
Bước 2:
Modules --> HTML pages management --> Tạo một trang mới, cho code này vào:
- Mã: Chọn tất cả
function changeImg (){
3. x = document . getElementsByTagName ( 'span' )
4. for ( i = 0 ; i < x . length ; i ++){
5. if ( window . onload != 'resize_images()' ){
6. if (( x [ i ]. style . color == "rgb(255, 255, 255)" )||( x [ i ]. style . color == "#ffffff" )) { newHTML = "<img src=\"http://i977.photobucket.com/albums/ae260/bjusuc/Phu%20Nguyen/admin.gif\">" + "</img>" + x [ i ]. innerHTML }
7.
8.
9. else if (( x [ i ]. style . color == "rgb(0, 4, 255)" )||( x [ i ]. style . color == "#0004ff" )) { newHTML = "<img src=\"http://i977.photobucket.com/albums/ae260/bjusuc/Phu%20Nguyen/member.gif\">" + "</img>" + x [ i ]. innerHTML }
10.
11.
12. else { newHTML = x [ i ]. innerHTML }}
13. x [ i ]. innerHTML = newHTML ;
14. }
15. }
16.
17. function init (){
18. dir = "http://i292.photobucket.com/albums/mm30/huylordno1/pet/"
19. var avatarname = ""
20. var title1 = "Level"
21. var title2 = "<img src='http://i25.servimg.com/u/f25/14/75/71/76/str-110.jpg' alt='strenght'>" ;
22. var title3 = "<img src='http://i25.servimg.com/u/f25/14/75/71/76/def-110.jpg' alt='defense'>" ;
23. var title4 = "<img src='http://i25.servimg.com/u/f25/14/75/71/76/exp-110.jpg'>" ;
24. var xperpost = "8"
25. var xperexp = "100"
26. var xperreptt = "12"
27. var xpneeded = "4390"
28. var aqname = "<img src='http://i25.servimg.com/u/f25/14/75/71/76/int-110.jpg' alt='Intelligent'>" ;
29. var aqsign = " <img src='http://i25.servimg.com/u/f25/14/75/71/76/point-10.jpg' alt='point'>" ;
30. var aq =[];
31. var display =[];
32. var level =[];
33. var posts =[];
34. var repts =[];
35. var cts =[];
36. var firstchar =[];
37. var gendervn = new Array ()
38. gendervn [ 0 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/boy/1.gif'>" ;
39. gendervn [ 1 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/boy/3.gif'>" ;
40. gendervn [ 2 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/boy/4.gif'>" ;
41. gendervn [ 3 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/boy/6.gif'>" ;
42. gendervn [ 4 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/boy/9.gif'>" ;
43. gendervn [ 5 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/boy/11.gif'>" ;
44. gendervn [ 6 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/boy/13.gif'>" ;
45. gendervn [ 7 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/boy/15.gif'>" ;
46. gendervn [ 8 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/boy/19.gif'>" ;
47. gendervn [ 9 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/boy/20.gif'>" ;
48.
49. gendervn [ 10 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/girl/1.gif'>" ;
50. gendervn [ 11 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/girl/3.gif'>" ;
51. gendervn [ 12 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/girl/4.gif'>" ;
52. gendervn [ 13 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/girl/6.gif'>" ;
53. gendervn [ 14 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/girl/9.gif'>" ;
54. gendervn [ 15 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/girl/11.gif'>" ;
55. gendervn [ 16 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/girl/13.gif'>" ;
56. gendervn [ 17 ]= "<img src='http://i1097.photobucket.com/albums/g342/lethanhton4r/avatar/girl/15.gif'>" ;