Saturday, May 25, 2013 9:02

Posts Tagged ‘Wordpress’

WordPress 显示摘要信息

Monday, November 30, 2009 10:57

为什么要显示摘要信息? 增加用户体验,使用户快速了解文章信息,决定是否阅读,在单位屏幕空间内显示更多的文章,减少用户不断的下拉屏幕的动作; 节省带宽,加快网站访问速度,当然,也节省了搜索引擎spider的带宽付出; 避免搜索引擎认为的“网页复制”问题。 关于第三点,很多博客默认设置为显示全文,并未受到搜索引擎“复制网页”的惩罚。显示摘要为了解决搜索引擎的“复制网页”问题,是一种“精益求精”的行为。我倒认为显示摘要信息重点是基于前面两个吧! 关于“文章列表”页面 内 容网站的结构一般是“文章列表—->文章内容”,对于搜索引擎来说,一个“无序”的“文章列表”对其索引是没有意义的,只有“文章内容”才 是有意义的。为什么要说“无序”呢?因为对于一个专题性比较强的“链接集合”,对于用户来说是有“用处”的,这体现了制作网页者的思考和整理过程。诚然, 搜索引擎对于某个关键字的SERP也提供了这样的一个“链接集合”,但是它完美吗?它只是“关键字”的集合,一个关键字可以引申很多的关键字,这要人类的 “发散性思维”或者“相关联想”加上其本身的知识结构才能做到,机器算法的搜索引擎是帮不到的。这就能搜索引擎为啥要收录那些很多链接的页面,如果它自身 有人类的智慧,早就把文章列表全部noindex。 我看到有的文章为了解决“复制网页”问题,他们建议在网页的meta里面加上robots,对这些“列表网页”加上 “follow,noindex”,意思是搜索引擎的机器人可以爬行,但不要索引这个网页,可惜百度是不支持这个的,对于中文网页来说,只能弃用这种方 式。直接在robots文件里面设置,发现很难。方法就只有一个了,对“文章列表”页采取显示摘要的方式。 Wordpress文章列表页显示摘要信息 网上有很多wordpress显示摘要信息的插件,都不是太好,如“点石博客”就采取了,他的功能主要是截取第一段作为摘要信息,这个有两大缺陷: 第一段并不能完全说明文章的内容概要,当然可以通过写手有意识地写作可以达到,但有些时候会发现特别别扭; 在摘要里面无法显示html格式的东西,如链接和图片; rss无法全文输出。 其实wordpress本身已经提供了这个功能,可以在选项Optional Excerpt里面填入相关html代码,然后在模板里面修改一下即可。这样就做到了摘要自由撰写,rss全文输出。(不推荐使用more标签,因为它不 自由,只能截前面,不能截中间或者最后的文字。) 模板修改代码示例: 要修改的三个文件: index.php 首页文件以及首页开始的上一页下一页等页面; archive.php 存档页,如按月份、分类存档等; search.php 搜索结果页。 上述页面里面遇到 <?php  the_content(__(’(more…)’)); ?> 改成 <?php if(!is_single()) { the_excerpt(); } else ...

This was posted under category: Computer Skill  |  Read Full Story  |  0 Comments

wordpress plugin Akismet

Friday, December 19, 2008 8:02

Akismet is a spam-fighting service that is different from others such as Spam Karma 2 or Bad Behavior in that it checks the content of the comment anonymously with an online server, to determine whether it is spam or not. The Akismet WordPress plugin ships with WordPress 2.0 and later by ...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments
Wordpress plugin sitemap generators

WordPress plugin sitemap generators

Sunday, November 16, 2008 23:31

[caption id="attachment_166" align="alignnone" width="219" caption="site-map"][/caption] I use two wordpress plugins to generate the sitemap. One is Google sitemap generator, the other is Dagon design sitemap generator. The former is more popular, the latter is easy to install and customize. The benefits with these ...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments

WordPress plugin Flash Video Player

Sunday, November 16, 2008 23:18

There are many video plugin for Wordpress. My recommendation is Flash Video Player. It is convenient to add youtube video by using it. [flashvideo filename=http://www.youtube.com/watch?v=sSHVQ2m1Bdk /] Here are some useful links: Please refer to the comprehensive list of options for a complete list of what is configurable for this plugin. Read the ...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments
Wordpress plugin – addbookmarks

WordPress plugin – addbookmarks

Sunday, November 16, 2008 15:49

注意,widget中的wp_addbookmarks的图片超级链接的html代码是被嵌套在<div class=”wp_addbookmarks”></div>块中。通过定义该div块的css来修改html显示效果。 如果模板不支持widget,或在除侧边栏以外放置按钮,请修改模板,在拟放置添加按钮的位置,加入如下代码。可到插件文件夹中的readme文件中复制下面代码。 [caption id="attachment_103" align="alignnone" width="300" ...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments

wordpress plugin – ThickBox

Wednesday, November 12, 2008 18:33

ThickBox is a webpage UI dialog widget written in JavaScript on top of the jQuery library.Its function is to show a single image, multiple images, inline content, iframed content, or content served through Ajax in a bybrid modal... How to Once you activate the plugin it’ll include the CSS and JavaScript for ...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments

wordpress plugin – google syntax highlighter usage

Wednesday, November 12, 2008 18:16

How to use SyntaxHighlighter. Placing the code Place your code on the page and surround it with <pre> tag. Set name attribute to code and class attribute to one of the language aliases you wish to use. <pre name="code" class="c-sharp"> ... some code here ... </pre> NOTE: ...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments

wordpress plugins

Tuesday, November 11, 2008 22:55

WP-DownloadManager It seems that the author is a student. "I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks as my school allowance, I will really appericiate it. If not ...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments