由于HYBBS自带头像修改每次修改完都不能实时更新,需要清除浏览器缓存才能正常显示,所以开发了一个小插件解决这个问题,插件安装开启即可使用,支持自定义用户默认头像,如果你是模板开发者使用此插件,在模板调用时请使用以下两个函数:

//请使用这两个函数
$this->avatar($uid);
M("User")->avatar($uid);
//以下函数为HYBBS内置函数插件无法替换所以不建议使用:
get_avatar($uid);//不建议使用,否则头像无法显示
HY-Editor×

插入图片

添加
    .image-list-ul{}.image-list-ul img{width:100px;height:100px;max-height: 100%;max-width: 100%;}.image-list-ul>li{width:100px;height:100px;margin-bottom:5px;border: 1px solid #CCC;float:left;margin-right:5px;list-style: none;position: relative;}.image-list-remove{position: absolute;width: 25px!important;height: 25px!important;right: 0; cursor: pointer; z-index: 1;}.image-add-li{cursor: pointer;background: #fbfbfb;display: flex;justify-content: center;align-items: center;width: 100px;height: 100px;}.image-add-li img{width:30px;height:30px}.hy-editor-upimg{display:none;position:absolute;border:1px solid #000;cursor:hand}.hy-editor-upimg span{position:absolute;left:0;top:0;width:7px;height:7px;overflow:hidden;font-size:0;display:block;background-color:#fff;border:solid 1px #000}.hy-editor-upimg .hy-editor-upimg-0{cursor:nw-resize;top:0;margin-top:-4px;left:0;margin-left:-4px}.hy-editor-upimg .hy-editor-upimg-1{cursor:n-resize;top:0;margin-top:-4px;left:50%;margin-left:-4px}.hy-editor-upimg .hy-editor-upimg-2{cursor:ne-resize;top:0;margin-top:-4px;left:100%;margin-left:-3px}.hy-editor-upimg .hy-editor-upimg-3{cursor:w-resize;top:50%;margin-top:-4px;left:0;margin-left:-4px}.hy-editor-upimg .hy-editor-upimg-4{cursor:e-resize;top:50%;margin-top:-4px;left:100%;margin-left:-3px}.hy-editor-upimg .hy-editor-upimg-5{cursor:sw-resize;top:100%;margin-top:-3px;left:0;margin-left:-4px}.hy-editor-upimg .hy-editor-upimg-6{cursor:s-resize;top:100%;margin-top:-3px;left:50%;margin-left:-4px}.hy-editor-upimg .hy-editor-upimg-7{cursor:se-resize;top:100%;margin-top:-3px;left:100%;margin-left:-3px}.hy-editor-upimg-box{position:relative;display:inline-block;width:100px;height:100px}.hy-editor-upimg-box img{width:100px;height:100px}.hy-editor-upimg-box-c{width:100px;height:100px;position:absolute;left:0;top:0;opacity:.8;border:solid 1px #b5b5b5;background-color:#fff}.hy-editor-upimg-box-progress{position:absolute;left:0;bottom:0;background-color:#2e8b57;height:2px;width:0%}.hy-editor-upimg-box-progress-text{position:absolute;left:1px;bottom:2px;right:1px;text-align:center;background:#eaeaea;opacity:.8;font-size:12px;color:#2e8b57}取消插入图片
    ×

    插入跳转链接

    当前页面打开新窗口打开关闭插入
    • sans-serif
    • 宋体
    • 微软雅黑
    • 楷体
    • 黑体
    • 隶书
    • andale mono
    • arial
    • arial black
    • comic sans ms
    • impact
    • times new roman
    • x-small
    • small
    • medium
    • large
    • x-large
    • xx-large
    • xxx-large
    • ActionScript3
    • Bash/shell
    • ColdFusion
    • C#
    • C++
    • CSS
    • Delphi
    • Diff
    • Erlang
    • Groovy
    • JavaScript
    • Java
    • JavaFX
    • Perl
    • PHP
    • Plain Text
    • PowerShell
    • Python
    • Scala
    • SQL
    • Visual Basic
    • XML/HTML
    ×

    关于本编辑器

    HY-Editor编辑器来自于 hyphp.cn 开发

    关闭还是关闭