Admin Admin
Giới tính : Hoàng đạo : Chinese zodiac :
Tổng số bài gửi : 321 Vàng : 106250 Birthday : 28/10/1994 Tham gia ngày : 02/05/2010 Tuổi : 29 Đến từ : việt nam
| Tiêu đề: Attachments ( Tính năng Upfile trong diễn đàn) Thu Jul 08, 2010 12:58 pm | |
| Vào Admin -General-* Attachments bên tay phải mục Attachments chỉnh thông số cho phép được UP và chọn YES vidu: chỉnh 2050 =2mb Lưu ý:Version: PhpBB2 and PunBB với những bạn khi thực hiện song những bước trên, nhưng khi quay ra ngoài upfile và post bài nhưng không hiện lên thì vào Cách làm: vào template: viewtopic_body tìm dòng - Code:
-
{postrow.displayed.MESSAGE} thêm đoạn code này vào phía dưới nó - Code:
-
<div class="clear"></div> <!-- BEGIN switch_attachments --> <dl class="attachbox"> <dt>{postrow.displayed.switch_attachments.L_ATTACHMENTS}</dt> <dd> <!-- BEGIN switch_post_attachments --> <dl class="file"> <dt> <img src="{postrow.displayed.switch_attachments.switch_post_attachments.U_IMG}" />
<!-- BEGIN switch_dl_att --> <a class="postlink" href="{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.U_ATTACHMENT}">{postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT}</a> {postrow.displayed.switch_attachments.switch_post_attachments.switch_dl_att.ATTACHMENT_DEL} <!-- END switch_dl_att -->
<!-- BEGIN switch_no_dl_att --> {postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.ATTACHMENT} <!-- END switch_no_dl_att --> </dt>
<!-- BEGIN switch_no_comment --> <dd> <em>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_comment.ATTACHMENT_COMMENT}</em> </dd> <!-- END switch_no_comment -->
<!-- BEGIN switch_no_dl_att --> <dd> <em>{postrow.displayed.switch_attachments.switch_post_attachments.switch_no_dl_att.TEXT_NO_DL}</em> </dd> <!-- END switch_no_dl_att -->
<dd>({postrow.displayed.switch_attachments.switch_post_attachments.FILE_SIZE}) {postrow.displayed.switch_attachments.switch_post_attachments.NB_DL}</dd> </dl> <!-- END switch_post_attachments --> </dd> </dl> <!-- END switch_attachments --> <div class="clear"></div> Như vậy là xong. để cho hấp dẫn và sóng động hơn bạn vào CSS -* CSS Stylesheet thêm đoạn code này vào - Code:
-
.attachbox{ background-color: #191919; background-image: url('http://i65.servimg.com/u/f65/11/95/30/70/fond12.jpg'); border: 1px solid #888888; -moz-border-radius-topleft: 15px; -webkit-border-radius-topleft: 15px; -moz-border-radius-topright: 15px; -webkit-border-radius-topright: 15px; -moz-border-radius-bottomright: 0px; -webkit-border-radius-bottomright: 0px; -moz-border-radius-bottomleft: 0px; -webkit-border-radius-bottomleft: 0px; color:#ffffff; } .attachbox dl.file{ background-color: #212121; margin-top: 8px; padding: 5px; border: 1px solid #fff; -moz-border-radius: 15px; -webkit-border-radius: 15px; } PS: ở tại diễn đàn chinhphuc Không up được File, Admin nên copy hết code trong Templates * General, rồi xoá hết. và paste vô lại từng cái thì sẽ up được file ( Admin chỉ làm theo những bước trên thôi là ok) | |
|