Bluge webthumb integration

espenc - May 11, 2008 - 18:39

Hi, I have made a new content type with CCK for links, it is possible for visitors to contribute with their own links that must be approved before they are published. This works really well, I have made a new links view that displays links nice and tidy. But now I want to add a feature. I want automatically added webthumbs, and Ive found the bluga module that uses the bluga API.

This module prints a webthumb with the following snippet:

<?php
print bluga_webthumb('http://www.example.com', 'large');
?>

So the thing I could use some help for is, how to automatically add this little snippet to every link that is being created?

The Link contenttype has title, url and description fields, and i want to add this php snippet to it. And of course, the url inn the bluga_webthumb function must be set automatically to the same url specified by the content creator.

Any ideas?

 
 

Drupal is a registered trademark of Dries Buytaert.