có làm r nhưng bị lỗi! ai có code thì share giùm nha!
ShareẢnh bìa bằng trao đổi tập tin!
Có trong forum rồi ![]()
Đã test thử code này rồi không hề lỗi nha ![]()
đọx kỉ hướng dẫn trướx khi sử dụng
đã làm theo phonho và bị lỗi! tất cả các thứ bình cmn thường trừ cái shoutbox để làm ảh bìa ấy! ko đổi đc ảh bìa lun
[code]{%if message_list|u==""%}
<a href="/main.php?f=3413531">
<div onclick="javascript:window.location='/main.php?f=3413531'" style="display: block;position:relative;background: url('view_foto.php?uuid={{api.r.get("file_uuid")}}&ic=3&m=7&w=500&h=500&preset_size=0&type=1&i=1072611') 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')%}/main.php?f=3395669{%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=500&h=500',"preset_size=5":'preset_size=0',"m=3":'m=7',"m=5":'m=7',"ic=4":'ic=3&w=500&h=500'})}}');width: 90px; height: 90px; position: relative; background-repeat: no-repeat; background-size: cover; margin-left: 15px; margin-top: 90px; display: inline;z-index:100">
</span>
</a><span style="position: absolute; margin-top: 100px; font-weight: bold; color: #ff0000; margin-left: 20px; float: left;">{{api.u.get(api.r.get("uid")).nick}}</span><span style="position: absolute; margin-top: 115px; font-weight: bold; margin-left: 10px; float: left;color: #ff9900;">{%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%}[/code]
cái mã này ở ô 2 topic ảnh bìa! biến {{url}} sai hay sao ý! nó ko nhận link ảnh. nên đổi hoài vẫn là ảh mặc định
![[OFF]](/assets/images/off.gif)
![[ON]](/assets/images/on.gif)