Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 页面右侧“回顶部”上面增加“快速回复”按钮

[复制链接]
茶钱饭后 发表于 2012-3-27 23:25:12 | 显示全部楼层 |阅读模式
此方法能够引导网友发帖,很实际,故而分享出来给大家。无需安装插件

步骤:
1.  将以下代码复制到你文件下template/default/forum/viewthread.html 里面,粘贴的位置</head>后面即可。(因为只需帖子内容页才有回复,所以只加在viewthread.html  里面)
2.  然后把图片上传你空间static/image/common  文件夹下面就可以了


另外我的空间买的官方的,请大家帮忙测试下速度,页面比较大,不知道这样的空间够不够我用,谢谢了(备案中。。。)
http://w220750.s16.myverydz.com/forum.php


借此问个问题:

有没有人有好一点的采集软件呢?分享一下啊,小站前期需要采集
  1. <style>
  2. #vfpop_menu1{ visibility: hidden; position: fixed; bottom: 100px; display: block;   width: 22px;height: 100px;
  3. background: url({IMGDIR}/vpopup.png) no-repeat; line-height: 999px; overflow: hidden; cursor:
  4. pointer; }   
  5. </style>


  6. <a id="vfpop_menu1" type="button" href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&reppost=$post[pid]&extra=$_G[gp_extra]&page=$page" onclick="showWindow('reply', this.href)">{lang reply}</a>

  7. <script type="text/javascript">
  8. function _showVFlink() {
  9.         if($('ft')){
  10.                 var viewPortHeight = parseInt(document.documentElement.clientHeight);
  11.                 var scrollHeight = parseInt(document.body.getBoundingClientRect().top);
  12.                 var basew = parseInt($('ft').clientWidth);
  13.                 var sw = $('vfpop_menu1').clientWidth;
  14.                 if (basew < 1000) {
  15.                         var left = parseInt(fetchOffset($('ft'))['left']);
  16.                         left = left < sw ? left * 2 - sw : left;
  17.                         $('vfpop_menu1').style.left = ( basew + left ) + 'px';
  18.                 } else {
  19.                         $('vfpop_menu1').style.left = 'auto';
  20.                         $('vfpop_menu1').style.right = 0;
  21.                 }

  22.                 if (BROWSER.ie && BROWSER.ie < 7) {
  23.                         $('vfpop_menu1').style.top = viewPortHeight - scrollHeight - 233 + 'px';
  24.                 }
  25.                 if (scrollHeight < -100) {
  26.                         $('vfpop_menu1').style.visibility = 'visible';
  27.                 } else {
  28.                         $('vfpop_menu1').style.visibility = 'hidden';
  29.                 }
  30.         }
  31. }
  32. _attachEvent(window, 'scroll', function(){_showVFlink();});

  33. </script>
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
abcnic 发表于 2012-3-28 07:44:12 | 显示全部楼层
不错的技术帖子 支持了呢
回复

使用道具 举报

→奇仁√ 发表于 2012-6-29 19:44:30 | 显示全部楼层
本帖最后由 →奇仁√ 于 2013-4-5 21:24 编辑

好方法,谢谢楼主分享!!为什么没人顶呢!!
突破智能电视论坛来过www.tupowang.cn
回复

使用道具 举报

SSAY 发表于 2012-6-29 19:51:29 | 显示全部楼层
很好,很不错!
回复

使用道具 举报

cooltanghui 发表于 2012-7-1 17:44:54 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-7-1 09:55 , Processed in 0.104573 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表