1 頁 (共 1 頁)

[問題]誰能提供和"櫻井璃月"相向的風格..(感謝各位,已解決)

發表於 : 2006-11-29 22:05
s880118
我看到"櫻井璃月"
http://www.sakuramoon.info/
的風格好羨慕喔...
有誰能提供跟他很像的風格...
我不想再用一條一條條列式的風格了...
拜託...

發表於 : 2006-11-29 23:45
在思緒重疊之前
她沒有釋出吧@@"
你只能手動改囉..
改出一個屬於自己的風格吧..
畢竟用下載的套裝風格總是會看到一樣的..= =

發表於 : 2006-11-30 10:42
cloudsnow30
猛一看.嚇到.
以為發生什麼事了..

當初也是想說.phpbb只能有那樣的風格嗎?
又我蠻懶的重裝外掛的.
所以.以原本有裝外掛的mycmiss風格.重新大改版.(不過人家也看不出來是mycmiss改的吧.... :-D )

這個風格都是我自己慢慢修改出來的..(當然某些小問題.還是靠竹貓的大大們幫忙解決的.)
老實說.因為有加裝一些外掛(但又可能只是利用外掛的一部分功能)
一些phpbb原有的功能,有些也被我移植到其他頁面使用..

另外就是...因為配合這個風格的關係..
要裝其他外掛時...有些地方都和外掛的安裝有些不同.需要自己去做微調..
是一件很麻煩的大工程.. :mrgreen:

所以...
幾乎不可能釋出的(應該說想釋出也沒辦法) @@"
因為已經不是很純粹的風格問題了... :roll:

發表於 : 2006-11-30 18:49
在思緒重疊之前
哈 我了解你的感受
因為我的情況跟你完全一樣= =
只適用於自己家~_~
畢竟牽扯到很多外掛的功能跟樣式..
很難做出具體的釋出@@"
基本上釋出的風格都是用完全乾淨的PHPBB來製作..
SO 自己做最好吧@@"

發表於 : 2006-11-30 20:57
s880118
那可以給我類似的風格讓我改麼??
譬如你說的mycmiss風格.
謝謝了...

發表於 : 2006-11-30 22:36
cloudsnow30
s880118 寫:那可以給我類似的風格讓我改麼??
譬如你說的mycmiss風格.
謝謝了...
類似的風格啊....
印象中.似乎是沒有耶...
如果說比較接近的話.大概只有design大大的Banking風格吧..
我的排版是參考Banking風格改出來的..不過基本上還是有很多的地方不同.

[試驗]關於這樣的版面該如何更改..(自行暫時解決)

這篇文是我之前在改版面時.所發的文..
裡面有些圖片可以參考看看..

關於mycmiss風格.那是我之前釋出的青澀作品..
推薦風格裡也有圖片可以看.
不過那對你的需求而言.應該是完全扯不上關係的..

如果你只是想要把版版改成一列一列的排列方式.其實並不難...

嗯~我實在不太會解說這種東西... :roll:

都只會傻傻的想到什麼改什麼...

唉唷~我來去改一個風格好了... = =

跟我目前使用的完全一樣是不可能的啦...

