1 頁 (共 1 頁)

[問題]請教依大的上線列表、子分區改法

發表於 : 2004-09-22 17:42
ms821
今天閒來無事, 走到依大的站逛一逛。

見依大的上線會員列表, 好像DZ! 的顯示方式, 但試過很多修改仍是無法達到效果。。

圖檔

另外, 子分區方面, 我嘗試用和依大站相似的修改方式,是達到效果, 但"子分區"這字下陷了, 而且多了個冒號...

我的站:
圖檔


依大的站
圖檔


揣摩一番仍然無解。。望依大指教。

發表於 : 2004-09-22 19:27
reload_yip
線上人數顯示方式:

開啟

代碼: 選擇全部

includes/page_header.php
找到\r

代碼: 選擇全部

$online_userlist = '';
下面加入\r

代碼: 選擇全部

$online_userlist2 = '';
找到\r

代碼: 選擇全部

$online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link;
下面加入\r

代碼: 選擇全部

$online_userlist2 .= '<span style="width:20%;">'.$user_online_link.'</span>';
找到\r

代碼: 選擇全部

'LOGGED_IN_USER_LIST' => $online_userlist,
下面加入\r

代碼: 選擇全部

'LOGGED_IN_USER_LIST2' => $online_userlist2,
開啟

代碼: 選擇全部

templates/你的風格/index_body.tpl 
找到\r

代碼: 選擇全部

{LOGGED_IN_USER_LIST}
取代\r

代碼: 選擇全部

{LOGGED_IN_USER_LIST2}

發表於 : 2004-09-24 14:33
天霜
子分區:
#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

includes/functions_categories_hierarchy.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

'L_LINKS'				=> empty($links) ? '' : ( empty($lang['Subforums']) ? '<br />' : '<br /><b>' . $lang['Subforums'] . ':</b> ' ),
#
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#

代碼: 選擇全部

'L_LINKS_TXT'			=> empty($links) ? '' : ( empty($lang['Subforums']) ? '' : '<b>' . $lang['Subforums'] . '</b>' ),
#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

templates/subSilver/index_box.tpl
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

		<span class="gensmall">{catrow.forumrow.L_MODERATOR}{catrow.forumrow.MODERATORS}{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span>
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

		<span class="gensmall">{catrow.forumrow.L_MODERATOR}{catrow.forumrow.MODERATORS}</span>
<div style="width:100%"><fieldset><legend align="right">{catrow.forumrow.L_LINKS_TXT} </legend>
<table width="100%" cellpadding="0" cellspacing="0" border="0">		
		<span class="gensmall">{catrow.forumrow.LINKS}</span>
</table>
</fieldset></div>
#
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束

發表於 : 2004-09-24 17:32
ms821
多謝以上兩位大大指教...^^

不過天霜大, 您的方法應該改成這樣比較好~


#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

includes/functions_categories_hierarchy.php

#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

'L_LINKS'            => empty($links) ? '' : ( empty($lang['Subforums']) ? '<br />' : '<br /><b>' . $lang['Subforums'] . ':</b> ' ),

#
#-----[ REPLACE WITH 替換成 ]----------------------------------------
#

代碼: 選擇全部

'L_LINKS'            =>  empty($links) ? '' : ( empty($lang['Subforums']) ? '' : '<b>' . $lang['Subforums'] . '</b>' ),

#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

templates/subSilver/index_box.tpl

#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

      <span class="gensmall">{catrow.forumrow.L_MODERATOR}{catrow.forumrow.MODERATORS}{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span>

#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

      <span class="gensmall">{catrow.forumrow.L_MODERATOR}{catrow.forumrow.MODERATORS}</span> 
<div style="width:100%"><fieldset><legend align="right">{catrow.forumrow.L_LINKS} </legend> 
<table width="100%" cellpadding="0" cellspacing="0" border="0">       
      <span class="gensmall">{catrow.forumrow.LINKS}</span> 
</table> 
</fieldset></div>
#
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM

發表於 : 2004-09-24 22:31
天霜
我不替換'L_LINKS'的原因很簡單\r
因為'L_LINKS'不只index_box.tpl會用到 :mrgreen:

所以乾脆新增一個專給index_box.tpl用~

剛又想到如果是沒有子分區的話,該版面就會空一行
所以就用<!-- BEGIN --><!-- END -->來解決
沒有的話,也不會空一行

#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

includes/functions_categories_hierarchy.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

			// display icon
			if ( !empty($icon_img) )
			{
#
#-----[ BEFORE ADD 之前, 加上 ]------------------------------------
#

代碼: 選擇全部

			// display fieldset
			if ( !empty($links) )
			{
				$template->assign_block_vars('catrow.forumrow.forum_fieldset', array());
			}
#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

templates/subSilver/index_box.tpl
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

      <span class="gensmall">{catrow.forumrow.L_MODERATOR}{catrow.forumrow.MODERATORS}</span> 
<div style="width:100%"><fieldset><legend align="right">{catrow.forumrow.L_LINKS} </legend> 
<table width="100%" cellpadding="0" cellspacing="0" border="0">        
      <span class="gensmall">{catrow.forumrow.LINKS}</span> 
</table> 
</fieldset></div>
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

<!-- BEGIN forum_fieldset -->
      <span class="gensmall">{catrow.forumrow.L_MODERATOR}{catrow.forumrow.MODERATORS}</span> 
<div style="width:100%"><fieldset><legend align="right">{catrow.forumrow.L_LINKS} </legend> 
<table width="100%" cellpadding="0" cellspacing="0" border="0">        
      <span class="gensmall">{catrow.forumrow.LINKS}</span> 
</table> 
</fieldset></div>
<!-- END forum_fieldset -->
#
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束