wordpres安装

问候信息

/inc/user/unser-profile.php


<script type="text/javascript">
today = new Date();
    var day;
    var date;
    var hello;
    hour = new Date().getHours();
    if (hour < 6) {
        hello = ' 凌晨好! ';
    } else if (hour < 9) {
        hello = ' 早上好!';
    } else if (hour < 12) {
        hello = ' 上午好!';
    } else if (hour < 14) {
        hello = ' 中午好! ';
    } else if (hour < 17) {
        hello = ' 下午好! ';
    } else if (hour < 19) {
        hello = ' 傍晚好!';
    } else if (hour < 22) {
        hello = ' 晚上好! ';
    } else {
        hello = '夜深了! ';
    }
    function GetCookie(sName) {
        var arr = document.cookie.match(new RegExp("(^| )" + sName + "=([^;]*)(;|$)"));
        if (arr != null) {
            return unescape(arr[2])
        };
        return null;
    }
    var Guest_Name = decodeURIComponent(GetCookie('author'));
    var webUrl = webUrl;
    if (Guest_Name != "null") {
        hello = Guest_Name + ' , ' + hello + ' 欢迎回来。';
    }
    document.write(' ' + hello);</script>
<script type="text/javascript">var d, s = "";
    var x = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
    d = new Date();
    s += d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日 ";
    s += x[d.getDay()];
    document.writeln(s);</script>

文章永久链接

apache支持htaccess文件,修改httpd配置文件

'''修改AllowOverride 参数'''
<Directory "/var/www/html">
AllowOverride All
</Directory>

'''加载模块'''
#wordpress 404 model
LoadModule rewrite_module modules/mod_rewrite.so

图片文字环绕

修改style.css 中对应的类,添加float属性

.logo-site img, .logo-sites img {
    width: 50px;
    max-height: 50px;
    float: left;
}

接着修改模板文件中的menu.php文件修改描述

if ( is_front_page() || is_category() || is_home() ) : ?>
                            <?php if (zm_get_option('logos')) { ?>

                                <?php if ( zm_get_option('logo') ) { ?>
                                    <a href="<?php echo esc_url( home_url('/') ); ?>"><img src="<?php echo zm_get_option('logo'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" alt="<?php bloginfo( 'name' ); ?>" rel="home" /></a>
                                <?php } ?>

                            <a href="<?php echo esc_url( home_url('/') ); ?>"><h1 class="site-title"><?php bloginfo( 'name' ); ?>    </h1>
                            <p class="site-description">Good Ideal Power Excution<!-- <?php bloginfo( 'description' ); ?> --></p></a>
                            <? php } ?>

修改关于本站的居中选项

/* 关于本站*/
.about-img {
    text-align: center;
    background: url(http://www.zpliublog.club/wp-content/uploads/2019/03/background-300x169.png) center center no-repeat;
    background-size: cover;
    height: 120px;
    margin: 0px 0 40px 0;
}
.about-img img {
    width: 120px;
    height: auto;
    margin: 35px 0px 0 0;
    padding: 2px;
    border-radius: 50%;
    border: 2px solid #f8f8f8;
   text-align: center;
}
.about-name {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

文章特色图片

http://zmingcx.com/automatically-adds-the-characteristic-images.html

https://liuyanzhao.com/4507.html

美话标签云

注册后页面跳转

https://www.ludou.org/wordpress-do-action-after-registration.html


function auto_login_new_user( $user_id ) {
  // 用户注册后自动登录
  wp_set_current_user($user_id);
  wp_set_auth_cookie($user_id);
  // 这里跳转到 http://域名/about 页面,请根据自己的需要修改
  wp_redirect( home_url().'/wp-login.php' ); 
  exit;
}

邀请码

问题没有得到解决

https://www.itbulu.com/easy-invitation-codes.html

配图

http://www.sohu.com/a/206720121_473285

d代码高亮

https://themeforwp.net/archives/best-code-highlight-plugin/

人数统计

https://www.luoyechenfei.com/html/2630.html

文章访问次数

http://zmingcx.com/no-plugin-wordpress-reads.html

搭建SMTP邮件服务系统

https://www.liwei8090.com/3172.html

评论回复通知

在主题inc下的notify.php文件中已经存在这样的函数,注释掉就行了

http://www.kanbuchuan.com/?p=66
https://www.wpdaxue.com/comment-mail-notify.html

使用域名访问
主题