Mybb İmage Size No Plugin Mycode!
#5
I see you are using the ID tag for styling (id="imagesize"), instead of using CLASS (class="imagesize").

You do know that validation standards dictates you can only display an ID style tag once on any page, otherwise it will fail W3C validation. Try posting one or two or more images using the IMG tag in a post to see what I mean, then run that page through W3C validation service.

Use the CLASS (class="imagesize") instead, and add this to your CSS below.

.maximage {
max-width: 255px;
}

You can display a CLASS more than once on a page and it will still pass validation standards, unlike an ID. There should also be a backslash included in the IMG code to pass validation "/>".

Use this below instead.

<img onclick="javascript:window.location='$1';" src="$1" class="maximage" alt="İmage" title="Image" />

All that aside, very nice MyCode indeed. Much better than having to use a plug-in to resize external images in posts using the IMG tag, which if large would break your forum layout. I'm using it myself now.
Reply


Messages In This Thread
Mybb İmage Size No Plugin Mycode! - by Bycca - 2010-06-11, 09:37 AM
RE: Mybb İmage Size No Plugin Mycode! - by Gary Bolton - 2011-02-13, 04:22 PM
RE: Mybb İmage Size No Plugin Mycode! - by Greko - 2011-02-27, 05:35 PM
RE: Mybb İmage Size No Plugin Mycode! - by Greko - 2011-02-28, 08:42 AM
RE: Mybb İmage Size No Plugin Mycode! - by anori - 2012-04-22, 02:03 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)