zblogauthor的简单介绍
- ZBLOG
- 2022-12-19 12:08:49
- 15
本篇文章给大家谈谈zblogauthor,以及对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。
本文目录一览:
ZBLOG置顶怎样显示摘要?
找到自己机器上备份的Z-Blog文件夹,打开LANGUAGE目录下的SimpChinese.asp文件,找到所有消息的定义,在打开模板中的b_article-istop.html文件,把原来的东西统统删除,自己按照默认的样式写出一样样式代码,代码如下:
div class="post cate#article/category/id# auth#article/author/id#"
h5 class="post-date"#article/posttime/longdate# /h5
h2 class="post-title"[#ZC_MSG051#]a href="#article/url#"#article/title#/a/h2
div class="post-body"#article/intro#/div
h5 class="post-tags"#ZC_MSG138# : #template:article_tag#/a/h5
h6 class="post-footer"
#ZC_MSG011#:#article/author/name#
|#ZC_MSG012#:#article/category/name#
|#ZC_MSG013#:#article/commnums#
|#ZC_MSG014#:#article/trackbacknums#
|#ZC_MSG130#:span id="spn#article/id#"/span
script language="JavaScript" type="text/javascript"strBatchView+="spn#article/id#=#article/id#,"/script
br/
/h6
/div
div class="post cate#article/category/id# auth#article/author/id#" h5 class="post-date"#article/posttime/longdate# /h5 h2 class="post-title"[#ZC_MSG051#]a href="#article/url#"#article/title#/a/h2 div class="post-body"#article/intro#/div h5 class="post-tags"#ZC_MSG138# : #template:article_tag#/a/h5 h6 class="post-footer" #ZC_MSG011#:#article/author/name# |#ZC_MSG012#:#article/category/name# |#ZC_MSG013#:#article/commnums# |#ZC_MSG014#:#article/trackbacknums# |#ZC_MSG130#:span id="spn#article/id#"/span script language="JavaScript" type="text/javascript"strBatchView+="spn#article/id#=#article/id#,"/script br/ /h6/div
zblog php 地图插件怎么用
1.说明
插件采用系统提供的各种接口,用来实现一些高级定制功能,让Z-BlogPHP变的更加强壮和有趣(Very Good,Very Strong.)。
2.目录及命名要求
插件是放在系统的zb_users/plugin目录下的,插件必须有自己的目录名且不与其它插件同名。
插件目录名即是插件的ID名称,系统也以此做为识别。
插件必须设定正确的plugin.xml文件,系统依赖此文件对插件进行管理。
plugin.xml文件里的”id“节点一定要设定为插件的ID名称(即插件的目录名称),这非常重要。
3.plugin.xml格式规范说明
1.样例文档
?xml version="1.0" encoding="utf-8"?
plugin version="php"
idTotoro/id
nameTotoro/name
url /url
note基于TotoroII的Z-Blog的评论及引用管理审核系统增强版。/note
description/description
pathmain.php/path
includeinclude.php/include
level1/level
author
namezsx/name
email /email
url /url
/author
source
name/name
email/email
url/url
/source
adapted130707/adapted
version1.0/version
pubdate2013-07-07/pubdate
modified2013-09-02/modified
price0/price
advanced
dependency/dependency
rewritefunctions/rewritefunctions
conflict/conflict
/advanced
sidebars
sidebar1/sidebar1
sidebar2/sidebar2
sidebar3/sidebar3
sidebar4/sidebar4
sidebar5/sidebar5
/sidebars
/plugin
我的网站wordpress主机支持伪静态设置,我还需要下载插件么?
这个问题是很简单的,因为搜索引擎比较喜欢静态的页面,觉得他是很简洁高效的,权重和收录都好一些
前一段时间有个朋友问我主机哪买的,我就介绍他去买了,是Windows主机环境的,不支持.htaccess文件,也就是不支持伪静态重写和固定链接
这样他的文章ID只能是?=一个数字了,这样他说看上去很不爽,让我帮忙找一下WordPress在Windows环境下设置固定链接伪静态的方法
然后我当然帮忙啦,为人民服务啊,而且又是微知我介绍买的主机,当时我是建议他用Zblog的,因为Zblog的SEO效果据说好一些,他又是写网赚的
2、下面就是微知找到的设置教程了:
设置WordPress在Windows主机环境下伪静态固定链接的方法:
我们都知道Linux主机支持WordPress伪静态固定链接,如果你使用的空间是Linux主机就比较简单
安装好WP程序登陆,在WordPrcess的后台点设置(Options),点固定链接(Permalinks)
这里一共有5个选项,前四个选项直接选择就可以支持,不需要特殊处理
如果你不懂标签的话,我建议你看下这个:
%year% 年份
%monthnum% 月份%day% 日期%hour% 小时
%minute% 分钟
%second% 秒
%post_id% 文章的ID
%category% 目录
%author% 作者
就像:wise-bo-ke-com,其实最后设置为%postname% 文章名,在发表文章的时候,输入文章缩略名
“Wiseboke Is A Great Blog!”那么“wiseboke-is-a-great-blog” 就是url中的文章名,中文会转化为英文或者拼音好像
对于windows主机,WP的固定链接和伪静态是不是就不能设置呢
当然不,我们看,如果你的Windows主机本身就支持伪静态,前4个选项也应该是支持的,不支持算了看下面:
第五个选择是通过404错误设置进行自定义的,相对复杂,这里我们主要说明:
第一步、新建一个记事本,在里面写入下面代码保存为txt格式,重新命名为404.php,上传到网站根目录代码:?php$qs = $_SERVER['QUERY_STRING'];
$_SERVER['REQUEST_URI'] = substr($qs, strpos($qs, ':80')+3);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
include('index.php');?第二步、到你的虚拟主机控制面板,设置404自定义错误指向404.php
第三步、进入WordPress管理后台,点击设置(Options),点击固定链接(Permalinks)
常用的设置有/%post_id%.html ,出来是网页/47.html这种格式的;还有一种是/%postname%.html,这种出来是/标题.html格式的
如果标题是中文会转码成%符号那种,有些服务器支持不太好,不能访问。建议用第一种自定义,好看而且更容易收录
如何自己设计wordpress评论列表及评论框
自己设计wordpress评论列表及评论框方法:
?php if('open' == $post-comment_status $parent_comment_status == 'open') : // 如果文章允许评论 ?
div id="comments"
?php if(have_comments()) : ?
?? ?div已有?php comments_number('0','1','%'); ?条评论 a id="to-quick-respond" style="color: #bc373a;" href="#respond"快速评论/a/div
?? ?ol id="comments-lists"?php wp_list_comments(array('callback' = 'mytheme_comment'));?/ol
?? ??php if(get_comment_pages_count()-1 == get_option('page_comments')) : // 如果条数大于规定的条数,那么就要翻页了 ?
?? ??? ?div id="comment-navi"/div
?? ??php endif; // 翻页导航结束 ?
?php endif; // 评论列表结束 ?
div id="respond"
?php if(get_option('comment_registration') !is_user_logged_in()) : //如果文章设置了必须登录才能评论 ?
?? ?你必须a href="?php wp_login_url(get_permalink()); ?"登录/a才能评论!
?php else : //文章不用登录就能评论 ?
form id="commentform" action="?php bloginfo('url'); ?/wp-comments-post.php" method="post"
?? ??php if(isset($_GET['replytocom']) $_GET['replytocom'] != '') : ?
?? ?div
?? ??? ?您正在回复?php echo comment_author($_GET['replytocom']); ?a style="color: #f00;" href="#comment-?php echo $_GET['replytocom']; ?" rel="nofollow"@?php echo $_GET['replytocom']; ?楼/a a href="?php the_permalink(); ?#comment-?php echo $_GET['replytocom']; ?" rel="nofollow"取消/a
?? ??? ?!-- 这里需要注意:由于我的主题是用我自己的方式取消回复,如果使用wordpress自己的取消按钮,请使用?php cancel_comment_reply_link('取消'); ? --
?? ?/div
?? ??php endif; ?
?? ??php if(is_user_logged_in()) : // 如果用户已经登录 ?
?? ?div亲爱的strong?php echo $user_identity; ?/strong 您已经登录啦! a href="?php echo admin_url('profile.php'); ?"修改信息/a a href="?php echo wp_logout_url(get_permalink()); ?"注销/a 赶快评论啊!/div
?? ??php elseif($comment_author != '') : // 如果用户没有登录,而之前又已经进行了评论,被记录的email信息 ?
?? ?div亲爱的strong?php echo $comment_author; ?/strong 欢迎回来!a id="toggle-comment-author-info" href="javascript:toggleCommentAuthorInfo();"?php _e('修改信息'); ?/a 留下您的回复吧/div
?? ?div id="comment-author-info" style="display: none;"input id="author" type="text" name="author" value="?php echo $comment_author; ?" /label for="author"?php _e('昵称'); ??php if ($req) echo " *"; ?/label
?? ?input id="email" type="text" name="email" value="?php echo $comment_author_email; ?" /label for="email"?php _e('邮箱'); ??php if ($req) echo " *"; ?/label
?? ?input id="url" type="text" name="url" value="?php echo $comment_author_url; ?" /label for="url"?php _e('个人主页'); ?/label/div
?? ?script type="text/javascript"
?? ?var changeMsg = '修改信息';
?? ?var closeMsg = '隐藏信息';
?? ?function toggleCommentAuthorInfo(){
?? ??? ?var $info_box = $('#comment-author-info'),$tog_btn = $('#toggle-comment-author-info');
?? ??? ?$info_box.slideToggle('slow', function(){
?? ??? ??? ?if($info_box.css('display') == 'none'){
?? ??? ??? ??? ?$tog_btn.text(changeMsg);
?? ??? ??? ?}else{
?? ??? ??? ??? ?$tog_btn.text(closeMsg);
?? ??? ??? ?}
?? ??? ?});
?? ?}
?? ?/script
?? ??php else : //既没登录,也没之前留言情况下 ?
?? ?div填写个人信息,赶快回复吧!/div
?? ?div id="comment-author-info"input id="author" type="text" name="author" value="" /label for="author"?php _e('昵称'); ??php if ($req) echo " *"; ?/label
?? ?input id="email" type="text" name="email" value="" /label for="email"?php _e('邮箱'); ??php if ($req) echo " *"; ?/label
?? ?input id="url" type="text" name="url" value="" /label for="url"?php _e('个人主页'); ?/label/div
?? ??php endif; ?
?? ?div id="comment-text"textarea id="comment" name="comment"/textarea/div
?? ?div
?? ??? ?button id="submit" name="submit" type="submit"?php _e('提交'); ?/button
?? ??? ?spana id="insert_comment_img" onclick="return insertImg('comment');" href="#"插入图片/a/span
?? ??? ??php if(function_exists('add_mail_to_comment_checkbox'))add_mail_to_comment_checkbox(); ?
?? ??? ?input type="hidden" name="redirect_to" value="?php the_permalink(); ?" /
?? ??? ??php do_action('comment_form', $post-ID); ?
?? ??? ??php comment_id_fields(); ?
?? ??? ?div/div
?? ?/div
?? ?script type="text/javascript"
?? ?// Ctrl+Enter提交评论
?? ?$(document).keypress(function(e){
?? ??? ?if(e.ctrlKey e.which == 13 || e.which == 10) {
?? ??? ??? ?$("#submit").click();
?? ??? ??? ?document.body.focus();
?? ??? ?} else if (e.shiftKey e.which==13 || e.which == 10) {
?? ??? ??? ?$("#submit").click();
?? ??? ?}
?? ?});
?? ?/script
/form?php endif; // 回复部分结束 ?
/div!-- end of #respond --
/div!-- endi of #comment --
?php endif; //如果文章允许评论的话,到这里结束
关于zblogauthor和的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。
本文由admin于2022-12-19发表在靑年PHP官网,如有疑问,请联系我们。
本文链接:https://qnphp.com/post/76709.html