Đang tải dữ liệu...
Style KTCN chia cột sẵn - SinhViênIT.Net ||Diễn Đàn Sinh Viên CNTT
 
 
Đang tải...
 
       
Trở lại   SinhViênIT.Net ||Diễn Đàn Sinh Viên CNTT > Thư Viện Mã Nguồn > vBulletin > vBulletin Templates > Skin VBB 3.8.x



Đang tải bộ máy tìm kiếm


Trả lời Gởi Ðề Tài Mới
Lần đọc: 613 - Trả lời: 4  
Ðiều Chỉnh
  #1  
Cũ 21-10-2009, 08:59 PM
Vũ Thanh Lai's Avatar
Vũ Thanh Lai Vũ Thanh Lai đã thoát
Đầy tớ Nhân Dân
Tên Thật: Vũ Thanh Lai
Giới tính: Nam
Đang học trường: ĐH Tôn Đức Thắng
Đang học khoa: Công nghệ thông tin
Nghề Nghiệp: Sinh viên
Cấp độ: 71 [SinhVienIT.NetSinhVienIT.NetSinhVienIT.NetSinhVienIT.NetSinhVienIT.Net]
Hoạt động: 2632 / 2632
Điểm: 4445 / 15092
Kinh Nghiệm: 19%
Thành Viên Thứ: 1
Tham gia ngày: 29-09-2007
Đến từ: Định quán, Đồng nai
Tuổi: 19
Bài gửi: 13,337
Đã Cám ơn: 1,018 bài viết
Được cám ơn: 10,608 Lần trong 4,944 Bài viết
Thành viên này đã thay đổi Username 1 lần
Username cũ: vũ thanh lai
Mặc định Style KTCN chia cột sẵn

Style KTCN chia cột sẵn

Nguồn bài viết: http://sinhvienit.net/@forum/showthread.php?t=12980
Cài đặt:
  • Down att.
  • Up toàn bộ thư mục nhok lên ngang hàng index.
  • Import file xml
P/S:Style này làm theo 4rum mình, có chia cột, nếu để bình thường thì skin không có gì đặt biệt, còn đặc biệt thì xem demo nhé.
Demo:

Để làm được giống thế này, các bạn làm theo các bước sau:
* Bạn Import file XML vào Products ( file XML các bạn Download ở http://sinhvienit.net/@forum/attachment.php?attachmentid=1404&stc=1&d=125613355 3 )
* Mở file functions_forumlist.php trong thư mục includes của diễn đàn :
Tìm:

PHP Code:
if ($subsonly)
{
$childforumbits construct_forum_bit($forum['forumid'], 1$subsonly);
}
else if (
$depth MAXFORUMDEPTH)
{
$childforumbits construct_forum_bit($forum['forumid'], $depth$subsonly);
}
else
{
$childforumbits '';



Sửa thành :

PHP Code:
if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != AND ($subsonly OR $depth MAXFORUMDEPTH))
{
$childforumbits construct_forum_columns($forum['forumid'], $forum['subforumcolumns']);
}
else if (
$subsonly)
{
$childforumbits construct_forum_bit($forum['forumid'], 1$subsonly);
}
else if (
$depth MAXFORUMDEPTH)
{
$childforumbits construct_forum_bit($forum['forumid'], $depth$subsonly);
}
else
{
$childforumbits '';



Tìm : ( Bước này là chia subforum ra làm 2 cột )

PHP Code:
foreach($vbulletin->iforumcache["$parentid"] AS $forumid


Chèn ở Trên nó :

PHP Code:
$output .= "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\" ><tr valign=\"top\"> "$cols 0


Tìm tiếp :

PHP Code:
if (!empty($output)) { $subforum $splitter["$canpost"] . $subforum; } if ($depth $vbulletin->options['subforumdepth']) { $output .= construct_subforum_bit($forumid$cancontainthreads$subforum$depthmark '--'$depth 1); } } } return $output; } 


Thay Bằng :

PHP Code:
if ($depth $vbulletin->options['subforumdepth']) { $cols++; if ($cols==3) { $cols 1$output .= "</tr><tr>"; } $output .= '<td width="50%">' construct_subforum_bit($forumid$cancontainthreads$subforum$depthmark '--'$depth 1) . "</td>"; } } } if ($cols ==1$output.="<td>&nbsp;</td></tr></table>"; else $output.="</tr></table>"; return $output; } 

Thêm Đoạn này vào cuối file :

