Recent Topics

1 Feb 27, 2010 20:54    

My b2evolution Version: 2.x

Hi All,

I was wondering if anybody knew how to do this. I know how to shorten the post down to a few lines with a "more..." link but I'd like to add a thumbnail if the post contains an image too.

Any ideas?

Thanks in advance.

3 May 16, 2010 01:06

Thanks for that link - always good to have extra stuff to hand. Unfortunately, I've not found anything that addresses the requirement so for now I'm just adding the picture in manually.

4 May 16, 2010 01:53

There is this image_size thingy in the core, but i dont know how exactly it works, and i am not really satisfied with it.

Other than that there are a few jquery image resize plugins out there you could make use of

5 May 16, 2010 19:34

<?php
preg_match( '~<img[^>]+?src="(.+?)"~i', $Item->content, $matches );
if( !empty( $matches[1] )
{
  echo '<img src="'.$matches[1].'" style="width:80px;" />';
}
?>

Change width to suit

¥


Form is loading...

Run your own website! – This forum is powered by b2evolution CMS, a complete engine for your website.