分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]

隐藏input上的文字

Posted on 2010/7/19 09:51
Posted by tinona in 默认分类, 本站原创

<style type="text/css">
input.button {
  display: block;
  margin:0;
  padding:0;
  border:0;
  width: 74px;
  height: 29px;
  overflow: hidden;
  line-height: 999px;
  text-indent: -999px;
  background: url(http://bbs.blueidea.com/images/default/reply.gif) no-repeat;
  cursor: pointer;
}
</style>
<input class="button" type="button" value="这里是有文字的" />

discuz  设置游客无法访问

Posted on 2010/7/16 09:29
Posted by tinona in 计算机, 本站原创
在common.inc.php里查找
if(isset($allowvisit) && $allowvisit == 0
上面添加:
if(!$discuz_uid && !(defined('CURSCRIPT') && in_array(CURSCRIPT, array('logging', 'wap', 'seccode','register')))) {
                $closedreason = $db->result($db->query("SELECT value FROM {$tablepre}settings WHERE variable='closedreason'"), 0);
                showmessage($closedreason ? $closedreason : 'board_closed', NULL, 'NOPERM');
}

在论坛基本设置的“论坛关闭的原因:”里填上你想填的原因,比如“本论坛不对游客开放,请先登录或注册!”,但不要选择“论坛关闭:”为“是”~否则只有管理员能看了~~
Tags:
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]