Lương Sơn Bạc  
Trang chủ Lương Sơn Bạc  Lương Sơn Diễn Đàn  Nơi Lưu Trữ: Truyện Ngắn, Truyện Dài, Bài Viết, Nhân Vật, Sách Lịch Sử, Sách Dạy Võ Thuật...   Xem hình thành viên và hình các buổi giao lưu LSB   Nơi Lưu Trữ: Cổ Thi VN, Cổ Thi TQ, Thơ Mới & Các Tuyển Tập Thơ
Quay Lại   Lương Sơn Bạc > Chu Tước Đài > Tin Học > Thiết kế web & forum
Thành viên
Mật khẩu
Những câu hỏi thường gặp Danh sách các thành viên LSB  Lương Sơn Thương Quán
Đã khóa chủ đề
 
Tiện ích Chế độ hiển thị
Cũ 11-02-2008   #19
Ảnh thế thân của LSB-Vipno3
LSB-Vipno3
-=[ Lương Sơn Anh Hùng ]=-
Gia nhập: 14-02-2007
Bài viết: 2.651
Điểm: 122
L$B: 190.463
Tâm trạng:
LSB-Vipno3 đang offline
 
Hướng dẫn design vBulletin skins/styles - Part 1


Nguồn : kusanagivn.com

Cũng có khá nhiều bạn yêu cầu chuyện này rồi nên kus mạo muội viết 1 số hướng dẫn căn bản về việt thiết kế skin .Mong là sẽ nhận được góp ý từ phía mọi người để bài viết ngày càng hoàn thiện hơn .Cũng nói luôn mục đích bài viết này ngoài việc hướng dẫn các bạn làm 1 bộ skin hoàn chỉnh ,kus cũng muốn gởi tới mọi người 1 chuyện : "Xin hãy tôn trọng bản quyền tác giả" ,trước khi bạn biết được toàn bộ công đoạn để ra lò 1 skin thì có lẽ bạn sẽ ko biết hết công sức mà người thiết kế phải đầu tư vào , và ý thức hơn về việc rip và share vô tội vạ như hiện nay là thật sự đáng lên án .
Nói hơi nhiều rồi ta bắt đầu thôi !Trước tiên ta nên xem qua 1 số công việc phải làm:


Lession 1 : Fixing Default Styles
Tách riêng css :
-Sau khi setup skin mặc định ,bạn mở notepad và copy toàn bộ đoạn sau vào

