WordPress Chinese Forums's Archiver

cqupt_tmt 发表于 2008-9-29 12:57

image-extractor显示每篇日志的第一张图片的插件!

一个可以显示每篇日志的第一张图片的插件!--image-extractor

[url=http://www.dynamick.it/image-extractor-765.html]下载地址![/url]

可是我研究了不会用,呵呵!
[url=http://www.dynamick.it/image-extractor-765.html][color=#c70b15][/color][/url] 谁用过一起交流一下![url=http://www.dynamick.it/image-extractor-765.html][color=#810081][/color][/url]

waiwai 发表于 2008-9-29 14:02

How to useImage Extractor will enable a new [b]template function[/b]. It output a complete [b]IMG tag[/b] to be inserted into your HTML code. The image source is retrieved from the [b]first image[/b] found in the current post. Here is an example showing you how to use it:
<?php
  while (have_posts()) : the_post();
    image_extractor(true, 1, 395, 0, ”, ”, ‘<div>’, ‘</div>’);
    the_excerpt();
  endwhile;
?>

The [b]syntax[/b] is:
  image_extractor($resize=false, $resize_type=1, $width=”, $height=”, $class=”, $id=”, $prefix=”, $suffix=”)

使用起来比较麻烦..

hensen 发表于 2008-9-29 14:32

good! 谢谢分享, 偶去研究一下 :)

cqupt_tmt 发表于 2008-9-29 20:30

使用说明我也看过了!但是研究好了很久也没反应!
我在怀疑是不是wp的版本问题!
因为作者自己说还没有在wp2.5.1上试过!:lol
我留言了,等着他回复!omg!
ls的研究出来告诉我哦!

scutdk 发表于 2008-9-29 21:16

研究出来了吗?

cqupt_tmt 发表于 2008-9-30 10:54

等待高手发布研究成果!
等待作者回复!

cipher4500 发表于 2008-10-1 14:45

回去研究一下,功能不错。

summermid 发表于 2008-10-2 11:04

是否只是调用日志的第一张图片?这样的话,要是调用大量日志的图片,恐怕效果不太好,毕竟要载入N多张原图
我是用不同插件做出的显示每篇日志第一张图片的效果:[url]http://news.galden.org/[/url]
先自动将第一张图片保存到本地,然后另一个插件会根据日志的第一张图片生成一个指定尺寸的缩略图

cqupt_tmt 发表于 2008-10-2 11:35

ls的效果不错!介绍下杂弄的啊?:lol

summermid 发表于 2008-10-2 14:51

插件组合 Auto_Save_Image + Post Thumb Revisited
Post Thumb Revisited是自动生成日志第一张图片的缩略图的插件,可以自定义缩略图大小、样式、质量和格式
不过我这里不能正常读取外部图片(不知插件原先是否是这样设置的),所以又要用到Auto_Save_Image,将图片保存到本地
我修改了一下,只保存第一张图片以提高发布时的速度
若是个人使用,而且图片都是存在本地的,就不用Auto_Save_Image插件
像我那个是多用户型,为了傻瓜化就要用组合了

cqupt_tmt 发表于 2008-10-2 18:51

我试用了一下Post Thumb Revisited,插件启用在设置里多了一项post thumb,但是点击后一片空白!我用的是wp2.5.1 插件是[url]http://www.alakhnor.com/post-thumb/?page_id=6[/url]
这里地址里的current development version,因为其他版本在启用Post Thumb Plugins是报错!

summermid,请问你的[url]http://news.galden.org/[/url]中实现这样的效果你是插入了那些代码!
能详细指导下吗?我对代码不精通!呵呵!谢谢了!:lol

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.