- Bước 1: Tạo 1 trang đặt tên là Danh sách ảnh bìa.
Bên trong thêm mã Twig dán cod này vào:
<div class="titles">Ảnh bìa hồ sơ</div> <div class="ititle" align="right" style="background-color: #F1F1F1;"><img src="/files/1049801/stailen.gif" valign="middle"> Tải lên ảnh mới</div> <div class="list2"><form action="file_exchange.php?[ses]&id=upload&category_id=402463&anhbia=ok" method="post" enctype="multipart/form-data"><div class="center"><input name="files" type="file"><input type="hidden" name="type" value="1"></option></input><input type="hidden" name="status" value="0"></input><input type="hidden" name="desc" value="[date] [time]"></input><input type="submit" value="Tải lên ảnh bìa"></div></form></div> <div class="ititle" align="right" style="background-color: #F1F1F1;"><img src="/files/1049801/schonanh.gif" valign="middle"> Chọn ảnh sẵn có</div>
- Thay category_id=402463 thành id thư mục trao đổi tập tin.
Thêm Danh mục trao đổi tập tin post cái này vào ô 1:
<div class="fe_file_list"> {{file_list}} {{paging_def}} </div> <style type="text/css"> .sdel{display:none} .xdel:hover > form input.sdel{ background-image:url('/files/1049801/FILE001.GIF'); width: 16px; height: 16px; right: 0px; top: 0px; position: absolute;display:inline;background-repeat: no-repeat; background-color: transparent; background-position: right 0px; } </style>
Ô 2 dán code này:
<div class="xlogin"> <center> <div class="xdel" style="display:block;background: url('view_foto.php?uuid={{file_uuid}}&ic=3&m=7&w=700&h=700&preset_size=0&type=1&i=1049801') no-repeat center; background-size: cover; text-align: center; background-color: rgb(227, 227, 227); height: 130px;position: relative"><form action="file_exchange.php?id=file_delete&file_id={{file_url|split("file_id=")[1]|split("&")[0]}}&fuid={{file_uuid}}" method="post"><input name="ans" value="1" type="hidden"><input type="submit" class="sdel" value=" "></form> <div class="list1" style="text-align:right;position: absolute; bottom: 0px; right: 0px; display: inline;"><form method="post" name="chay" action="/main.php?f=3365341"><input type="hidden" name="uuid_img" value="{{file_uuid}}"/><input type="submit" value="Chọn"/></form></div> </div> </center> </div><div class="shadow"></div><br/>
- Thay f=3365341 thành id trang Chọn ảnh bìa.
- thay &i=1049801 thành mã số lưu trữ tập tin của wap bạn.
- Bước 2: Trang chọn ảnh bìa dán mã Twig này vào :
<div class="titles">Cài đặt ảnh bìa</div> <div class="ititle" style="background-color: #F1F1F1;"><img src="/files/1049801/s_setting.gif" valign="middle"> Chọn kiểu trình bày</div> <div class="xlogin"><center> <div style="background: url('view_foto.php?uuid={{api.r.get("uuid_img")}}&ic=3&m=7&w=700&h=700&preset_size=0&type=1&i=1049801') no-repeat center; background-size: cover; text-align: center; background-color: rgb(227, 227, 227); height: 130px;"></div> </center><div class="list1" style="text-align:right"><form method="post" name="chay" action="/main.php?id=ch_topic_h&uid=189201&uuid=[user_id]&back_url=%2Fuser_info.php%3Fuid%3D[user_id]"><input type="hidden" name="text" value="1[-style-]{{api.r.get("uuid_img")}}"/><input type="submit" value="Chọn"/></form></div></div><div class="shadow"></div><br/> <!--Dinh--> <div class="xlogin"><center> <div style="background: url('view_foto.php?uuid={{api.r.get("uuid_img")}}&ic=3&m=7&w=700&h=700&preset_size=0&type=1&i=1049801') no-repeat 0px 0px; background-size: cover; text-align: center; background-color: rgb(227, 227, 227); height: 130px;"></div> </center><div class="list1" style="text-align:right"><form method="post" name="chay" action="/main.php?id=ch_topic_h&uid=189201&uuid=[user_id]&back_url=%2Fuser_info.php%3Fuid%3D[user_id]"><input type="hidden" name="text" value="2[-style-]{{api.r.get("uuid_img")}}"/><input type="submit" value="Chọn"/></form></div></div><div class="shadow"></div><br/> <!--Lap--> <div class="xlogin"><center> <div style="background: url('view_foto.php?uuid={{api.r.get("uuid_img")}}&ic=3&m=7&w=700&h=700&preset_size=0&type=1&i=1049801') repeat-x 0px 0px; background-size: contain; text-align: center; background-color: rgb(227, 227, 227); height: 130px;"></div> </center><div class="list1" style="text-align:right"><form method="post" name="chay" action="/main.php?id=ch_topic_h&uid=189201&uuid=[user_id]&back_url=%2Fuser_info.php%3Fuid%3D[user_id]"><input type="hidden" name="text" value="3[-style-]{{api.r.get("uuid_img")}}"/><input type="submit" value="Chọn"/></form></div></div><div class="shadow"></div><br/> <!--Lap 2--> <div class="xlogin"><center> <div style="background: url('view_foto.php?uuid={{api.r.get("uuid_img")}}&ic=3&m=7&w=700&h=700&preset_size=0&type=1&i=1049801'); background-size: initial; text-align: center; background-color: rgb(227, 227, 227); height: 130px;"></div> </center><div class="list1" style="text-align:right"><form method="post" name="chay" action="/main.php?id=ch_topic_h&uid=189201&uuid=[user_id]&back_url=%2Fuser_info.php%3Fuid%3D[user_id]"><input type="hidden" name="text" value="4[-style-]{{api.r.get("uuid_img")}}"/><input type="submit" value="Chọn"/></form></div></div><div class="shadow"></div><br/> <br/> <div align="right" class="btng"><a href="/main.php?f=3365316" class="abtng">Quay lại</a></div>
- Thay &uid=189201 thành uid sb trong hồ sơ.
- Thay &i=1049801 như trên.
- bước 3: Vào [*]Tập tin hồ sơ người dùng thêm 1 shoutbox lịch sử:
Ô 1 post code này vào:
{%if message_list|u==""%} <a href="/main.php?f=3365316"> <div onclick="javascript:window.location='/main.php?f=3365316'" style="display: block;position:relative;background: url('/view_foto.php?uuid=74950b9e-716f-11e4-b593-0025904e8fb4&ic=3&m=7&w=700&h=700&preset_size=0&type=1&i=1020011') no-repeat center; background-size: cover; text-align: left; background-color: rgb(227, 227, 227); height: 130px;"> <a href="{%if api.u.get(api.user_id).uid==api.r.get('uid')%}/galery.php?id=upload{%else%}/galery.php?id=view_foto&uid={{api.r.get('uid')}}{%endif%}"> <span align="left" style="float:left;background-image:url('{{api.u.get(api.r.get('uid')).profilephotourl|replace({"ic=3":'ic=3&w=700&h=700',"preset_size=5":'preset_size=0',"m=3":'m=7',"m=5":'m=7',"ic=4":'ic=3&w=700&h=700'})}}');width: 90px; height: 90px; position: relative; background-repeat: no-repeat; background-size: cover; margin-left: 15px; margin-top: 50px; display: inline;z-index:100"> </span> </a><span style="position: absolute; margin-top: 80px; font-weight: bold; color: #000; margin-left: 20px; float: left;">{{api.u.get(api.r.get("uid")).nick}}</span><span style="position: absolute; margin-top: 100px; font-weight: bold; margin-left: 10px; float: left;color: rgb(213, 203, 252);">{%if api.u.get(api.r.get("uid")).name|length>=2%}({{api.u.get(api.r.get("uid")).name|raw}}){%endif%}</span> </div> </a>{%else%}{{message_list}}{%endif%}
Ô 2 post code này:
{%set style=message|split("[-style-]")[0]%}{%set url=message|split("[-style-]")[1]%}<a href="/main.php?f=3365316"><div onclick="javascript:window.location='/main.php?f=3365316'" align="left" style="word-wrap: break-word;display: block;position:relative;background: url('view_foto.php?uuid={{url}}&ic=3&m=7&w=700&h=700&preset_size=0&type=1&i=1049801'){%if style=="1"%} no-repeat center; background-size: cover; text-align: left; background-color: rgb(227, 227, 227); height: 130px;{%elseif style=="2"%} no-repeat 0px 0px; background-size: cover; text-align: left; background-color: rgb(227, 227, 227); height: 130px;{%elseif style=="3"%} repeat-x 0px 0px; background-size: contain; text-align: left; background-color: rgb(227, 227, 227); height: 130px;{%elseif style=="4"%}; background-size: initial; text-align: left; background-color: rgb(227, 227, 227); height: 130px;{%else%} no-repeat center; background-size: cover; text-align: left; background-color: rgb(227, 227, 227); height: 130px;{%endif%}"><a href="{%if api.u.get(api.user_id).uid==api.r.get('uid')%}/galery.php?id=upload{%else%}/galery.php?id=view_foto&uid={{api.r.get('uid')}}{%endif%}"><span align="left" style="float:left;background-image:url('{{api.u.get(api.r.get("uid")).profilephotourl|replace({'ic=3':'ic=3&w=700&h=700','preset_size':'preset_size=0&data_size','m=3':'m=7','m=5':'m=7','ic=4':'ic=3&w=700&h=700'})}}');width: 90px; height: 90px; position: relative; background-repeat: no-repeat; background-size: cover; margin-left: 15px; margin-top: 50px; display: inline;z-index:100" class="phonex"></span></a><span style="position: absolute; margin-top: 80px; font-weight: bold; color: #000; margin-left: 20px; float: left;">{{api.u.get(api.r.get("uid")).nick}}</span><span style="position: absolute; margin-top: 100px; font-weight: bold; margin-left: 10px; float: left;color: rgb(213, 203, 252);">{%if api.u.get(api.r.get("uid")).name|length>=2%}({{api.u.get(api.r.get("uid")).name|raw}}){%endif%}</span></div></a>
- Thay /main.php?f=3365316 là id trang Danh sách ảnh bìa.
- Số tin nhắn để là 1.
![[OFF]](/assets/images/off.gif)