Code:
body
{
background: #E1E1E2;
color: #000000;
font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
margin: 5px 10px 10px 10px;
padding: 0px;
}
a:link
{
color: #22229C;
}
a:visited
{
color: #22229C;
}
a:hover, a:active
{
color: #FF4400;
}
.page
{
background: #FFFFFF;
color: #000000;
}
td, th, p, li
{
font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.tborder
{
background: #D1D1E1;
color: #000000;
border: 1px solid #0B198C;
}
.tcat
{
background: #869BBF url(images/gradients/gradient_tcat.gif) repeat-x top left;
color: #FFFFFF;
font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.tcat a:link
{
color: #ffffff;
text-decoration: none;
}
.tcat a:visited
{
color: #ffffff;
text-decoration: none;
}
.tcat a:hover, .tcat a:active
{
color: #FFFF66;
text-decoration: underline;
}
.thead
{
background: #5C7099 url(images/gradients/gradient_thead.gif) repeat-x top left;
color: #FFFFFF;
font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.thead a:link
{
color: #FFFFFF;
}
.thead a:visited
{
color: #FFFFFF;
}
.thead a:hover, .thead a:active
{
color: #FFFF00;
}
.tfoot
{
background: #3E5C92;
color: #E0E0F6;
}
.tfoot a:link
{
color: #E0E0F6;
}
.tfoot a:visited
{
color: #E0E0F6;
}
.tfoot a:hover, .tfoot a:active
{
color: #FFFF66;
}
.alt1, .alt1Active
{
background: #F5F5FF;
color: #000000;
}
.alt2, .alt2Active
{
background: #E1E4F2;
color: #000000;
}
td.inlinemod
{
background: #FFFFCC;
color: #000000;
}
.wysiwyg
{
background: #F5F5FF;
color: #000000;
font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
textarea, .bginput
{
font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.button
{
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
select
{
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
option, optgroup
{
font-size: 11px;
font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.smallfont
{
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.time
{
color: #666686;
}
.navbar
{
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.highlight
{
color: #FF0000;
font-weight: bold;
}
.fjsel
{
background: #3E5C92;
color: #E0E0F6;
}
.fjdpth0
{
background: #F7F7F7;
color: #000000;
}
.panel
{
background: #E4E7F5 url(images/gradients/gradient_panel.gif) repeat-x top left;
color: #000000;
padding: 10px;
border: 2px outset;
}
.panelsurround
{
background: #D5D8E5 url(images/gradients/gradient_panelsurround.gif) repeat-x top left;
color: #000000;
}
legend
{
color: #22229C;
font: 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.vbmenu_control
{
background: #738FBF;
color: #FFFFFF;
font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
padding: 3px 6px 3px 6px;
white-space: nowrap;
}
.vbmenu_control a:link
{
color: #FFFFFF;
text-decoration: none;
}
.vbmenu_control a:visited
{
color: #FFFFFF;
text-decoration: none;
}
.vbmenu_control a:hover, .vbmenu_control a:active
{
color: #FFFFFF;
text-decoration: underline;
}
.vbmenu_popup
{
background: #FFFFFF;
color: #000000;
border: 1px solid #0B198C;
}
.vbmenu_option
{
background: #BBC7CE;
color: #000000;
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
white-space: nowrap;
cursor: pointer;
}
.vbmenu_option a:link
{
color: #22229C;
text-decoration: none;
}
.vbmenu_option a:visited
{
color: #22229C;
text-decoration: none;
}
.vbmenu_option a:hover, .vbmenu_option a:active
{
color: #FFFFFF;
text-decoration: none;
}
.vbmenu_hilite
{
background: #8A949E;
color: #FFFFFF;
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
white-space: nowrap;
cursor: pointer;
}
.vbmenu_hilite a:link
{
color: #FFFFFF;
text-decoration: none;
}
.vbmenu_hilite a:visited
{
color: #FFFFFF;
text-decoration: none;
}
.vbmenu_hilite a:hover, .vbmenu_hilite a:active
{
color: #FFFFFF;
text-decoration: none;
}
/* ***** styling for 'big' usernames on postbit etc. ***** */
.bigusername { font-size: 14pt; }
/* ***** small padding on 'thead' elements ***** */
td.thead, div.thead { padding: 4px; }
/* ***** basic styles for multi-page nav elements */
.pagenav a { text-decoration: none; }
.pagenav td { padding: 2px 4px 2px 4px; }
/* ***** define margin and font-size for elements inside panels ***** */
.fieldset { margin-bottom: 6px; }
.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 11px; }
/* ***** don't change the following ***** */
form { display: inline; }
label { cursor: default; }
.normal { font-weight: normal; }
.inlineimg { vertical-align: middle; }
-Save file này dưới tên thietlapmau.css
-Vào template headinclude .Tìm đoạn $style[css] và thay bằng



-Up file thietlapmau.css vào thư mục gốc của 4rum bạn .VD: http://trangwebcuaban.com/thie... .Bạn có thể đặt đường dẫn khác ,miễn sao dễ quản lý và tiện tho mình là được .
Giai đoạn này ko bắt buộc nhưng khi bạn tách riêng css ra thì việc chỉnh sửa sẽ có phần nhanh chóng hơn là làm trực tiếp từ site => dễ quản lý ,dễ sửa chữa
Bỏ khoảng cách viền ngoài :
Có 1 khoảng cách nhỏ giữa toàn trang và phần nội dung site ,bạn có thể khử nó bằng cách sửa 1 chút trong css .Hãy mở file thietlapmau.css và tìm đoạn sau
Hãy sửa phần margin: 5px 10px 10px 10px thành margin: 0px 0px 0px 0px .Xong rồi save file lại và nhấn F5 để load lại site .Việc này ko nhất thiết cần nhưng 1 số skin việc chừa 1 khoảng nhỏ giữa các lề sẽ ko đẹp lắm ^^
Thu gọn lại header:
-Tại header template tìm :
Code:
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
Xóa bỏ nó đi ,mục đích việc này là dọn cho trống chỗ header chừa không gian gắn banner

Tài sản của LSB-Vipno3
Thành viên sau đã gửi lời cám ơn đến LSB-Vipno3 vì bài viết hữu ích này:
taynguyen2010 (08-06-2011)
Cũ 11-02-2008   #20
Ảnh thế thân của LSB-Vipno3
LSB-Vipno3
-=[ Lương Sơn Anh Hùng ]=-
Gia nhập: 14-02-2007
Bài viết: 2.651
Điểm: 122
L$B: 190.463
Tâm trạng:
LSB-Vipno3 đang offline
 
Thu gọn footer:
-Vào footer template và tìm

Code:
<br />
<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]
<!-- Do not remove this copyright notice -->
</div>
<div class="smallfont" align="center">
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$vboptions[copyrighttext]
</div>
</div>
</form>
<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->
</if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
Hãy xóa nó .Cũng trong footer template tìm đoạn:

Code:
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
Add xuống phía dưới:
Code:
<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]
<!-- Do not remove this copyright notice -->
</div>
<div class="smallfont" align="center">
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$vboptions[copyrighttext]
</div>
</div>
</form>
<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->
</if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
Việc này sẽ giúp thu gọn 1 khoảng ko gian khá lớn dưới footer và skin bạn sẽ gọn hơn
Thu gọn các icon status:
-Việc 3 icon chiếm mất 3 dòng thì cũng hơi mất thẩm mĩ .Do đó thu gọn nó lại 1 dòng biết đâu sẽ dễ nhìn hơn 1 chút
-Vào Forumhome template tìm đoạn
Code:
<!-- icons and login code -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
<td>
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
<td class="smallfont"> $vbphrase[forum_contains_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
<td class="smallfont"> $vbphrase[forum_contains_no_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
<td class="smallfont"> $vbphrase[forum_is_closed_for_posting]</td>
</tr>
</table>
</td>
<if condition="!$show['guest']">
<!-- member logout -->
<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
<!-- end member logout -->
</if>
</tr>
</table>
<!-- / icons and login code -->
Xóa nó và thay bằng đoạn dưới đây:
Code:
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom" align="center">
<td>
<table cellpadding="2" width="70%" class="tborder" cellspacing="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
<td class="smallfont"> $vbphrase[forum_contains_new_posts]</td>
<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
<td class="smallfont"> $vbphrase[forum_contains_no_new_posts]</td>
<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
<td class="smallfont"> $vbphrase[forum_is_closed_for_posting]</td>
</tr>
</table>
</td>
</tr><tr>
<if condition="!$show['guest']">
<!-- member logout -->
<td align="$stylevar[right]"><br><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
<!-- end member logout -->
</if>
</tr>
</table>
Như vậy ta canh được 3 icon vào giữa trông khá cân đối và giúp tiết kiệm thêm 1 khoảng không gian nữa

Tài sản của LSB-Vipno3
Thành viên sau đã gửi lời cám ơn đến LSB-Vipno3 vì bài viết hữu ích này:
taynguyen2010 (08-06-2011)
Cũ 11-02-2008   #21
Ảnh thế thân của LSB-Vipno3
LSB-Vipno3
-=[ Lương Sơn Anh Hùng ]=-
Gia nhập: 14-02-2007
Bài viết: 2.651
Điểm: 122
L$B: 190.463
Tâm trạng:
LSB-Vipno3 đang offline
 
Chuyển khu vực đánh dấu đọc diễn đàn xuống dưới box thống kê
Việc này là cần thiết vì sau khi đồng bộ hóa ,tách rời các box ra nếu vẫn để thế box cuối cùng sẽ mất tính đồng bộ với các box còn lại .Thực hiện như sau
-Tại Forumhome template .Kiếm dòng:
Code:
<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
</tbody>
Xóa nó và cũng trong Forumhome template kiếm đoạn:
Code:
</table><br />
<!-- end what's going on box -->
Add trước thẻ đoạn code vừa mới xóa .OK giờ xem ra khá tinh tươm rồi ,chỉ còn việc tách rời các box ra
Cách tách các box :
-Có khá nhiều cách nhưng xin giới thiệu các bạn 1 cách tách box khá đơn giản và dễ hiểu ..... thôi nào ta tiếp tục nhé
-Vào FORUMHOME template ....trước tiên ta sẽ tách riêng box thông báo đăng kí thành viên lúc chưa đăng nhập
Kiếm đoạn:
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<if condition="$show['guest']">
<!-- guest welcome message -->
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
</td>
</tr>
<!-- / guest welcome message -->
</if>
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
Sau đó add bên dưới đoạn này
-Sau đó cũng ở tempate này hãy kiếm đoạn $forumbits .Hãy xóa cái khóa đóng đi .Làm xong việc này bạn hãy move 2 thẻ if (màu đỏ) ra phía ngoài.Nghĩa là:
Code:
<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<!-- guest welcome message -->
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
</td>
</tr>
<!-- / guest welcome message -->
</if>
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</tr>
</thead></table></if>
Công việc tiếp theo sẽ là tách rời các box giữa
-Vào forumhome_forumbit_level1_nopost add lên trên cùng template này đoạn:

Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
Và dưới cùng của template add đoạn này:
Code:
</table><br>
Di chuyển phần tiêu đề cột vào các box :
Sau khi tác các box ra phần tiêu đề cột sẽ nằm lạc lỏng ,tui nhiên ta cũng có thể di chuyển lại đúng vị trí dễ dàng

-Trong forumhome template ,kiếm đoạn:
Code:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
Xóa nó đi ..... sau đó vào forumhome_forumbit_level1_nopost template kiếm đoạn:
Code:
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</tbody>
Add xuống dưới đoạn code:
Code:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
Okie ,giờ các cột đã về đúng vị trí rồi đấy

Tài sản của LSB-Vipno3
Thành viên sau đã gửi lời cám ơn đến LSB-Vipno3 vì bài viết hữu ích này:
taynguyen2010 (08-06-2011)
Cũ 11-02-2008   #22
Ảnh thế thân của LSB-Vipno3
LSB-Vipno3
-=[ Lương Sơn Anh Hùng ]=-
Gia nhập: 14-02-2007
Bài viết: 2.651
Điểm: 122
L$B: 190.463
Tâm trạng:
LSB-Vipno3 đang offline
 
Đưa phần chú thích chủ đề nằm ngang làng với tiêu đề box:
-Việc này sẽ giúp skin của bạn trở nên gọn gàng và ko phải mất hẳn một dòng cho cái tcat quá ư bự
-Tại forumhome_forumbit_level1_nopost kiếm dòng:
Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
Thay lại bằng:
Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><font class="smallfont">- $forum[description]</font></if>
Xong rồi ,bạn có thấy chiều cao tcat nhỏ đi 1 nửa ko ,như vậy đã gần xong giai đoạn tinh chỉnh skin ,ta chỉ còn 1 việc tối ưu hóa cột ở các box,số cột quá nhiều và gây mất thẩm mĩ
Thu gọn các cột :
Gân như việc bố trí các cột trong skin gốc là khá nhiều và ko cần thiết ,chúng ta có thể thu nó lại 1 chút cho dễ coi hơn ,tùy theo ý thích của bạn thôi Tạm thời tôi sẽ chỉ bạn gom nó lại còn 2 cột .Đồng thời sẽ kết hợp thêm 1 số bài viết cũ của GDV để tăng thêm tính đa dạng của bài tút này Thôi tiếp nào
-Vào forumhome_forumbit_level1_nopost tìm đoạn:

Code:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
Thay thế bằng

Code:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead">$vbphrase[last_post]</td>
</tr>
Vào tiếp forumhome_forumbit_level1_post và thay thế toàn bộ code trong đó bằng đoạn sau:

Code:
<tbody>
<tr align="center">
<td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
<td width="100%">
<fieldset style="padding: 10px;"><legend style="background: rgb(250, 250, 250) none repeat scroll 0%; padding-bottom: 5px; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a></legend>
<div>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="alt1" nowrap="nowrap"><b>$vbphrase[threads]</b>: $forum[threadcount]</td>
<td class="alt1" nowrap="nowrap"><b>$vbphrase[posts]</b>: $forum[replycount]</td>
<if condition="$forum[moderators]"><td class="alt1" nowrap="nowrap"><b>$vbphrase[moderator]:</b>$forum[moderators] </td>
</if>
</div>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
</td>
<td class="alt2" width="200" nowrap="nowrap">$forum[lastpostinfo]</td>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody>
$childforumbits
</tbody>
</if>
Vào tiếp forumhome_forumbit_level2_post và cũng thay lại toàn bộ code trong ấy bằng đoạn sau:

Code:
<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<fieldset style="padding: 10px;"><legend style="background: rgb(250, 250, 250) none repeat scroll 0%; padding-bottom: 5px; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a></legend>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td colspan="4" style="padding-bottom: 5px;">
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
<tr>
<td class="alt1" nowrap="nowrap"><b>$vbphrase[threads]</b>: $forum[threadcount]</td>
<td class="alt1" nowrap="nowrap"><b>$vbphrase[posts]</b>: $forum[replycount]</td>
<if condition="$forum[moderators]"><td class="smallfont"><b>$vbphrase[moderator]:</b>$forum[moderators] </td>
</if>
</tr>
</tbody></table>
</fieldset>
</td>
<td class="alt2" width="200" nowrap="nowrap">$forum[lastpostinfo]</td>
</tr>
$childforumbits
Tiếp theo hãy vào FORUMDISPLAY .Tìm đoạn:

Code:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
Xóa nó và thay thế bằng:

Code:
<tr align="center">
<td class="thead" colspan="2" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead">$vbphrase[last_post]</td>
</tr>
Okie vậy là xong rồi đó
Còn đây là kết quả cuối cùng


Tài sản của LSB-Vipno3
Thành viên sau đã gửi lời cám ơn đến LSB-Vipno3 vì bài viết hữu ích này:
taynguyen2010 (08-06-2011)
Cũ 24-05-2008   #23
Ảnh thế thân của LSB-Vipno3
LSB-Vipno3
-=[ Lương Sơn Anh Hùng ]=-
Gia nhập: 14-02-2007
Bài viết: 2.651
Điểm: 122
L$B: 190.463
Tâm trạng:
LSB-Vipno3 đang offline
 
Mục đặt biệt : MOD Các phiên bản Vbb .

Mod - Xóa bài không giảm số lượng


Cách cài đặt :

Bước 1.) IMPORT THE PRODUCT !
Bước 2.) Open includes/functions_databuild.php

Tìm:
Trích dẫn:
------

PHP Code:
// ###################### Start deletethread #######################
function delete_thread($threadid$countposts true$physicaldel true$delinfo NULL$dolog true$threadinfo NULL)
{
    global 
$vbulletin$vbphrase
Thêm bên dưới:
Trích dẫn:
-------------

PHP Code:
$get_postdecrease $vbulletin->db->query_first("
        SELECT forumid, allowpostdecrease
        FROM " 
TABLE_PREFIX "forum
        WHERE forumid = " 
$threadinfo['forumid'] . "
    "
);

    if (
$get_postdecrease['allowpostdecrease'] == 0)
    {
        
$countposts false;
    } 
Tìm tiếp:
------

PHP Code:
// ###################### Start deletepost #######################
function delete_post($postid$countposts true$threadid 0$physicaldel true$delinfo NULL$dolog true)
{
    global 
$vbulletin$vbphrase$threadinfo
Thêm bên dưới:
Trích dẫn:
-------------

PHP Code:
$get_postdecrease $vbulletin->db->query_first("
        SELECT forumid, allowpostdecrease
        FROM " 
TABLE_PREFIX "forum
        WHERE forumid = " 
$threadinfo['forumid'] . "
    "
);

    if (
$get_postdecrease['allowpostdecrease'] == 0)
    {
        
$countposts false;
    } 
#####################################
Bước 3.)Edit Trong forum con chon No :

Allow Post Count To Decrease In This Forum Naturally? (Default Is YES) (If selected to no user's post count WILL NOT decrease in this forum!)
chọn (Không)
File gửi kèm
Loại File: rar utf-8''disable_post_count_decrease_per_forum.rar (1,6 KB, Đã tải về 8 lần)

Tài sản của LSB-Vipno3
Thành viên sau đã gửi lời cám ơn đến LSB-Vipno3 vì bài viết hữu ích này:
taynguyen2010 (08-06-2011)
Cũ 24-05-2008   #24
Ảnh thế thân của LSB-Vipno3
LSB-Vipno3
-=[ Lương Sơn Anh Hùng ]=-
Gia nhập: 14-02-2007
Bài viết: 2.651
Điểm: 122
L$B: 190.463
Tâm trạng:
LSB-Vipno3 đang offline
 
Mod Mod Scan link virus online(check link by Drweb)

Cách cài đặt
Trích dẫn:
Step 1 : Upload 'vcheckvirus.php' root folder (forum).
Step 2 : Go into AdminCP.
Plugins & Products -> Manage Products -> Click [Add/Import Product] -> Select file 'product-vcheckvirus.xml'.
Click 'Import'.
Step3 (Config) :
Go into AdminCP.
vBulletin Options ---> Click 'vBulletin Options' , drag your mouse down, you will get ' vCheckVirus' and double click on it to get your config.

Nguồn : Nguyễn Minh Kha
File gửi kèm
Loại File: zip vCheckVirus0.99.zip (3,7 KB, Đã tải về 10 lần)

Tài sản của LSB-Vipno3
Thành viên sau đã gửi lời cám ơn đến LSB-Vipno3 vì bài viết hữu ích này:
taynguyen2010 (08-06-2011)
Cũ 24-05-2008   #25
Ảnh thế thân của LSB-Vipno3
LSB-Vipno3
-=[ Lương Sơn Anh Hùng ]=-
Gia nhập: 14-02-2007
Bài viết: 2.651
Điểm: 122
L$B: 190.463
Tâm trạng:
LSB-Vipno3 đang offline
 
Đây là bộ gõ rất tốt và cũng đã có từ lâu,theo đánh giá tốt hơn bộ him rất nhiều.

* Đầu tiên là cài lang Việt cho forum của bạn.
* Import product product-vietnamesekeyboard.xml
* Upload file lên thư mục clientscript trên host.

Để cài đặt bộ gõ cho Admincp thì làm như sau:mở file includes\adminfunctions.php tìm


Code:
function print_cp_footer()
{
    global $vbulletin, $level, $vbphrase;

thêm xuống dưới

Code:
echo "            <!-- Vietnamese keyboard -->\n";
    echo "        <div align='center'><fieldset class='fieldset' style='margin:0px 0px 5px 0px'><legend>Vietnamese Keyboard ™</legend>\n";
    echo "            <input id=auto onclick=setMod(0); type=radio name=viet_mod><font color='#0FF000'>Auto</font>\n";
    echo "            <input id=telex onclick=setMod(1); type=radio name=viet_mod>Telex\n";
    echo "            <input id=vni onclick=setMod(2); type=radio name=viet_mod>VNI\n";
    echo "            <input id=viqr onclick=setMod(3); type=radio name=viet_mod>VIQR\n";
    echo "          <input id=off onclick=setMod(-1); type=radio name=viet_mod><font color='#FF0000'>Off</font>\n";
    echo "          <input id=ckspell onclick=setSpell(this); type=checkbox name=viet_mod><font color='#0FF000'>Spell</font>\n";
    echo "          <input id=old onclick=setOLD(this); type=checkbox name=viet_mod><font color='#0FF000'>Accent</font>\n";
    echo "        <br /><div align='center'>Xin vui lòng gõ tiếng Việt có dấu&nbsp; - <font color='#0FF000'>&nbsp;Cám ơn</font>\n";
    echo "        </div></fieldset></div>\n";
    echo "            <!-- / end Vietnamese keyboard -->\n";
    echo "            <!-- Vietnamese keyboard -->\n";
    echo "            <script>\n";
    echo "            <!--\n";
    echo "            folder=\"../clientscript/\";\n";
    echo "            //-->\n";
    echo "            </script>\n";
    echo "            <script language='javascript1.3' src='../clientscript/vbulletin_kb_ctrl.js'></script>\n";
    echo "            <!-- / Vietnamese keyboard -->";
File gửi kèm
Loại File: rar Vietkey.rar (31,6 KB, Đã tải về 19 lần)

Tài sản của LSB-Vipno3
Thành viên sau đã gửi lời cám ơn đến LSB-Vipno3 vì bài viết hữu ích này:
taynguyen2010 (08-06-2011)
Đã khóa chủ đề


Quyền sử dụng
Huynh đệ không được phép tạo chủ đề mới
Huynh đệ không có quyền gửi bài trả lời
Huynh đệ không được phép gửi file-gửi-kèm
Huynh đệ không được phép sửa bài của mình

BB code is Mở
Smilies đang Mở
[IMG] đang Mở
HTML đang Tắt
Chuyển nhanh đến:

 
Copyright © 2002 - 2010 Luongsonbac.club
Thiết kế bởi LSB-TongGiang & LSB-NgoDung
Loading

Múi giờ tính theo GMT +7. Hiện giờ là 14:48
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
Liên hệ - Lương Sơn Bạc - Lưu trữ  
Page generated in 0,06064 seconds with 16 queries