WordPress CMS 插件:Advanced Post Image

大嘴的窝棚   2008年06月26日 14:41   48 views  评论»  

This is the initial release. Advanced Post Images plugin can generate thumbnails of the first image of latest (number is set by user) posts and link back to the them.    {这是该插件的初始版本,Advanced Post Image 插件会生成最新日志(数字由用户设定)的第一张图片的缩略图,然后产生一个链回原来日志的列表。}

Installation and Usage {安装和使用}

  1. Upload the advanced-post-image.php to to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php get_post_image_list(); ?> in your templates
  4. create the folder thumb under the directory wp-content/uploads/, and set it to 777
  • 1.上传 advanced-post-image.php 到 /wp-content/plugins/ 目录下
  • 2.在插件菜单下激活插件
  • 3.在模板文件中适当的位置插入 <?php get_post_image_list(); ?> 模板函数
  • 4.在 wp-content/uploads/ 目录下创建 thumb 文件夹并将其设置为 777 

If you want to control the number, the thumb image’s width and height, you can use the following four parameters in the function <?php get_post_image_list(); ?>  {你可以使用函数 <?php get_post_image_list(); ?> 的以下四个参数}

$image_number = 10 // the image number, default is 10  
                   // 设置显示图片个数,默认为10 张
$thumb_width = 50 // the thumb image's width, default is 50px 
                  // 设置所略图的宽度,默认为 50 像素,如果为 0,则会根据高度自动修改,但是宽度和高度至少填一个
$thumb_height = 50 // the thumb image's height, default is 50px 
                   // 设置所略图的高度,默认为 50 像素,如果为 0,则会根据宽度自动修改,但是宽度和高度至少填一个
$type = "recent" // the list's type,  "recent" displays latest posts's image while "random" display random posts's image 
                // 设置列表的类型,"recent" 显示最近日志的图片, "random" 则显示随机日志的图片

You can use the ul.post-image-list CSS selector to stlye the images list. {你可以根据 ul.post-image-list 这个 CSS selector 去样式化图片列表}

  • 在网上看到PHP学习之家有关于PSOT IMAGE的有关使用说明,大家可以参考一下。 这是文章的链接

Download: Advanced Post Image Plugin   

 

欢迎您发表评论:

快速搜索栏

Ask2Links

热门标签排行

页面导航栏

历史文章索引

友情链接