PHP Code:
// ###################### Start construct_forum_columns #######################
function construct_forum_columns($parentid$columncount)
{
global 
$vbulletin$stylevar$vbphrase$show;
global 
$imodcache$lastpostarray$counters$inforum;

// this function takes the constant MAXFORUMDEPTH as its guide for how
// deep to recurse down forum lists. if MAXFORUMDEPTH is not defined,
// it will assume a depth of 2.

if ($columncount == 0)
{
// 0 Columns means don't show subforums at all
return '';
}

// call fetch_last_post_array() first to get last post info for forums
if (!is_array($lastpostarray))
{
fetch_last_post_array();
}

if (empty(
$vbulletin->iforumcache["$parentid"]))
{
return;
}

if (!
defined(MAXFORUMDEPTH))
{
define('MAXFORUMDEPTH'1);
}

$forumbits '';

$counter 0;
foreach (
$vbulletin->iforumcache["$parentid"] AS $forumid)
{
// grab the appropriate forum from the $vbulletin->forumcache
$forum $vbulletin->forumcache["$forumid"];
$lastpostforum $vbulletin->forumcache["$lastpostarray[$forumid]"];
if (!
$forum['displayorder'] OR !($forum['options'] & $vbulletin->bf_misc_forumoptions['active']))
{
continue;
}

$forumperms $vbulletin->userinfo['forumpermissions']["$forumid"];
$lastpostforumperms $vbulletin->userinfo['forumpermissions']["$lastpostarray[$forumid]"];
if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums'])
// no permission to view current forum
continue;
}

if (
$subsonly)
{
$childforumbits construct_forum_bit($forum['forumid'], 1$subsonly);
}
else if (
$depth MAXFORUMDEPTH)
{
$childforumbits construct_forum_bit($forum['forumid'], $depth$subsonly);
}
else
{
$childforumbits '';
}

// do stuff if we are not doing subscriptions only, or if we ARE doing subscriptions,
// and the forum has a subscribedforumid
if (!$subsonly OR ($subsonly AND !empty($forum['subscribeforumid'])))
{

$GLOBALS['forumshown'] = true// say that we have shown at least one forum

if (($forum['options'] & $vbulletin->bf_misc_forumoptions['cancontainthreads']))
// get appropriate suffix for template name
$tempext '_post';
}
else

{
$tempext '_nopost';
}

if (!
$vbulletin->options['showforumdescription'])
// blank forum description if set to not show
$forum['description'] = '';
}

// dates & thread title
$lastpostinfo $vbulletin->forumcache["$lastpostarray[$forumid]"];

