Tạo 1 trang đặt tên là chọn icon xong post code này.
TWIG
{%set user=api.u.get(api.r.get("uid"))%} {%set birt=api.r.get("birt")%} <form action="dating.php?ses={{ses}}&id=edit" method="post"> <div class="center"> <input name="name" value="{{user.name|raw}}" type="hidden"/> <input name="y" value="{{birt|slice(0,4)}}" type="hidden"/> <input name="m" value="{{birt|slice(5,2)}}" type="hidden"/> <input name="d" value="{{birt|slice(-2)}}" type="hidden"/> <input name="education" value="{{user.education|raw}}" type="hidden"/> <input name="more_info" value="{{user.more_info|raw}}" type="hidden"/> <input name="hobby" value="{{user.hobby|raw}}" type="hidden"/> <input name="f_book_film" value="{{user.f_book_film|raw}}" type="hidden"/> <input name="f_music" value="{{user.f_music|raw}}" type="hidden"/> <input name="weight" value="{{user.weight|raw}}" type="hidden"/> <input name="height" value="{{user.height|raw}}" type="hidden"/> <input name="city" value="{{user.city|raw}}" type="hidden"/> <select name="country"><option value="00">Xóa icon</option>{%for i in 51..99%}<option value="{{i}}" {%if i==user.country%}selected{%endif%}>Icon {{i}}</option>{%endfor%}</select> <input name="ses" value="{{user.ses|raw}}" type="hidden"/> <input type="submit" value="Đồng ý"> </div> </form> <hr/> {%for i in 51..99%}- Icon {{i}} - <img src="/files/1066027/{{i}}.gif"/>{%if i% 4==0%}<br/>{%endif%}{%endfor%}
Vào Tập tin hồ sơ người dùng post cái này để cho người dùng nhấn vào đổi icon.
TWIG
{%if (api.u.get(api.r.get("uid")).level > 50 and api.u.get(api.r.get("uid")).level < 100) and (user.name|length>=1 or user.city|length>=1 or user.age>=1 or user.country|length>=1)%}<div class="menud">• <a href="/main.php?f=3394133&uid={{api.r.get("uid")}}&birt=[birthday]&music=[music]">Thay đổi icon nick</a> <b style="color:red">(New)</b></div>{%endif%}
Thay 3394133 thành id trang icon vừa tạo lúc nảy.
Ở shoutbox hoặc nơi muốn đặt icon trước nick chèn code này
TWIG
{%set user=api.u.get(nick|slice(27,8))%}{%if user.level>50 and user.level < 100 and user.country|length > 1 and (user.country|slice(0,2) > 50 and user.country|slice(0,2) < 100)%}<img src="/files/1066027/{{user.country|slice(0,2)}}.gif" style="border:none;width:auto;height:auto"/>{%endif%}
![[OFF]](/assets/images/off.gif)
![[ON]](/assets/images/on.gif)