Quote:
Originally Posted by Meta
Very nice. Works perfect. Just a little problem ...
If a user embeds an image in a post using the bbcode like this ...
HTML Code:
[img]http://zones.sphex.net/images/altona2.jpg"[/img]
... it works and the image becomes resized.
But if he uses html like this ...
HTML Code:
<img src="http://zones.sphex.net/images/altona2.jpg" />
... it doesn't work. Have been looking and testing since hours now. Maybe i missed something like "it works only with bbcode" or something like that or i missed an option.
Many thanks for the nice mod and your help!
(using highslide)
|
I can't support adding images through html. The range of things to cover, to support that, would be too long.
You need to check one by one how this lightboxes are implemented in his own homepages, to check what they add to the img tag: the a href link first with a class or a rel="lightbox" (or similar) and another class and an onlick event to the image for downsizing with ncode's javascript.
It's too much, because with all the html open to a usergroup, you can put images in many forms:
HTML Code:
<img src="http://zones.sphex.net/images/altona2.jpg" />
<img src="http://zones.sphex.net/images/altona2.jpg" alt="" />
<img src="http://zones.sphex.net/images/altona2.jpg" alt="Hello world" />
<img src="http://zones.sphex.net/images/altona2.jpg" border="0" />
<img src="http://zones.sphex.net/images/altona2.jpg" border="0" alt="" />
<img src="http://zones.sphex.net/images/altona2.jpg" border="1" alt="I have a border" />
...etc.
Sorry.
Quote:
Originally Posted by yathyo
I have solved it by adding this code to the style css:
td div.alt1 img, td div.alt2 img{display: block;}
|
Will see it in the next version

Thanks.