新闻中心
PHPwind v8.7实现用户快速回帖方法
作者 / 无忧主机 时间 2015-01-21 23:31:27
有些站长朋友为了考虑让一些不想回帖的用户可以来说是想尽了办法,小编在逛phpwind论坛中发现一种方法可以直接让用户点击想说的话,然后点击回复。小编根据论坛给出的方法并且做了个简单总结和方法提供给各位朋友,希望大家可以支持无忧主机php空间。 第一进入到public_html/template/wind/找到Fastpost.htm文件找到如下代码:
<!-- EOT; if (isset($db_sitemsg['reply']['0']) && $db_sitemsg['reply']['0'] && $psot_sta) { print<<<EOT找到之后在如上代码的上面添加如下代码:
<div id="rqcss"><img src="http://www.0595.com/images/wind/cue.gif">无忧主机测试!谢绝无意义字符回复, <select id="s1" onchange="qreplyfun()" style="width: 160px; height: 20px" > <option value="懒人下拉选择回复语句:">懒人下拉选择回复语句</option> <option value="楼主辛苦了,谢谢楼主分享!">楼主辛苦了,谢谢楼主分享!</option> </select> </div> <script type="text/javascript">function qreplyfun(){var v = document.getElementById("s1").value; document.getElementById('textarea').value=v;}</script><style type="text/css">#rqcss {width:100%;padding:4px 0;border:#ddedf7 1px dashed;background:#f1f9fd;color:#006699;} #rqcss img {margin-bottom:-3px;}</style> <span id="fastpostreturn"></span>如上的代码是小编把一些回复语言给删除了,如果自己想添加自己喜欢的语言可以使用<option value="添加语言">添加语言</option>如果还不会的话可以看如下的截图:


本文地址:https://www.51php.com/phpwind/18396.html