不過如果只是要那種版版排列方式(單指各區版面而言.公告,top5那些我不管>"<)...應該還ok吧..

不知道要多久時間才能完成..不確定就是了..





(其實是妳自己突然想到才會想做新風格吧..)

(唉唷~人家實在回答不出來咩....就看看同樣的構想,能變出什麼花樣啊..)

(丫,妳哪會變出什麼花樣,,還不就是軟趴趴的那種調調...)

(呃......我不管了啦.來去變花樣...orz)

發表於 : 2006-12-02 19:53
s880118
那能教我如何改嗎...
我也想拿個範本自己改成屬於自己的風格...

發表於 : 2006-12-02 22:39
cloudsnow30
這是當初Banking風格.所附的..pack資料夾的檔案..
(因為前一陣子電腦重灌.所以風格檔遺失了)
本來打包好,打算放到網路空間去給你下載..結果..ie一直當在上傳檔案的畫面.

以下是index.php的部分..
請全部復製之後.自行另存為index.php檔..
注意:這個檔當初作者釋出時.是phpbb2.0.19的版本..請自行參考2.0.20和2.0.21的升級檔,有修改到index.php的部分修改.

代碼: 選擇全部

<?php
/***************************************************************************
 *                                index.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: index.php,v 1.99.2.3 2004/07/11 16:46:15 acydburn Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

define('IN_PHPBB', true);
define('IN_INDEX', true);

$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//

$viewcat = ( !empty($HTTP_GET_VARS[POST_CAT_URL]) ) ? $HTTP_GET_VARS[POST_CAT_URL] : -1;

if( isset($HTTP_GET_VARS['mark']) || isset($HTTP_POST_VARS['mark']) )
{
	$mark_read = ( isset($HTTP_POST_VARS['mark']) ) ? $HTTP_POST_VARS['mark'] : $HTTP_GET_VARS['mark'];
}
else
{
	$mark_read = '';
}

//
// Handle marking posts
//
if( $mark_read == 'forums' )
{
	if( $userdata['session_logged_in'] )
	{
		setcookie($board_config['cookie_name'] . '_f_all', time(), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
	}

	$template->assign_vars(array(
		"META" => '<meta http-equiv="refresh" content="3;url='  .append_sid("index.$phpEx") . '">')
	);

	$message = $lang['Forums_marked_read'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a> ');

	message_die(GENERAL_MESSAGE, $message);
}
//
// End handle marking posts
//

$tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . "_t"]) : array();
$tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . "_f"]) : array();

//
// If you don't use these stats on your index you may want to consider
// removing them
//
$total_posts = get_db_stat('postcount');
$total_users = get_db_stat('usercount');
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
$newest_uid = $newest_userdata['user_id'];

if( $total_posts == 0 )
{
	$l_total_post_s = $lang['Posted_articles_zero_total'];
}
else if( $total_posts == 1 )
{
	$l_total_post_s = $lang['Posted_article_total'];
}
else
{
	$l_total_post_s = $lang['Posted_articles_total'];
}

if( $total_users == 0 )
{
	$l_total_user_s = $lang['Registered_users_zero_total'];
}
else if( $total_users == 1 )
{
	$l_total_user_s = $lang['Registered_user_total'];
}
else
{
	$l_total_user_s = $lang['Registered_users_total'];
}


//
// Start page proper
//
$sql = "SELECT c.cat_id, c.cat_title, c.cat_order
	FROM " . CATEGORIES_TABLE . " c 
	ORDER BY c.cat_order";
if( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql);
}

$category_rows = array();
while( $category_rows[] = $db->sql_fetchrow($result) );
$db->sql_freeresult($result);

if( ( $total_categories = count($category_rows) ) )
{
	//
	// Define appropriate SQL
	//
	switch(SQL_LAYER)
	{
		case 'postgresql':
			$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id 
				FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . USERS_TABLE . " u
				WHERE p.post_id = f.forum_last_post_id 
					AND u.user_id = p.poster_id  
					UNION (
						SELECT f.*, NULL, NULL, NULL, NULL
						FROM " . FORUMS_TABLE . " f
						WHERE NOT EXISTS (
							SELECT p.post_time
							FROM " . POSTS_TABLE . " p
							WHERE p.post_id = f.forum_last_post_id  
						)
					)
					ORDER BY cat_id, forum_order";
			break;

		case 'oracle':
			$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id 
				FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . USERS_TABLE . " u
				WHERE p.post_id = f.forum_last_post_id(+)
					AND u.user_id = p.poster_id(+)
				ORDER BY f.cat_id, f.forum_order";
			break;

		default:
			$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id, t.topic_title, t.topic_id
				FROM ((( " . FORUMS_TABLE . " f
				LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
				LEFT JOIN " . TOPICS_TABLE . " t ON t.topic_id = p.topic_id ) 
				LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
				ORDER BY f.cat_id, f.forum_order";
			break;
	}
	if ( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql);
	}

	$forum_data = array();
	while( $row = $db->sql_fetchrow($result) )
	{
		$forum_data[] = $row;
	}
	$db->sql_freeresult($result);

	if ( !($total_forums = count($forum_data)) )
	{
		message_die(GENERAL_MESSAGE, $lang['No_forums']);
	}

	//
	// Obtain a list of topic ids which contain
	// posts made since user last visited
	//
	if ( $userdata['session_logged_in'] )
	{
		$sql = "SELECT t.forum_id, t.topic_id, p.post_time 
			FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p 
			WHERE p.post_id = t.topic_last_post_id 
				AND p.post_time > " . $userdata['user_lastvisit'] . " 
				AND t.topic_moved_id = 0"; 
		if ( !($result = $db->sql_query($sql)) )
		{
			message_die(GENERAL_ERROR, 'Could not query new topic information', '', __LINE__, __FILE__, $sql);
		}

		$new_topic_data = array();
		while( $topic_data = $db->sql_fetchrow($result) )
		{
			$new_topic_data[$topic_data['forum_id']][$topic_data['topic_id']] = $topic_data['post_time'];
		}
		$db->sql_freeresult($result);
	}

	//
	// Obtain list of moderators of each forum
	// First users, then groups ... broken into two queries
	//
	$sql = "SELECT aa.forum_id, u.user_id, u.username 
		FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g, " . USERS_TABLE . " u
		WHERE aa.auth_mod = " . TRUE . " 
			AND g.group_single_user = 1 
			AND ug.group_id = aa.group_id 
			AND g.group_id = aa.group_id 
			AND u.user_id = ug.user_id 
		GROUP BY u.user_id, u.username, aa.forum_id 
		ORDER BY aa.forum_id, u.user_id";
	if ( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql);
	}

	$forum_moderators = array();
	while( $row = $db->sql_fetchrow($result) )
	{
		$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '">' . $row['username'] . '</a>';
	}
	$db->sql_freeresult($result);

	$sql = "SELECT aa.forum_id, g.group_id, g.group_name 
		FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g 
		WHERE aa.auth_mod = " . TRUE . " 
			AND g.group_single_user = 0 
			AND g.group_type <> " . GROUP_HIDDEN . "
			AND ug.group_id = aa.group_id 
			AND g.group_id = aa.group_id 
		GROUP BY g.group_id, g.group_name, aa.forum_id 
		ORDER BY aa.forum_id, g.group_id";
	if ( !($result = $db->sql_query($sql)) )
	{
		message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql);
	}

	while( $row = $db->sql_fetchrow($result) )
	{
		$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=" . $row['group_id']) . '">' . $row['group_name'] . '</a>';
	}
	$db->sql_freeresult($result);

	//
	// Find which forums are visible for this user
	//
	$is_auth_ary = array();
	$is_auth_ary = auth(AUTH_ALL, AUTH_LIST_ALL, $userdata, $forum_data);

	//
	// Start output of page
	//
	define('SHOW_ONLINE', true);
	$page_title = $lang['Index'];
	include($phpbb_root_path . 'includes/page_header.'.$phpEx);

	$template->set_filenames(array(
		'body' => 'index_body.tpl')
	);

	$template->assign_vars(array(
		'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
		'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
		'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'), 

		'FORUM_IMG' => $images['forum'],
		'FORUM_NEW_IMG' => $images['forum_new'],
		'FORUM_LOCKED_IMG' => $images['forum_locked'],

		'L_FORUM' => $lang['Forum'],
		'L_TOPICS' => $lang['Topics'],
		'L_REPLIES' => $lang['Replies'],
		'L_VIEWS' => $lang['Views'],
		'L_POSTS' => $lang['Posts'],
		'L_LASTPOST' => $lang['Last_Post'],
        'L_TOPIC' => $lang['Topic'],
		'L_NO_NEW_POSTS' => $lang['No_new_posts'],
		'L_NEW_POSTS' => $lang['New_posts'],
		'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], 
		'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], 
		'L_ONLINE_EXPLAIN' => $lang['Online_explain'],

		'L_MODERATOR' => $lang['Moderators'], 
		'L_FORUM_LOCKED' => $lang['Forum_is_locked'],
		'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'], 

		'U_MARK_READ' => append_sid("index.$phpEx?mark=forums"))
	);
	//
	// Check configuration
	//

	if(empty($board_config['index_topic_maxlen']))
	{
		$board_config['index_topic_maxlen'] = 30;
	} 
	//
	// Okay, let's build the index
	//
	for($i = 0; $i < $total_categories; $i++)
	{
		$x = $i % 2;
		
		$cat_id = $category_rows[$i]['cat_id'];

		//
		// Should we display this category/forum set?
		//
		$display_forums = false;
		for($j = 0; $j < $total_forums; $j++)
		{
			if ( $is_auth_ary[$forum_data[$j]['forum_id']]['auth_view'] && $forum_data[$j]['cat_id'] == $cat_id )
			{
				$display_forums = true;
			}
		}

		//
		// Yes, we should, so first dump out the category
		// title, then, if appropriate the forum list
		//
		if ( $display_forums )
		{
			$template->assign_block_vars('catrow' . $x, array(
				'CAT_ID' => $cat_id,
				'CAT_DESC' => $category_rows[$i]['cat_title'],
				'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
			);

			if ( $viewcat == $cat_id || $viewcat == -1 )
			{
				for($j = 0; $j < $total_forums; $j++)
				{
					if ( $forum_data[$j]['cat_id'] == $cat_id )
					{
						$forum_id = $forum_data[$j]['forum_id'];

						if ( $is_auth_ary[$forum_id]['auth_view'] && $forum_id != 2 )
						{
							if ( $forum_data[$j]['forum_status'] == FORUM_LOCKED )
							{
								$folder_image = $images['forum_locked']; 
								$folder_alt = $lang['Forum_locked'];
							}
							else
							{
								$unread_topics = false;
								if ( $userdata['session_logged_in'] )
								{
									if ( !empty($new_topic_data[$forum_id]) )
									{
										$forum_last_post_time = 0;

										while( list($check_topic_id, $check_post_time) = @each($new_topic_data[$forum_id]) )
										{
											if ( empty($tracking_topics[$check_topic_id]) )
											{
												$unread_topics = true;
												$forum_last_post_time = max($check_post_time, $forum_last_post_time);

											}
											else
											{
												if ( $tracking_topics[$check_topic_id] < $check_post_time )
												{
													$unread_topics = true;
													$forum_last_post_time = max($check_post_time, $forum_last_post_time);
												}
											}
										}

										if ( !empty($tracking_forums[$forum_id]) )
										{
											if ( $tracking_forums[$forum_id] > $forum_last_post_time )
											{
												$unread_topics = false;
											}
										}

										if ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) )
										{
											if ( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] > $forum_last_post_time )
											{
												$unread_topics = false;
											}
										}

									}
								}

								$folder_image = ( $unread_topics ) ? $images['forum_new'] : $images['forum']; 
								$folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts']; 
							}

							$posts = $forum_data[$j]['forum_posts'];
							$topics = $forum_data[$j]['forum_topics'];

							if ( $forum_data[$j]['forum_last_post_id'] )
							{
								$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);

								$last_post = $last_post_time . "&nbsp;";

								$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
								
								$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
							}
							else
							{
								$last_post = $lang['No_Posts'];
							}

							if ( count($forum_moderators[$forum_id]) > 0 )
							{
								$l_moderators = ( count($forum_moderators[$forum_id]) == 1 ) ? $lang['Moderator'] : $lang['Moderators'];
								$moderator_list = implode(', ', $forum_moderators[$forum_id]);
							}
							else
							{
								$l_moderators = '&nbsp;';
								$moderator_list = '&nbsp;';
							}
							
							$topic_title = '';
							if( $is_auth_ary[$forum_data[$j]['forum_id']]['auth_read'] && $forum_data[$j]['forum_last_post_id'] )
							{	// if user has access to forum and there is last topic
								$topic_title = $forum_data[$j]['topic_title'];
								if( strlen($topic_title) > $board_config['index_topic_maxlen'] )
								{
									$topic_title = trim(substr($topic_title, 0, $board_config['index_topic_maxlen'])) . '...';
								}
							}

							$topic_img = '<img src="';
							$topic_img .= $unread_topics ? $images['icon_newest_reply'] : $images['icon_latest_reply'];
							$topic_img .= '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';

							$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
							$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

							$template->assign_block_vars('catrow' . $x . '.forumrow',	array(
								'ROW_COLOR' => '#' . $row_color,
								'ROW_CLASS' => $row_class,
								'FORUM_FOLDER_IMG' => $folder_image, 
								'FORUM_NAME' => $forum_data[$j]['forum_name'],
								'FORUM_DESC' => $forum_data[$j]['forum_desc'],
								'POSTS' => $forum_data[$j]['forum_posts'],
								'TOPICS' => $forum_data[$j]['forum_topics'],
								'LAST_POST' => $last_post,
                                'L_TOPICS' => $lang['Topics'],
                                'L_TIME' => $lang['Time'],
								'MODERATORS' => $moderator_list,

								'L_MODERATOR' => $l_moderators, 
								'L_FORUM_FOLDER_ALT' => $folder_alt, 

								'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
							);
								
							if($topic_title)
							{
								$template->assign_block_vars('catrow' . $x . '.forumrow.topic_on', array(
									'LAST_TOPIC' => $topic_title,
									'LAST_TOPIC_IMG' => $topic_img,
									'U_LASTPOST' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'],
									'U_VIEWTOPIC' => append_sid("viewtopic.$phpEx?"  . POST_TOPIC_URL . "=" . $forum_data[$j]['topic_id']))
								);
							}
							else
							{
								$template->assign_block_vars('catrow' . $x . '.forumrow.topic_off', array(
									'LAST_TOPIC' => $lang['No_Posts'])
								);
							}
						}
					}
				}
			}
		}
	} // for ... categories

}// if ... total_categories
else
{
	message_die(GENERAL_MESSAGE, $lang['No_forums']);
}

//
// Generate the page
//
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>

發表於 : 2006-12-02 22:41
cloudsnow30
以下是index.tpl的部分..
請全部復製之後.自行另存為index.tpl檔..
注意:這個檔當初作者釋出時.是phpbb2.0.19的版本..請自行參考2.0.20和2.0.21的升級檔,有修改到index.tpl的部分修改.

代碼: 選擇全部

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
    <tr>
        <td valign="top" width="50%">
            <!-- BEGIN catrow0 -->
            <table>
                <tr> 
	                <td class="catLeft" height="28"><span class="cattitle"><b>{catrow0.CAT_DESC}</b></span></td>
                </tr>
                <!-- BEGIN forumrow -->
                <tr>
                    <td style="padding-top:3px"><span class="forumlink"> <a href="{catrow0.forumrow.U_VIEWFORUM}" class="forumlink">{catrow0.forumrow.FORUM_NAME}</a></span> (<span class="gensmall">{catrow0.forumrow.TOPICS}</span>/<span class="gensmall">{catrow0.forumrow.POSTS}</span>) <img src="{catrow0.forumrow.FORUM_FOLDER_IMG}" width="9" height="7" alt="{catrow0.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow0.forumrow.L_FORUM_FOLDER_ALT}" /></td>
                </tr>
                <tr> 
	                <td  width="100%" style="padding-top:3px;padding-bottom:3px"><span class="genmed">{catrow0.forumrow.FORUM_DESC} </span></td>
	            </tr>
	            <tr>
	                <td style="padding-bottom:3px"><span class="gensmall">
	                	<!-- BEGIN topic_on -->
                        {catrow0.forumrow.L_TOPICS}: <a class="genmed" href="{catrow0.forumrow.topic_on.U_VIEWTOPIC}">{catrow0.forumrow.topic_on.LAST_TOPIC}</a><br>
	                    <!-- END topic_on -->
                        {catrow0.forumrow.L_TIME}: {catrow0.forumrow.LAST_POST}
                        </span>
	                </td>
	            </tr>
                <tr>
                    <td height="1"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td background="templates/Banking/line/cols_2.gif" style="padding:0px"></td></tr></table></td>
                </tr>
                <!-- END forumrow -->
           </table>
           <!-- END catrow0 -->
       </td>
        <td valign="top" width="50%">
            <!-- BEGIN catrow1 -->
            <table>
                <tr> 
	                <td class="catLeft" height="28"><span class="cattitle"><b>{catrow1.CAT_DESC}</b></span></td>
                </tr>
                <!-- BEGIN forumrow -->
                <tr>
                    <td style="padding-top:3px"><span class="forumlink"> <a href="{catrow1.forumrow.U_VIEWFORUM}" class="forumlink">{catrow1.forumrow.FORUM_NAME}</a></span> (<span class="gensmall">{catrow1.forumrow.TOPICS}</span>/<span class="gensmall">{catrow1.forumrow.POSTS}</span>) <img src="{catrow1.forumrow.FORUM_FOLDER_IMG}" width="9" height="7" alt="{catrow1.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow1.forumrow.L_FORUM_FOLDER_ALT}" /></td>
                </tr>
                <tr> 
	                <td  width="100%" style="padding-top:3px;padding-bottom:3px"><span class="genmed">{catrow1.forumrow.FORUM_DESC}</span></td>
	            </tr>
	            <tr>
	                <td style="padding-bottom:3px">
	                <span class="gensmall">
	                	<!-- BEGIN topic_on -->
                        {catrow1.forumrow.L_TOPICS}: <a class="genmed" href="{catrow1.forumrow.topic_on.U_VIEWTOPIC}">{catrow1.forumrow.topic_on.LAST_TOPIC}</a><br>
	                    <!-- END topic_on -->
                        {catrow1.forumrow.L_TIME}: {catrow1.forumrow.LAST_POST}
	                    </span>
	                </td>
	            </tr>
                <tr>
                    <td height="1"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td background="templates/Banking/line/cols_2.gif" style="padding:0px"></td></tr></table></td>
                </tr>
                <!-- END forumrow -->
           </table>
           <!-- END catrow1 -->
       </td>
    </tr>
</table>

<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
  <tr> 
	<td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
	<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
  </tr>
</table>

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr> 
	<td  align="left" width="100%"><span class="gensmall">{TOTAL_POSTS} {TOTAL_USERS} {NEWEST_USER}</span>
	</td>
  </tr>
  <tr> 
	<td  align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} <br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>

<br clear="all" />

<table cellspacing="3" border="0" align="center" cellpadding="0">
  <tr> 
	<td width="20" align="center"><img src="templates/Banking/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>
	<td><span class="gensmall">{L_NEW_POSTS}</span></td>
	<td>&nbsp;&nbsp;</td>
	<td width="20" align="center"><img src="templates/Banking/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>
	<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
	<td>&nbsp;&nbsp;</td>
	<td width="20" align="center"><img src="templates/Banking/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" /></td>
	<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>

發表於 : 2006-12-02 23:10
cloudsnow30
以上兩個檔案是我最初拿來研究的...
將檔案直接覆蓋原始的phpbb檔.和subSilver風格.一樣會有banking風格的效果..

不過和我所使用的排版方式還是有差..
需要再做微調...

再次申明,如果想排成類似我的那種版面樣式,依個人所試驗的結果..
請注意此風格之版面編排方式與Attached forums子分區外掛不相容

另外.此風格不適合同時安裝多種風格...
除非你留下兩個不同的 index.php.切換風格時.同時更換對應的index.php檔.


其實說很簡單也很簡單.說複雜也很複雜...(當初也摸索了1個多月才摸出整個index的雛形)

index.php的訣竅在...

代碼: 選擇全部

//
	// Okay, let's build the index
	//
	for($i = 0; $i < $total_categories; $i++)
	{
		$x = $i % 2;
		
數字2的部分.就是你想分成幾列的數字.要3列就改成3....4列就改成4.依此類推..
當然.index.tpl的部分.也要依你要的列數做修改..

其精華片斷就在這裡

代碼: 選擇全部

 <!-- BEGIN catrow0 -->
            <table>
                <tr> 
	                <td class="catLeft" height="28"><span class="cattitle"><b>{catrow0.CAT_DESC}</b></span></td>
                </tr>
                <!-- BEGIN forumrow -->
                <tr>
                    <td style="padding-top:3px"><span class="forumlink"> <a href="{catrow0.forumrow.U_VIEWFORUM}" class="forumlink">{catrow0.forumrow.FORUM_NAME}</a></span> (<span class="gensmall">{catrow0.forumrow.TOPICS}</span>/<span class="gensmall">{catrow0.forumrow.POSTS}</span>) <img src="{catrow0.forumrow.FORUM_FOLDER_IMG}" width="9" height="7" alt="{catrow0.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow0.forumrow.L_FORUM_FOLDER_ALT}" /></td>
                </tr>
                <tr> 
	                <td  width="100%" style="padding-top:3px;padding-bottom:3px"><span class="genmed">{catrow0.forumrow.FORUM_DESC} </span></td>
	            </tr>
	            <tr>
	                <td style="padding-bottom:3px"><span class="gensmall">
	                	<!-- BEGIN topic_on -->
                        {catrow0.forumrow.L_TOPICS}: <a class="genmed" href="{catrow0.forumrow.topic_on.U_VIEWTOPIC}">{catrow0.forumrow.topic_on.LAST_TOPIC}</a><br>
	                    <!-- END topic_on -->
                        {catrow0.forumrow.L_TIME}: {catrow0.forumrow.LAST_POST}
                        </span>
	                </td>
	            </tr>
                <tr>
                    <td height="1"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td background="templates/Banking/line/cols_2.gif" style="padding:0px"></td></tr></table></td>
                </tr>
                <!-- END forumrow -->
           </table>
           <!-- END catrow0 -->
       </td>
        <td valign="top" width="50%">
            <!-- BEGIN catrow1 -->
            <table>
                <tr> 
	                <td class="catLeft" height="28"><span class="cattitle"><b>{catrow1.CAT_DESC}</b></span></td>
                </tr>
                <!-- BEGIN forumrow -->
                <tr>
                    <td style="padding-top:3px"><span class="forumlink"> <a href="{catrow1.forumrow.U_VIEWFORUM}" class="forumlink">{catrow1.forumrow.FORUM_NAME}</a></span> (<span class="gensmall">{catrow1.forumrow.TOPICS}</span>/<span class="gensmall">{catrow1.forumrow.POSTS}</span>) <img src="{catrow1.forumrow.FORUM_FOLDER_IMG}" width="9" height="7" alt="{catrow1.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow1.forumrow.L_FORUM_FOLDER_ALT}" /></td>
                </tr>
                <tr> 
	                <td  width="100%" style="padding-top:3px;padding-bottom:3px"><span class="genmed">{catrow1.forumrow.FORUM_DESC}</span></td>
	            </tr>
	            <tr>
	                <td style="padding-bottom:3px">
	                <span class="gensmall">
	                	<!-- BEGIN topic_on -->
                        {catrow1.forumrow.L_TOPICS}: <a class="genmed" href="{catrow1.forumrow.topic_on.U_VIEWTOPIC}">{catrow1.forumrow.topic_on.LAST_TOPIC}</a><br>
	                    <!-- END topic_on -->
                        {catrow1.forumrow.L_TIME}: {catrow1.forumrow.LAST_POST}
	                    </span>
	                </td>
	            </tr>
                <tr>
                    <td height="1"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td background="templates/Banking/line/cols_2.gif" style="padding:0px"></td></tr></table></td>
                </tr>
                <!-- END forumrow -->
           </table>
           <!-- END catrow1 -->
       </td>
    </tr>
</table>
原作者的設計是只有兩排而己...(排列方式.也不是我目前的樣子..)
給你參考...
其他就要靠自己摸索了..

ps.因為之前改風格時.並不打算釋出.所以沒有留下乾淨的底...目前以我使用中的風格做的精簡版.還在處理中...也沒法放出來.所以只好拿最初參考用的檔案給你參考了...

請注意..在做任何修改前.請先備份你的檔案...

發表於 : 2006-12-03 10:33
s880118
原來如此喔...
謝謝分享..
(雖然有點看不懂...但我還有進步的空間呢..)

發表於 : 2006-12-03 12:00
cloudsnow30
不懂的地方..
實地操作一次..就很簡單了...
建議在改風格時..最好另開一個全新的資料夾和資料庫..
這樣如果改失敗了..只要砍掉重新來就好了.

發表於 : 2006-12-15 01:53
slient.lu
cloudsnow30 寫:以上兩個檔案是我最初拿來研究的...
將檔案直接覆蓋原始的phpbb檔.和subSilver風格.一樣會有banking風格的效果..
banking風格是 http://www.banking.com.tw 這個網站的風格嗎.... ?
我看到下面有 download this template 的連結, 是不是這個?
http://holy.be/bbs/viewtopic.php?b=1&t=1360

發表於 : 2006-12-15 02:36
cloudsnow30
slient.lu 寫:
cloudsnow30 寫:以上兩個檔案是我最初拿來研究的...
將檔案直接覆蓋原始的phpbb檔.和subSilver風格.一樣會有banking風格的效果..
banking風格是 http://www.banking.com.tw 這個網站的風格嗎.... ?
我看到下面有 download this template 的連結, 是不是這個?
http://holy.be/bbs/viewtopic.php?b=1&t=1360
是的..
但是我是參考這個風格變出我自己的風格的..

印象中..作者釋出時是2.0.19版..
後來有沒有釋出更新版就不得而知嚕..


ps.最近在忙家族論壇..風格的事被我先放到一邊了 = =