我用的是AspCms v2.7.3 20170925 UTF8版本,帮朋友弄了阿里旺旺的账号,发现在网站前端客服三样式,不起作用聊不了天,一阵郁闷。经过仔细查找考虑原来代码有问题。
问题代码:
if isExistStr(tempstr(i),"|") then
Str=Str&""&vbcrlf
else
Str=Str&""&vbcrlf
end if
发现问题后我们开始修改:
1、找到根目录下:\inc\AspCms_MainClass.asp文件,搜索serviceWangWang
会看到如下问题代码:{在2431行----2440行之间}
if not isnul(serviceWangWang) then
tempstr=split(serviceWangWang," ")
for i=0 to ubound(tempstr)
if isExistStr(tempstr(i),"|") then
Str=Str&""&vbcrlf
else
Str=Str&""&vbcrlf
end if
next
end if
2、我们找到代码位置后,只要将代码修改成如下正确代码即可:
if not isnul(serviceWangWang) then
tempstr=split(serviceWangWang," ")
for i=0 to ubound(tempstr)
if isExistStr(tempstr(i),"|") then
Str=Str&""&vbcrlf
else
Str=Str&""&vbcrlf
end if
next
end if
然后,我们再去CSS样式修改一处代码:
3、找到根目录下:\images\qq\qqkf3\kf.css文件,搜索:
A.kefu_Type_msn {
FONT-SIZE: 0px; FLOAT: left; WIDTH: 18px
}
在第82行----84行代码位置,我们将它改成:
A.kefu_Type_msn {
FONT-SIZE: 0px; FLOAT: Center; WIDTH: 18px
}
两处代码经过这样修改以后,一切恢复正常,(演示网址:http://www.jdkj5188.com)。