webthumbs plugin

Compatible with DokuWiki

No compatibility info given!

plugin Will show a thumbnail of a website.

Last updated on
2011-02-21
Provides
Syntax

Similar to mozshot

Tagged with embed, images, links, media

This requires PHP5 to run.

Purpose

This little plugin will allow you to insert a preview of any website.

Usage

Use the following syntax to insert an image which will show a preview image of amazon.com. If you click you will be redirected to google.com

<webthumb:http://www.amazon.com|http://www.google.com>

You can also use the following syntax, if preview image and linktarget should be the same:

<webthumb:http://www.dokuwiki.org>

Hope someone likes it.

The Plugin is using a webservice for fetching the images and is not generating them.

Installation

Download the Zip-File and extract it to the folder: /lib/plugins/webthumbs/

Download Webthumbs

What's New

  • Updated Version does not longer contain an XSS vulnerability.
  • Service used for generation of Thumbnails is selectable in the Backend.

Discussion

Not working with DokuWiki-2009-02-14 ! (generates a PHP error when trying to log in, something wrong in line 25 of the script) - Greguti, April, 11, 2009)

That is strange, just checked this extension with a clean install of DokuWiki-2009-02-14. No error and everything works fine. clang
tried again, here is the error message when I refresh a page once Webthumbs is activated: “Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homez.65/greguti/www/articles/lib/plugins/webthumbs/syntax.php on line 25”. Line 25 is:
private $sWebService = "http://open.thumbshots.org/image.pxf?url=";
It seems that you are using a PHP 4.X Environment and therefore the private is not supported. Try to replace the line with on of the two alternatives:
//Alternative 1 (private removed)
$sWebService = "http://open.thumbshots.org/image.pxf?url=";
//Alternative 2 (private replaced with var)
var $sWebService = "http://open.thumbshots.org/image.pxf?url=";

Let me know if this will fix your problem.

Hey there! Thanks so much for the quick answer! Alternative 2 is the good one, works great on my website. Alternative 1 generates some PHP error. Thanks for this handy plugin!
Tons of Thanks to you!! Its awesome, I was looking for something like this from long time.

Now I can get rid of my all bookmarks: Harish :)

Is there a way to use both the services which are selectable in the backend? I find that some sites are available with and then not with the other and vice versa. Great plugin.

Currently not. But both services are generating preview images for websites they do not yet have. I think you just have to wait some time until the real preview is displayed.

WHISHES

2011-09-26 I wish an option to save the images on my DokuWiki folder, just for speed purposes. Anyway, great plugin

plugin/webthumbs.txt · Last modified: 2011/09/26 14:31 by 195.55.121.243
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate