1 頁 (共 1 頁)

[問題] 請問如何將銀行存款顯示在個人資料及會員列表上?

發表於 : 2005-04-28 19:35
jerry6983
請問各位大大要修改那個文件才能將銀行存款顯示在個人資料及會員列表上?

我安裝的銀行外掛版本為:bank_v3

發表於 : 2005-04-28 21:55
richer
這你要自己寫OH~~

"會員列表" 是 memberlist.php 和 memberlist_body.tpl

"個人資料" 是 usercp_viewprofile.php 和 profile_view_body.tpl

祝你成功摟!!~~

發表於 : 2005-04-29 00:14
jerry6983
richer 寫:這你要自己寫OH~~

"會員列表" 是 memberlist.php 和 memberlist_body.tpl

"個人資料" 是 usercp_viewprofile.php 和 profile_view_body.tpl

祝你成功摟!!~~

我一點概念都沒有,不知該從何寫起?

發表於 : 2005-04-29 10:15
richer
以下為個人資料的部份

代碼: 選擇全部

開啟
usercp_viewprofile.php

找到\r
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',

在後面加上
'BANK' => $profiledata['user_bank'],

開啟
profile_view_body.tpl

找到\r
		  <td> <b><span class="gen">{INTERESTS}</span></b></td>
		</tr>

在後面加上
		<tr> 
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">銀行存款:</span></td>
		  <td> <b><span class="gen">{BANK}</span></b></td>
		</tr>
以下為會員列表的部份

代碼: 選擇全部

開啟
memberlist.php

找到(這很可能因為其他外掛被修改到)
$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar 

在這行的最後面加上
, user_bank 

找到\r
'POSTS' => $posts,

在後面加上
'BANK' => $row['user_bank'],

開啟
memberlist_body.tpl

找到\r
<th class="thTop" nowrap="nowrap">{L_POSTS}</th>

在後面加上
<th class="thTop" nowrap="nowrap">銀行存款</th>

找到\r
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POSTS}</span></td>

在後面加上
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.BANK}</span></td>

找到\r
<td class="catBottom" colspan="8" height="28">&nbsp;</td>

在裡面找到\r
"8"

取代為\r
"9"
祝你成功啦~~
如果有問題
請補上你裝過的外掛列表~~

發表於 : 2005-04-29 22:03
jerry6983
可以了,但是字體怪怪的


http://dohgame.no-ip.info/phpBB2/

發表於 : 2005-04-29 23:52
richer
請帖圖片上來謝謝~~
不想當幽靈會員~~~

發表於 : 2005-04-30 02:09
jerry6983
richer 寫:請帖圖片上來謝謝~~
不想當幽靈會員~~~
圖檔

因為memberlist.php有部分語法我找不到所以就自行找位址插入\r
結果變的怪怪的?

再多請教一個問題:
如果要在下面這個頁面增加銀行存款及貸款金額要如何做?
圖檔[/img]

發表於 : 2005-04-30 08:49
richer
字體的部份~~
請把你 memberlist_body.tpl 中\r
妳的插入點的附近幾行貼上來

PS
我猜是因為你選的 銀行存款 那列所使用的 class 與其他的不一樣所致

發表於 : 2005-04-30 16:43
jerry6983

代碼: 選擇全部

<form method="post" action="{S_MODE_ACTION}">
  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr> 
	  <td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
	  <td align="right" nowrap="nowrap"><span class="genmed">{L_SELECT_SORT_METHOD}:&nbsp;{S_MODE_SELECT}&nbsp;&nbsp;{L_ORDER}&nbsp;{S_ORDER_SELECT}&nbsp;&nbsp; 
		<input type="submit" name="submit" value="{L_SUBMIT}" class="liteoption" />
		</span></td>
	</tr>
  </table>
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
	<tr> 
	  <th height="25" class="thCornerL" nowrap="nowrap">#</th>
	  <th class="thTop" nowrap="nowrap">&nbsp;</th>
	  <th class="thTop" nowrap="nowrap">{L_USERNAME}</th>
	  <th class="thTop" nowrap="nowrap">{L_EMAIL}</th>
	  <th class="thTop" nowrap="nowrap">{L_FROM}</th>
	  <th class="thTop" nowrap="nowrap">{L_JOINED}</th>
	  <th class="thTop" nowrap="nowrap">{L_POSTS}
	   <!-- BEGIN cashrow -->
	  <th class="thTop" nowrap="nowrap">{cashrow.NAME}</th>
	  <!-- END cashrow --></th>
	  [color=red]<th class="thTop" nowrap="nowrap">銀行存款</th>[/color]
	  <th class="thCornerR" nowrap="nowrap">{L_WEBSITE}</th>
	</tr>
	<!-- BEGIN memberrow -->
	<tr> 
	  <td class="{memberrow.ROW_CLASS}" align="center"><span class="gen">&nbsp;{memberrow.ROW_NUMBER}&nbsp;</span></td>
	  <td class="{memberrow.ROW_CLASS}" align="center">&nbsp;{memberrow.PM_IMG}&nbsp;</td>
	  <td class="{memberrow.ROW_CLASS}" align="center"><span class="gen"><a href="{memberrow.U_VIEWPROFILE}" class="gen">{memberrow.USERNAME}</a></span></td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle">&nbsp;{memberrow.EMAIL_IMG}&nbsp;</td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.FROM}</span></td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.JOINED}</span></td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POSTS}
	  <!-- BEGIN cashrow -->
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.cashrow.CASH_DISPLAY}</span></td>
	  <!-- END cashrow --></span></td>
	 [color=red] <td class="{memberrow.ROW_CLASS}" align="center"> {memberrow.BANK} </td>[/color]
	  <td class="{memberrow.ROW_CLASS}" align="center">&nbsp;{L_WEBSITE}&nbsp;</td>
	</tr>
	<!-- END memberrow -->
	<tr> 
	  <td class="catBottom" colspan="[color=red]10[/color]" height="28">&nbsp;</td>
	</tr>
  </table>
  <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
	<tr> 
	  <td align="right" valign="top"></td>
	</tr>
  </table>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
  <tr> 
	<td><span class="nav">{PAGE_NUMBER}</span></td>
	<td align="right"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span></td>
  </tr>
</table></form>

<table width="100%" cellspacing="2" border="0" align="center">
  <tr> 
	<td valign="top" align="right">{JUMPBOX}</td>
  </tr>
</table>
紅色的地方是我插入的位址

發表於 : 2005-04-30 17:47
richer
將這行

代碼: 選擇全部

<td class="{memberrow.ROW_CLASS}" align="center">{memberrow.BANK} </td> 
取代為這行

代碼: 選擇全部

<td class="{memberrow.ROW_CLASS}" align="center"><span class="gen">{memberrow.BANK} </span></td> 
如此一來銀行存款的字就會像是文章那欄的字一樣了

祝成功啦

發表於 : 2005-04-30 20:01
jerry6983
richer 寫:將這行

代碼: 選擇全部

<td class="{memberrow.ROW_CLASS}" align="center">{memberrow.BANK} </td> 
取代為這行

代碼: 選擇全部

<td class="{memberrow.ROW_CLASS}" align="center"><span class="gen">{memberrow.BANK} </span></td> 
如此一來銀行存款的字就會像是文章那欄的字一樣了

祝成功啦
可以了!!謝謝

發表於 : 2005-04-30 21:02
richer
不會 別客氣~~

發表於 : 2005-04-30 21:34
jerry6983
jerry6983 寫:
再多請教一個問題:
如果要在下面這個頁面增加銀行存款及貸款金額要如何做?
圖檔[/img]
我知道要寫在viewtopic.php跟viewtopic.boby,tpl裡\r
請寫法依樣ㄇ