請問是那個index.php呢?
修改後訪客沒有顯示數字,只有:[]
PHP2.06
appserv2.2
代碼: 選擇全部
原作版權聲明
##############################################################
## Mod Title: [Who Is On Line] User Icon
## Mod Version: 1.0.1 for phpbb 2.0.x
## Author: MaoStudio < mao@dnb2tw.info > http://www.maostudio.com/
##
## Description: This mod will add an icon next to the user name &
## explaination in the user info.
##
## Demo: http://bbs.dnb2tw.info/
##
## Installation Level: easy
## Installation Time: 3-5 Minutes
## Files To Edit: includes/page_header.php
##
## Included Files: admin.gif, mod.gif, user.gif
##############################################################
##
## Author Note: Feel free to use it, but be sure to backup
## before you install it. Enjoy It!!
##
##############################################################
## History:
## 1.1.0 advanced version - having explaination
## (http://www.maostudio.com/phpbb/mod/WIO_User_Icon_Adv.zip)
## 1.0.1 simple version - easier to upgrade to advance version
## (http://www.maostudio.com/phpbb/mod/WIO_User_Icon.zip)
## 1.0.0 simple version - display icons only
## (http://www.maostudio.com/phpbb/mod/WIO_User_Icon.zip)
##############################################################
詳細作法如下:
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
$icon_member = '<img src=images/icons/user.gif>'; //Member Icon
#
#-----[ AFTER, ADD ]------------------------------------
#
$icon_guest = '<img src=images/icons/guest.gif>'; //Guest Icon
#
#-----[ FIND ]------------------------------------------
#
'L_ICON_EXPLAIN_MEMBER' => $icon_member,
#
#-----[ AFTER, ADD ]------------------------------------
#
'L_ICON_EXPLAIN_GUEST' => $icon_guest,
#
#-----[ FIND ]------------------------------------------
#
'L_WHOSONLINE_MEMBER' => sprintf($lang['Member_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'), //User Icon Mod
#
#-----[ AFTER, ADD ]------------------------------------
#
'L_WHOSONLINE_GUEST' => sprintf($lang['Guest_online_color'], '<span style="color:#' . $theme['fontcolor1'] . '">', '</span>'),
#
#-----[ SAVE/CLOSE FILES ]------------------------------
#
========================================================
#
#-----[ OPEN ]------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Member_online_color'] = '<font color="#444444">註冊會員</font>'; //User Icon Mod)
#
#-----[ REPLACE WITH ]------------------------------------
#
$lang['Member_online_color'] = '%s註冊會員%s'; //User Icon Mod (這行您可以參照原來的即可,this line is NOT NECESSARY)
$lang['Guest_online_color'] = '%s線上訪客%s'; //User Icon Mod
#
#-----[ FIND ]------------------------------------------
#
$lang['No_users_browsing'] = '目前沒有使用者瀏覽這個討論區';
#
#-----[ AFTER, ADD ]------------------------------------
#
$lang['Online_guests'] = '目前線上瀏覽訪客';
#
#-----[ SAVE/CLOSE FILES ]------------------------------
#
========================================================
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
'L_USERS_TODAY' =>$l_today_users,
#
#-----[ AFTER, ADD ]------------------------------------
#
'ONLINE_GUESTS' => $lang['Online_guests'],
'GUESTS_ONLINE' => $guests_online,
#
#-----[ SAVE/CLOSE FILES ]------------------------------
#
========================================================
#
#-----[ OPEN ]------------------------------------------
#
templates/your_templates/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}
#
#-----[ IN-LINE FIND ]----------------------------------
#
[ {L_ICON_EXPLAIN_MEMBER} ] - [ {L_WHOSONLINE_MEMBER} ]
#
#-----[ IN-LINE AFTER, ADD ]----------------------------
#
[ {L_ICON_EXPLAIN_GUEST} ] - [ {L_WHOSONLINE_GUEST} ]
#
#-----[ IN-LINE FIND ]----------------------------------
#
{LOGGED_IN_USER_LIST}<br />
#
#-----[ IN-LINE AFTER, ADD ]----------------------------
#
{ONLINE_GUESTS}: {L_ICON_EXPLAIN_GUEST}[<font color=red>{GUESTS_ONLINE}</font>]<br />
#
#-----[ SAVE/CLOSE FILES ]------------------------------
#
#
#-----[ COPY IMAGES ]------------------------------------
#
Copy guest.gif to phpBB2/images/icons/guest.gif