// compare last post time for this forum with the last post time specified by
// the $lastpostarray, and if it's less, use the last post info from the forum
// specified by $lastpostarray
if ($vbulletin->forumcache["$lastpostarray[$forumid]"]['lastpost'] > 0)
{
if (!(
$lastpostforumperms $vbulletin->bf_ugp_forumpermissions['canview']) OR (!($lastpostforumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND $lastpostinfo['lastposter'] != $vbulletin->userinfo['username']))
{
$forum['lastpostinfo'] = $vbphrase['private'];
}
else
{
$lastpostinfo['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $lastpostinfo['lastpost'], 1);
$lastpostinfo['lastposttime'] = vbdate($vbulletin->options['timeformat'], $lastpostinfo['lastpost']);
$lastpostinfo['trimthread'] = fetch_trimmed_title($lastpostinfo['lastthread']);

if (
$icon fetch_iconinfo($lastpostinfo['lasticonid']))
{
$show['icon'] = true;
}
else
{
$show['icon'] = false;
}

$show['lastpostinfo'] = (!$lastpostforum['password'] OR verify_forum_password($lastpostforum['forumid'], $lastpostforum['password'], false));

eval(
'$forum[\'lastpostinfo\'] = "' fetch_template('forumhome_lastpostby') . '";');
}
}
else if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']))
{
$forum['lastpostinfo'] = $vbphrase['private'];
}
else
{
$forum['lastpostinfo'] = $vbphrase['never'];
}

// do light bulb
$forum['statusicon'] = fetch_forum_lightbulb($forumid$lastpostinfo$forum);

// add lock to lightbulb if necessary
if ((!($forumperms $vbulletin->bf_ugp_forumpermissions['canpostnew']) OR !($forum['options'] & $vbulletin->bf_misc_forumoptions['allowposting'])) AND $vbulletin->options['showlocks'] AND !$forum['link'])
{
$forum['statusicon'] .= '_lock';
}

// get counters from the counters cache ( prepared by fetch_last_post_array() )
$forum['threadcount'] = $counters["$forum[forumid]"]['threadcount'];
$forum['replycount'] = $counters["$forum[forumid]"]['replycount'];

// get moderators ( this is why we needed cache_moderators() )
if ($vbulletin->options['showmoderatorcolumn'])
{
$showmods = array();
$listexploded explode(','$forum['parentlist']);
foreach (
$listexploded AS $parentforumid)
{
if (!isset(
$imodcache["$parentforumid"]))
{
continue;
}
foreach(
$imodcache["$parentforumid"] AS $moderator)
{
if (isset(
$showmods["$moderator[userid]"]))
{
continue;
}

(
$hook vBulletinHook::fetch_hook('forumbit_moderator')) ? eval($hook) : false;

$showmods["$moderator[userid]"] = true;
if (!isset(
$forum['moderators']))
{
eval(
'$forum[\'moderators\'] = "' fetch_template('forumhome_moderator') . '";');
}
else
{
eval(
'$forum[\'moderators\'] .= ", ' fetch_template('forumhome_moderator') . '";');
}
}
}
if (!isset(
$forum['moderators']))
{
$forum['moderators'] = '';
CopyrightHội Quán Tin Học http://hoiquantinhoc.com/forum/showthread.php?t=22022
}
}

if (
$forum['link'])
{
$forum['replycount'] = '-';
$forum['threadcount'] = '-';
$forum['lastpostinfo'] = '-';
}
else
{
$forum['replycount'] = vb_number_format($forum['replycount']);
$forum['threadcount'] = vb_number_format($forum['threadcount']);
}

$forum['subforums'] = construct_subforum_bit($forumid, ($forum['options'] & $vbulletin->bf_misc_forumoptions['cancontainthreads'] ) );

$children explode(','$forum['childlist']);
foreach(
$children AS $childid)
{
$forum['browsers'] += ($inforum["$childid"] ? $inforum["$childid"] : 0);
}

if (
$depth == AND $tempext == '_nopost')
{
global 
$vbcollapse;
$collapseobj_forumid =& $vbcollapse["collapseobj_forumbit_$forumid"];
$collapseimg_forumid =& $vbcollapse["collapseimg_forumbit_$forumid"];
$show['collapsebutton'] = true;
}
else
{
$show['collapsebutton'] = false;
}

$show['forumsubscription'] = ($subsonly true false);
$show['forumdescription'] = ($forum['description'] != '' true false);
$show['subforums'] = ($forum['subforums'] != '' true false);
$show['browsers'] = ($vbulletin->options['displayloggedin'] AND !$forum['link'] AND $forum['browsers'] ? true false);

// build the template for the current forum
$column_width intval(100 $columncount) . '%';
eval(
'$column = "' fetch_template("forumhome_forumbit_columncell") . '";');

// do the columnstuff
if ($counter $columncount == 0)
{
// Begin a new row
$forumbits .= "\t<tr>\n";
}
$forumbits .= $column;
if (
$counter $columncount == $columncount 1)
{
// End row
$forumbits .= "\t</tr>\n";
}
$counter++;
}
}

// prevent unclosed <tr> tags
if ($counter $columncount != 0)
{
$forumbits .= "\t</tr>\n";
}

return 
$forumbits;



Save lại , up lên.
Tiếp đó vô ACP
- Chọn style muốn sửa vào Forum home templetes/Forumhome_forumbit_columncell
Thay toàn bộ bằng code sau :

PHP Code:
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" width="$column_width">
    <
div class="boxtop">

<
div style="width:90%;">
<
div class="hqth2"><div class="hqth1"><div class="hqth3"><div style="padding-top:9px;">

        
        <
a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
    <if 
condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>

</
div></div></div>
</
div>

    <if 
condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>

<if 
condition="$show['subforums']"><div class="smallfont">
$forum[subforums]</div></if>

<
div class="smallfont"><strong><center>
$vbphrase[threads]: $forum[threadcount] | $vbphrase[posts]: $forum[replycount]
</
center></strong></div>
<
div class="lastbg">$forum[lastpostinfo]</div>

<
div class="lastbg">
<if 
condition="$forum[moderators]"><font class="smallfont"><b>Điều hành : </b><a href="member.php?$session[sessionurl]u=$moderator[userid]">$forum[moderators]</a></font>
</if></
div>

