b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Releases
  • Skins
  • Plugins
  • Locales
 
  • « Texturize Plugin
  • TinyMCE »

Thumbnail Plugin

Categories: Renderer Plugins, 2.x & above, Downloadable Plugin, No longer needed
This plugin or hack is no longer needed as the functionality it provides has been integrated directly into the b2evolution core or into another (bundled) plugin.

This plugin is no longer necessary for most users because similar functionality has been integrated into b2evolution's core. For more information, please read: Image Sizes

The Thumbnail Plugin allows you to set a maximum image size for your blog. Every local stored image larger than this value will be automatically resized to fit this size. Creates automatically thumbnails from images bigger than a specified size. If a lightbox2 is installed it can create automattically a lightbox-link to the original image (works also without lightbox -> than it's simply a link).

Author@tears
Last tested in version
Official page: http://sourceforge.net/projects/b2evothumbnails/

The plugin is able to automatically create a link to the original image:

  • No link to the original
  • Link to open original in a new window (default)
  • Link to open original in the same window
  • Open a lightbox with the original

The lightbox2 is included in the plugin but can be disabled if you already have installed the Lightbox Plugin. Thumbnails can be disables for single posts. All thumbnails are cached for a better performace.

Requirements

  • Plugin is tested with version 2.0.2 but should work with earlier and later versions.
  • GDlib must be installed.

Download

You can find the actuall version on SourceForge

Participation

It would be nice if you help to make the thumbnail plugin better. There are different ways you can help:

  • Submit bugs on SourceForge
  • Call for new features on SourceForge
  • Submit patches on SourceForge

Installation

  1. Copy the thumbnail_plugin to the plugin folder of your b2evolution installation
  2. Login to the administative interface
  3. Install the thumbnail plugin
  4. Open the plugins properties and change the settings to the values you like
  5. If you have installed previous versions, you have to empty the items__prerendering-table. Use phpmyadmin or shell to truncate this table

Usage

Simply add images to your post like you are used to. You don't have to add special tags or attributs. The plugin runs as renderer and searches for every img-tag in your post. If the images found are larger than the maximum value defined in the plugins settings (and the image is stored on your webserver) the image will be resized.

The plugin will create a folder called <i>thumb_plugin</i> in the same folder where your original image is and creates the thumbnail in this directory. If you use mutliple folders you will get multiple <code class="codespan">thumb_plugin</code>-folders. This is to make shure the plugin has no problems with images which use the same name.

Troubleshooting

I hope this helps you with some problems ;)

Lost your thumbnails/deleted you cache?

If you have deleted your thumbcache and all thumbnails don't appear again you must simply delete the prerenderings. Simply

<!-- codeblock lang=sql line=1 --><pre class="codeblock"><code>TRUNCATE TABLE `evo_items__prerendering`</code></pre><!-- /codeblock -->

in phpmyadmin or in shell (evo_items__prerendering is default name and don't forget to make a backup). Now all posts should be renderd again and the thumbnails should be created again ;)

Copyright (C) 2007 Thomas Heger

Tags: download file available

15 comments

Comment from: Son Visitor

Son

Dont it work with 2.1.0?

2007-11-22 @ 09:08

Comment from: John Visitor

John

@Son
Yes, it should work with v2.1.0

2007-11-22 @ 09:46

Comment from: Tears Visitor

Tears

Just didn’t test it with 2.1.0… should run with every version ;)

2007-11-24 @ 22:21

Comment from: remo Visitor

remo

did not work with 2.2 version.. it opens a separate page for the picture when I added to the blog.

2008-01-01 @ 23:49

Comment from: Scribbly Visitor

Scribbly

I’ve had troubles getting this to work on 2.4 on an IIS Windows box, which doesn’t support:

'defaultvalue' => $_SERVER['DOCUMENT_ROOT']

So I hard coded it, and at least I wasn’t getting errors; but thumbnails were not being produced and the lightbox functionality was flaky.

Shame, I was keen :-(

2008-02-10 @ 14:38

Comment from: matt Visitor

matt

I have come across odd behavior in one (only) of my photos. The colors in the thumbnail get screwed up; in the full image they are fine. I save images in sRGB format.

This behavior can be seen in my blog post dated 4/13/08 (warning: nudes)

2008-04-15 @ 07:54

Comment from: Tears Visitor

Tears

Sorry it took so long, but I never looked here again - lack of time.

@ remo:
Have you set “same window” in plugins settings?

@ Scribbly:
Sorry, can’t help you with this problem - I can’t test on a IIS Windows Box, but it works on Windows XP.

@ matt:
The Plugin uses the php function “imagecreatetruecolor", I have no idea how it can effect the image color (strange, the thumbnail seem to have “realistic” colors, the original image looks much more grey). Have you deleted the thumbnail from the cache? Is it created in this color again?

Please use the bugtracker on sourceforge or the Contact-Form on my blog for further questions.

2008-08-23 @ 15:55

Comment from: Tears Visitor

Tears

Development is stopped forever! I don’t care about b2 anymore!

2008-10-19 @ 21:30

Comment from: NMcCoy Visitor

NMcCoy

Yikes, that was a bit harsh.

2008-11-18 @ 04:00

Comment from: Scribbly Visitor

Scribbly

a bit harsh and a huge shame!

2008-11-18 @ 13:47

Comment from: Tears Visitor

Tears

Waiting nearly two month for support, getting only stupid questions and nearly every feature I want to use is not available and has to be created by myself (even a useable thumbnail-function *eek*) - why should I care about b2 when Wordpress works?

2008-11-26 @ 03:17

Comment from: Jose Visitor

Jose

I think I share similar sentiments… b2evo has seen a lot of changes, but simple things like thumbnail creation is not incorporated… To be quite frank, fckeditor with its image manager would have been sufficient but b2evo devs decided to implement a file manager… seriously lack proper direction

2009-02-20 @ 09:13

Comment from: _dp Visitor

_dp

Hi

i reworked the code a bit, it seems, that some older php engine misinterpreted a few lines.

For me the plugin works fine @php5 (with generating thumbs, didnt test the gallery function yet)

you may send me a mail if i should help you with a quickfix.
if you are the author and still interested in your mod, send me a mail and i explain you how to fix this.

greetz

2009-09-15 @ 04:36

Comment from: _dp Visitor

_dp

Since this comment system doesnt want to display the mail, here is my anon-mail account: feinstaub4u@web.de

2009-09-15 @ 04:37

Comment from: english essay Visitor

english essay

didn’t work with 2.23 version

2010-05-19 @ 15:51


Form is loading...

Plugin Repository

Plugins are little PHP scripts that allow you to add features that are not (yet) built into the b2evolution core.

How to...

  • Introduction to Plugins
  • How to install a plugin (after downloading it)
  • How to make a new plugin
 Upload a plugin!
Submit your own plugin

User log in

Lost your password?
Register »

Search by keyword

Filtering options

Retain only results that match:

XML Feeds

  • RSS 2.0: Posts, Comments
  • Atom: Posts, Comments
What is RSS?

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque