需求如题:
修改方法:
打开plus/form/index.asp
找到105行,并增加红色代码
case "adddate" echo GetNodeText("AddDate")
case "userip"
dim userip:userip=GetNodeText("userip")
if not ks.isnul(userip) then
dim useriparr:useriparr=split(userip&"...." ,".")
echo useriparr(0)&"."&useriparr(1)&".***.***"
end if
case "linkurl"
echo KS.GetDomain & "Plus/form/content.asp?FormID="&FormID& "&id=" & GetNodeText("id")
case "intro"
使用方法:直接在模模板里面用{@item.userip}调用(默认模板在template/表单/列表页.html)
同理如果详情页面也要显示IP,可以修改
plus/form/content.asp
找到119行,增加红色的
case "id" echo GetNodeText("id")
case "adddate" echo GetNodeText("AddDate")
case "userip"
dim userip:userip=GetNodeText("userip")
if not ks.isnul(userip) then
dim useriparr:useriparr=split(userip&"...." ,".")
echo useriparr(0)&"."&useriparr(1)&".***.***"
end if
case "linkurl"