文章关于 ‘wordpress’ 分类

Dec 2009
19

Posted by: 狒狒
filed under: wordpress |
Tags:

竟然发现这个主题不支持更改永久链接,本来也是小事,可以心里就是觉得不爽,不够完美呀。发现rin-wendy可以支持,看来得再研究,研究。刚好发现firefox的debug挺好用的,试试!

 

comment(s)
Dec 2009
16

Posted by: 狒狒
filed under: wordpress |
Tags:

虽然网上有别人仿出来的情侣主题,但总觉得rin-wendy的更完美,刚好最近比较闲,于是动了自己仿的念头。没想到经过四天努力,终于仿得像模像样了,用上自己搞的主题还是挺自我感觉良好的。

screenshot

刚开始搞时,面对着空的页面发现自己竟参照着lovetheme 里的代码,写出代码,当上传预  时,看到似模似样的网样还真是好有成就感。 Read the rest of this entry »

 

comment(s)
Oct 2009
17

Posted by: 狒狒
filed under: wordpress |
Tags: Tags:

来自Automattic公司的国际化部门代表正在讲述Wordpress2.9版本带来的更新功能。该版本预计于今年晚些时候推出。

在所有wordpress的下载中,1/3是下载了本地化版本,其中又有1/3下载的是中文版。然后,1/3访问wordpress.com的流量来自非英语国家。

记事本可以加入xhtml或者html

记事本:http://wordpress.org/docs

目录功能改进,拖拽和exclude

resize rotate 对图片进行简单编辑

轻松插入flickr、youtube文件

相册可能升级到3.0之后就出现

接下来是 media overhaul

新消息 wp2.9版本在2009年晚些时候出品,新功能undelete,相当于稿件回收站

些时候出品,新功能undelete,相当于稿件回收站

 

comment(s)
Sep 2009
19

Posted by: 狒狒
filed under: wordpress |
Tags: Tags: ,

废话不多说,看下面的演示:

Color Schemes


  • Color Scheme – Blue

  • Color Scheme – Pink

  • Color Scheme – Green

  • Color Scheme – Lovender

  • Color Scheme -Yellow

  • Color Scheme – Brown.

  • Color Scheme – default clean

Home Pages


  • Home 01 - tpl_home01.php

  • Home 02 - tpl_home02.php

  • Home 03 – tpl_home03.php
  • Home 04 – tpl_home04.php

  • Home 05 - tpl_home05.php

  • Home 06 - tpl_home06.php

  • Home 07 – tpl_home07.php

  • Home 08 - tpl_home08.php

  • Home 09 - tpl_home09.php

  • Home 10 – tpl_home10.php

Sub Pages

  • Inner 1 - tpl_inner01.php

  • Inner 2 - tpl_inner02.php

  • Inner 3 – tpl_inner03.php
  • Inner 4 – tpl_inner04.php

  • Inner 5 – tpl_inner05.php

  • Inner 6 – tpl_inner06.php

  • Inner 7 – tpl_inner07.php

  • Inner 8 – tpl_inner08.php

  • Inner 9 – tpl_inner09.php

  • Inner 10 – tpl_inner10.php

  • Inner 11 – tpl_inner11.php

  • Inner 12 – tpl_inner12.php

  • Inner 13 – tpl_inner13.php

  • Inner 14 – tpl_inner14.php

  • Inner 15 – tpl_inner15.php

  • Inner 16 – tpl_inner16.php

  • Inner 17 – tpl_inner17.php

  • Inner 18 – tpl_inner18.php

  • Inner 19 – tpl_inner19.php

  • Inner 20 – tpl_inner20.php

  • Contact page

Gallery


  • Gallery 1 – tpl_gallery01.php

  • Gallery 2 – tpl_gallery02.php

  • Gallery 3 – tpl_gallery03.php

  • Gallery 4 – tpl_gallery04.php

  • Gallery 5 – tpl_gallery05.php

Product Pages


  • Product 1 – tpl_product01.php

  • Product 2 – tpl_product02.php

  • Product 3 – tpl_product03.php

  • Product 4 – tpl_product04.php

  • Product 5 – tpl_product05.php

