[問題] 請問如何將銀行存款顯示在個人資料及會員列表上?
發表於 : 2005-04-28 19:35
請問各位大大要修改那個文件才能將銀行存款顯示在個人資料及會員列表上?
我安裝的銀行外掛版本為:bank_v3
我安裝的銀行外掛版本為:bank_v3
richer 寫:這你要自己寫OH~~
"會員列表" 是 memberlist.php 和 memberlist_body.tpl
"個人資料" 是 usercp_viewprofile.php 和 profile_view_body.tpl
祝你成功摟!!~~
代碼: 選擇全部
開啟
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"> </td>
在裡面找到\r
"8"
取代為\r
"9"
richer 寫:請帖圖片上來謝謝~~
不想當幽靈會員~~~

[/img]代碼: 選擇全部
<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}: {S_MODE_SELECT} {L_ORDER} {S_ORDER_SELECT}
<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"> </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"> {memberrow.ROW_NUMBER} </span></td>
<td class="{memberrow.ROW_CLASS}" align="center"> {memberrow.PM_IMG} </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"> {memberrow.EMAIL_IMG} </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"> {L_WEBSITE} </td>
</tr>
<!-- END memberrow -->
<tr>
<td class="catBottom" colspan="[color=red]10[/color]" height="28"> </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>
我知道要寫在viewtopic.php跟viewtopic.boby,tpl裡\rjerry6983 寫:
再多請教一個問題:
如果要在下面這個頁面增加銀行存款及貸款金額要如何做?
[/img]