Discuz!NT - 在線顯示列表 游客 bug 修復
引發bug的條件:當你修改了系統組里面的[游客]組 的名字后!!

你會發現首頁上底部的在線顯示列表里始終都是顯示"游客"字樣而非你改過得字樣!如圖

至此你需要運行一個t-sql腳本去修復這個bug!(但是本人不建議修改論壇源代碼的方式去修復這個bug!)
fix bug:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[dnt_getonlineuserlist]
AS
SELECT [olid]
,[userid]
,[ip]
,REPLACE([username], N'游客', (select top 1 grouptitle from dbo.dnt_usergroups where groupid = 7)) as [username]--,[username]
,REPLACE([nickname], N'游客', (select top 1 grouptitle from dbo.dnt_usergroups where groupid = 7)) as [nickname]--,[nickname]
,[password]
,[groupid]
,[olimg]
,[adminid]
,[invisible]
,[action]
,[lastactivity]
,[lastposttime]
,[lastpostpmtime]
,[lastsearchtime]
,[lastupdatetime]
,[forumid]
,[forumname]
,[titleid]
,[title]
,[verifycode]
,[newpms]
,[newnotices] FROM [dnt_online]
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
這里的groupid = 7的數字7就是游客組的主鍵~~如果你那邊不是的話請自行替換~~
適用版本:Discuz!NT 3.6.711 (已測試通過)
效果圖:

感言:我去TMD的開源論壇!
本文到此結束!謝謝.



浙公網安備 33010602011771號