Miscellaneous


  • Testimonials – tpl_misc01.php

  • Tabbed blocks – tpl_misc02.php

  • Slider FAQs – tpl_misc03.php

  • Slider Blocks – tpl_misc04.php

  • Sitempa – tpl_misc05.php

Magazines


  • Magazine Module 1

  • Magazine Module 2

  • Magazine Module 3
  • Magazine Module 4

  • Magazine Module 5

Headers


  • Header 1 default – header.php

  • Header 2 – header2.php

  • Header 3 – header3.php

  • Header 4 – header4.php

Sidebars


  • Sidebar 1 – tpl_sidebar1.php

  • Sidebar 2 – tpl_sidebar2.php

  • Slider 3 – tpl_sidebar3.php

  • Slider 4 – tpl_sidebar4.php

  • Sidebar 5 – tpl_sidebar5.php

 

comment(s)
Sep 2009
10

Posted by: 狒狒
filed under: wordpress |
Tags:

the_excerpt() 只调用文字不调用图像,很是不好看。今天找到一个好用的插件。

免责声明:作者对这个插件保留一切权利,您仅在个人使用时可以免费下载并使用这个插件,本人以及仲子说不为您使用此插件造成的任何后果承担责任。您使用本插件,即表示您接受这些条目。
WordPress版本要求:本插件在Wordpress2.1版以及Wordpress2.7中均测试使用正常,但不保证一定支持其它WordPress版本。您如果在使用中遇到问题,可以到插件的官方主页上提出。
** IFH安装方法 **
1、下载本插件的Zip文件,并解压
2、将插件文件夹image-for-homepage上传到插件目录中,通常是wp-content/plugins/
3、激活插件
4、在模板的首页index.php中,找到the_excerpt(),在其之前添加if (function_exists(“image_for_homepage”)){image_for_homepage(true, 1, 200, 0, ‘right’, ‘IFHL’, ‘

‘, ‘

‘); }即可

更多的调用函数可以参见:《WordPress首页显示日志缩略图插件IFH的典型调用
插件使用效果图:

Image For Homepage

*** ImageForHomepage ***

Plugin Name: Image For Homepage
插件中文名:Wordpress首页文章缩略图显示插件
插件的地址: http://www.wangzhongyuan.com/tag/image-for-homepage
描述: This WordPress Plugin can help you show image on your homepage automatically. 这个插件可以帮助您在首页里自动显示每篇文章中的第一张图片的缩略图
最新版本: 1.3
作者: Zhongyuan Wang (仲子)
作者的网站: http://www.wangzhongyuan.com/

通常在Wordpress首页如果只是显示摘要,会自动过滤掉HTML标签,从而使得页面过于单调。使用Image For Homepage(IFH)插件,能够帮助您在主页上自动显示每篇文章的第一张图片(不论这个图片是来自您的网站还是别人的网站),从而丰富首页上的内 容。本插件不会修改数据库字段,因而您不用担心数据表被修改得面目全非。同时,本插件能够自动生成缩略图缓冲文件,从而减小首页大小,提高页面打开速度。

** IFH特色&版本历史 **
2008-12-21 1.3版
1、使得创建缓存文件夹更为智能,能够自动为安装在网站某一个子目录下的Wordpress也自动生成缓存文件夹
2、缩略图质量大大提高
3、修正指定比例压缩时,上下裁剪不太合理的bug
4、修正居左调用不起作用的bug
5、新添加多个实用的函数调用参数,例如:
image_for_homepage(true, 1, 0, 200, ‘center’, ‘IFHL’, ‘

‘, ‘

‘);
center表示在首页将图片居中显示,改为right则居右显示,left居左显示;
IFHL表示给图片自动加上该文章的链接,如果改为IFHL_blank,则点击图片,是在新窗口中打开文章。
更加详细的改进介绍,可以查看《WordPress首页显示日志缩略图的插件Image For Homepage发布1.3版
在此特别感谢idea-cool的许多宝贵意见,让这个软件有了质的提高!

2008-12-14 1.0版
1、不修改数据库文件,只需一行代码即可在首页自动显示缩略图
2、不论文章中的图片是本站的,还是来自其他站点的,都能够正常显示
3、真正为首页生成缩略图,这样的好处是减小首页的体积,与首页显示“伪缩略图”相比,能够大大提升首页打开速度
4、您能够自己定制缩略图的大小,并且不会造成图片变形
5、插件默认提供“缩略图居左”,“缩略图居右”两种显示方式
6、插件安装和使用都十分简单,没有复杂的配置过程