<
div class="boxcorner">
</
div>

</
div>
</
td


Hoàn thành và thưởng thức

HQTH
1 Số lưu ý khi sử dụng file đính kèm:- 1- Không cần đăng ký thành viên cũng có thể tải file đính kèm.
2- Tốt nhất hãy dùng Firefox hoặc IDM down các file đính kèm dạng Zip,Rar (Ko dùng IE 7).
File Kèm Theo
Kiểu File : zip nhok.zip (372.2 KB, 47 lần tải)
Kiểu File : xml vbulletin-style(2).xml (98.8 KB, 22 lần tải)
Kiểu File : zip Arrange Forums in Columns.zip (4.4 KB, 48 lần tải)
Trả Lời Với Trích Dẫn
Quảng cáo
  #2  
Cũ 21-10-2009, 09:36 PM
annguyenvt's Avatar
annguyenvt annguyenvt đã thoát
Thành Viên SVIT
Tên Thật: an
Giới tính: Nam
Cấp độ: 9 [SinhVienIT.Net]
Hoạt động: 0 / 217
Điểm: 38 / 899
Kinh Nghiệm: 70%
Thành Viên Thứ: 13145
Tham gia ngày: 09-04-2009
Tuổi: 24
Bài gửi: 114
Đã Cám ơn: 11 bài viết
Được cám ơn: 4 Lần trong 4 Bài viết
Mặc định Bị lỗi gì ấy nè

Bị lỗi gì ấy nè

Nguồn bài viết: http://sinhvienit.net/@forum/showthread.php?t=12980
Code:
Parse error: syntax error, unexpected ':' in /home/thuthuat/public_html/forum/includes/functions_forumlist.php on line 724
mình attract file lên để xem lại nha
1 Số lưu ý khi sử dụng file đính kèm:- 1- Không cần đăng ký thành viên cũng có thể tải file đính kèm.
2- Tốt nhất hãy dùng Firefox hoặc IDM down các file đính kèm dạng Zip,Rar (Ko dùng IE 7).
File Kèm Theo
Kiểu File : php functions_forumlist.php (25.6 KB, 6 lần tải)
Trả Lời Với Trích Dẫn
Quảng cáo
  #3  
Cũ 21-10-2009, 10:20 PM
Vũ Thanh Lai's Avatar
Vũ Thanh Lai Vũ Thanh Lai đã thoát
Đầy tớ Nhân Dân
Tên Thật: Vũ Thanh Lai
Giới tính: Nam
Đang học trường: ĐH Tôn Đức Thắng
Đang học khoa: Công nghệ thông tin
Nghề Nghiệp: Sinh viên
Cấp độ: 71 [SinhVienIT.NetSinhVienIT.NetSinhVienIT.NetSinhVienIT.NetSinhVienIT.Net]
Hoạt động: 2632 / 2632
Điểm: 4445 / 15092
Kinh Nghiệm: 19%
Thành Viên Thứ: 1
Tham gia ngày: 29-09-2007
Đến từ: Định quán, Đồng nai
Tuổi: 19
Bài gửi: 13,337
Đã Cám ơn: 1,018 bài viết
Được cám ơn: 10,608 Lần trong 4,944 Bài viết
Thành viên này đã thay đổi Username 1 lần
Username cũ: vũ thanh lai
Mặc định

Nguồn bài viết: http://sinhvienit.net/@forum/showthread.php?t=12980
Thử thay
PHP Code:
$forum['browsers'] += ($inforum["$childid"] ? $inforum["$childid"] : 0); 
Thành
PHP Code:
$forum['browsers'] += ($inforum["$childid"]?$inforum["$childid"]:0); 
Xem
Trả Lời Với Trích Dẫn
Quảng cáo
  #4  
Cũ 26-10-2009, 07:16 PM
SuctreIT.Com's Avatar
SuctreIT.Com SuctreIT.Com đã thoát
Thành Viên Vip
Tên Thật: Biết Nói Rằng Chừ
Giới tính: Nam
Đang học trường: ĐH Bách Khoa Đà Nẵng
Đang học khoa: CNTT
Cấp độ: 16 [SinhVienIT.Net]
Hoạt động: 38 / 383
Điểm: 101 / 1234
Kinh Nghiệm: 33%
Thành Viên Thứ: 18543
Tham gia ngày: 01-08-2009
Tuổi: 23
Bài gửi: 305
Đã Cám ơn: 32 bài viết
Được cám ơn: 139 Lần trong 77 Bài viết
Thành viên này đã thay đổi Username 2 lần
Username cũ: hoichobiet2212
Mặc định

