Recent Topics

1 Feb 06, 2009 21:27    

My b2evolution Version: 2.x

Hi all,

In the posts editor (in expert mode), there is a section called 'This post is linked to...'

When I link a file to a post, I can't see any effect on the post.

Can anybody explain this feature please

Thanks

2 Feb 06, 2009 21:31

Try to link an image and you'll see the difference ;)

3 Feb 06, 2009 21:33

sam2kb wrote:

Try to link an image ;)

Yeah it's cool ... sort of. When you link an image to a post b2evolution will resize the image to fit your skin (based on a param in the skin) and include it at the top of the blog post. That's the drawback to me - I can't tell it *where* to put the linked image.

Oh and you can link up to a zillion images if you want.

Oh and the resized file name is stupid because the path is stupid, but yeah it's pretty cool!

4 Feb 06, 2009 21:36

:oops: Understood

The thing is I tried with a text file ... It does not do anything

With a jpg => Much better

Thx

5 Feb 06, 2009 21:46

Oh and the resized file name is stupid because the path is stupid

Make sure you don't set image size to the one of these because Adblock Plus (Firefox extension) blocks them
88x31|120x60|120x240|120x600|125x125|234x60|392x72|400x40|468x60|470x60

I spent a few hours trying to figure out why my 400x400 image was not displayed :)

P.S. you should only care about sizes if you use b2evo 3.x, you can't define image sizes in 2.x

6 Feb 06, 2009 21:57

Interesting info sam2kb!

In my 2.* stuff I changed all the image sizes because a portrait shot will resize due to height, resulting in too skinny. So I went with "resized height is double the resize width".

So it sounds like in 3.* I'll be able to pick my sizes ... and probably still have the stupid "file dimensions" as the file's final name :( I should hack that because it is so totally wrong, but ... uh ... yeah there ain't no way I can keep up with how that stuff happens. Too smart for me!

7 Feb 06, 2009 23:11

This may be obvious, but how do you apply a specific "style" to a linked to image ?

8 Feb 06, 2009 23:15

skins/_item_content.inc.php

// Default params:
$params = array_merge( array(
		'before_images'       => '<div class="bImages">',
		'before_image'        => '<div class="image_block">',
		'before_image_legend' => '<div class="image_legend">',
		'after_image_legend'  => '</div>',
		'after_image'         => '</div>',
		'after_images'        => '</div>',
		'image_size'	      => 'fit-400x320',
		'before_url_link'     => '<p class="post_link">'.T_('Link:').' ',
		'after_url_link'      => '</p>',
		'before_more_link'    => '<p class="bMore">',
		'after_more_link'     => '</p>',
		'more_link_text'      => '#',
	), $params );

9 Feb 06, 2009 23:21

Solved.
It generates a class named "bImages" which just needs to be added to the CSS as ".bImages img"

10 Feb 06, 2009 23:27

Thanks Sam2kb, I just went with editing the css :)


Form is loading...