** 高阶说明 **
1、为首页生成的缩略图缓冲在wp-content/uploads/ZhongziImageCache中,如果您的wp-content /upload/目录不具有写权限,则插件可能无法正常使用。这时,您需要手动在wp-content/uploads下创建 ZhongziImageCache目录,并为它赋予写权限。

2、如果您在模板中index.php中没有发现类似the_excerpt()的函数调用,相反,您发现the_content()的函数调用, 那说明您的首页模板中,显示的是全文,建议您将the_content()替换成the_excerpt(),并在the_excerpt()前面添加 if (function_exists(“image_for_homepage”)){image_for_homepage(true, 1, 200, 0, ‘right’, “, ‘

‘, ‘

‘); }。

3、更复杂的函数调如下:

函数的语法为:

image_for_homepage($resize=false, $resize_type=1, $width=”, $height=”, $class=”, $id=”, $prefix=”, $suffix=”)

其中:
1、 resize: 决定插件是否要为其生成实际缩略图,并将其缓冲在wp-content/uploads/ZhongziImageCache的文件夹中。true表示要,false表示不要。
2、 resize_type: 调整大小的类型,0为直接生成缩略图,不管图像是否失真;1为调整大小时,保持原有图像的特性。通常这个值为1。
3、 width: 缩略图的宽度。
4、 height: 缩略图的高度。
5、 class: 您可以指定生成的标签的class属性的值
6、 id: 您可以指定生成的标签的id属性的值
7、 prefix: 您可以指定生成的标签的前缀
8、 suffix: 您可以指定生成的标签的后缀

典型用法:
image_for_homepage(true, 1, 200, 0, ‘right’, “, ‘

‘, ‘

‘);
表示:自动为每篇文章的第一张图生成缩略图,并显示在首页上,缩略图的宽度为200,高度指定0意味着保持原来图片的比例来生成缩略图,right表示缩 略图在首页中居右显示(您可以查看含效果图的Zip压缩包中的screen.png),

以及

为img标签 的前后缀。

您可以方便的修改其中的参数,来为您的首页定制图片的显示大小以及位置,例如:
(1)首页显示每篇日志对应的缩略图高为200,宽保持比例缩小:
image_for_homepage(true, 1, 0, 200, ‘right’, “, ‘

‘, ‘

‘);

(2)首页显示每篇文章摘要对应的缩略图高为200,宽也为200,强制缩小:
image_for_homepage(true, 1, 200, 200, ‘right’, “, ‘

‘, ‘

‘);

(3)首页为每篇文章显示的图片自动居左:
image_for_homepage(true, 1, 200, 0, ‘left’, “, ‘

‘, ‘

‘);

希望您能喜欢这款插件~
转载自仲子说 [ http://www.wangzhongyuan.com/ ]
原文链接:http://www.wangzhongyuan.com/archives/536.html

 

comment(s)
Sep 2009
09

Posted by: 狒狒
filed under: wordpress |
Tags: Tags:

把style.css里面的

/* STRUCTURE ----------------------------------*/
#header {
height:65px;
margin:0 auto;
}
#content-wrap {
overflow:hidden;
height:100%;
}
#wrapper {
text-align:left;
width:840px;
margin:0 auto;
padding:0 10px;
overflow:hidden;
height:100%;
}

改成下面这段:
/* STRUCTURE ----------------------------------*/
#header {
height:65px;
margin:0 auto;
}
#content-wrap {
overflow:hidden;
height:100%!important;
height: auto;
}
#wrapper {
text-align:left;
width:840px;
margin:0 auto;
padding:0 10px;
overflow:hidden;
height:100%!important;
height: auto; /* 所有浏览器都理解这段代码 */
}

虽然首页格局全给打乱了,但是其它页面好像还算是正常。页面上虽有错误,但是勉强可以用了。算是对得起用IE6到访的访客们。把这篇文章置顶,希望有高手看到后给点修改意见,让首页恢复。
看来IE6真的是不认“%”。

 

comment(s)

文章关于 ‘wordpress’ 分类

Newer Posts