Nguồn bài viết: http://sinhvienit.net/@forum/showthread.php?t=12980
Sao mình làm theo hướng dẫn mà nó ko ra như vậy nhỉ!? (Như hình attach)
Có cách nào làm giống như demo ko!?? M thấy như vậy đẹp . . .
Mong các bạn giúp với . . .
1 Số lưu ý khi sử dụng file đính kèm:- 1- Không cần đăng ký thành viên cũng có thể tải file đính kèm.
2- Tốt nhất hãy dùng Firefox hoặc IDM down các file đính kèm dạng Zip,Rar (Ko dùng IE 7).
Hình Ðính Kèm
Nhấn vào ảnh để xem kích thước thật

Tên:  SaoTheNay.png
Lần xem: 20
Kích thước:  81.1 KB  
Khách hãy cùng SuctreIT.Com chung sức xây dựng SinhVienIT.Net nha SuctreIT.Com. Hân hạnh được làm quen ^^!

Thay đổi nội dung bởi: hoichobiet2212, 26-10-2009 lúc 07:30 PM
Trả Lời Với Trích Dẫn
  #5  
Cũ 05-11-2009, 11:02 AM
mylove_bn's Avatar
mylove_bn mylove_bn đã thoát
Thành Viên SVIT
Tên Thật: tuyen
Giới tính: Nam
Cấp độ: 1 [SinhVienIT.Net]
Hoạt động: 0 / 21
Điểm: 3 / 64
Kinh Nghiệm: 86%
Thành Viên Thứ: 19427
Tham gia ngày: 31-08-2009
Tuổi: 21
Bài gửi: 9
Đã Cám ơn: 6 bài viết
Được cám ơn: 0 Lần trong 0 Bài viết
Mặc định

Nguồn bài viết: http://sinhvienit.net/@forum/showthread.php?t=12980
Trích:
Nguyên văn bởi annguyenvt Xem bài viết
Code:
Parse error: syntax error, unexpected ':' in /home/thuthuat/public_html/forum/includes/functions_forumlist.php on line 724
mình attract file lên để xem lại nha
của em cũng báo lỗi như vầy
Khách hãy cùng mylove_bn chung sức xây dựng SinhVienIT.Net nha
Trả Lời Với Trích Dẫn
Trả lời Gởi Ðề Tài Mới

Đánh dấu

Tags
cột, chia, ktcn, sẵn, style


Ðang đọc: 1 (0 thành viên và 1 khách)
 
Ðiều Chỉnh

Quyền viết bài
Bạn không thể gửi chủ đề mới
Bạn không thể gửi trả lời
Bạn không thể gửi file đính kèm
Bạn không thể sửa bài viết của mình

BB code is Mở
Mặt cười đang Mở
[IMG] đang Mở
HTML đang Tắt

Chuyển đến

Các chủ đề tương tự
Chủ đề Người khởi xướng chủ đề Diễn đàn Trả lời Bài mới gửi
DJ Style Vũ Thanh Lai Skin VBB 3.8.x 6 16-05-2010 01:44 PM
Style Anime 4 Việt - Đẹp - gọn - nhẹ Vũ Thanh Lai Skin VBB 3.8.x 7 18-05-2009 11:26 PM
Style M&M Vũ Thanh Lai Skin VBB 3.8.x 1 29-04-2009 12:43 PM
Style Sweet Luv [IPB ~> VBB] Vũ Thanh Lai Skin VBB 3.7.x 0 24-04-2009 03:54 PM
Style Tru Tiên Vũ Thanh Lai Skin VBB 3.7.x 1 19-04-2009 07:08 AM


Múi giờ GMT. Hiện tại là 12:25 PM
Powered by: vBulletin v3.8.2 Copyright ©2000-2010, Jelsoft Enterprises Ltd.
Xây Dựng Và Phát Triển Bởi Các Thành Viên SinhViênIT.Net
Liên hệ: Email VuThanhLai@Gmail.Com | Admin@SinhVienIT.Net
Ghi rõ nguồn SinhVienIT.Net khi sao chép bài ở đây !
Hosting Sponsored By hostmienphi.vn

 

Trang chủ | Diễn đàn | Thư viện Tutorial | Tin tức CNTT | Việc làm | Công cụ | Server Upload
 Quảng cáo