Discuz!NT – 在线显示列表 游客 bug 修复 – dotNetDR

引发bug的条件:当你修改了系统组里面的[游客]组 的名字后!!

你会发现首页上底部的在线显示列表里始终都是显示”游客”字样而非你改过得字样!如图

至此你需要运行一个t-sql脚本去修复这个bug!(但是本人不建议修改论坛源代码的方式去修复这个bug!)

fix bug:

SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER PROCEDURE [dbo].[dnt_getonlineuserlist]ASSELECT [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]GOSET ANSI_NULLS OFFGOSET QUOTED_IDENTIFIER OFFGO

  这里的groupid = 7的数字7就是游客组的主键~~如果你那边不是的话请自行替换~~

适用版本:Discuz!NT 3.6.711 (已测试通过)

效果图:

感言:我去TMD的开源论坛!

本文到此结束!谢谢.

不必在乎目的地,在乎的是沿途的风景以及看风景的心情,让心灵去旅行!

Discuz!NT – 在线显示列表 游客 bug 修复 – dotNetDR

相关文章:

你感兴趣的文章:

标签云: