Author Topic: Images with Margins and Borders v1.6  (Read 2625 times)

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 261
Images with Margins and Borders v1.6
« on: Jul 24, 2015, 04:48:48 PM »

IMAGES WITH MARGINS AND BORDERS v1.6
By Dougiefresh -> Link to Mod


Introduction
This mod adds several parameters to the "img" tag:
Quote
margin - Margin around the image.  Expressed in pixels.
margin-left - The image's left margin.  Expressed in pixels.
margin-right - The image's right margin.  Expressed in pixels.
margin-top - The image's top margin.  Expressed in pixels.
margin-bottom - The image's bottom margin.  Expressed in pixels.
Except for border-style, the border parameters are optional if borders around the image is desired:
Quote
border-style - REQUIRED! Border style.  Valid answers: dotted, dashed, solid, double, groove, ridge, inset, outset
border-width - Border width.  Expressed in pixels.
border-color - Border color.  Expressed either as #xxx, #xxxxxx, rbg(x,x,x), or {text}

Admin Settings
There are no admin settings to this mod.  To disable, you must uninstall this mod.

Compatibility Notes
This mod was tested on SMF 2.0.10, but should work on SMF 2.0 and up, as well as SMF 2.1 Beta 1 & 2.  SMF 1.x is not and will not be supported.

SMF 2.1 Beta 2 Nightly (as of Sept 4th, 2015) has corrected the flaw reported in REPORT: Potentially "Fatal Flaw" in SMF's bbcode parser, thus the operation that calls the "fix parameter order" function is ignored for those nightlies.

Changelog
The changelog has been removed and can be seen at XPtsp.com.

License
Copyright (c) 2015, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
« Last Edit: Jan 09, 2016, 10:19:05 AM by dougiefresh »

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 261
Re: Images with Margins and Borders v1.4
« Reply #1 on: Jul 24, 2015, 04:49:01 PM »

Below are some preview images of what the mod looks like when being used

Downloads


FileName: Images_With_Margins_and_Borders_v1.6.zip
Size: 7 kb (7,398 bytes)
MD5: 2e6b8592c9bd107901108a952fa7027f
Built: Aug 31, 2017, 10:44:30 PM
Downloaded 56 times

Changelog

Uploaded v1.6 - August 31st, 2017
o Fixed undefined array element error in mod.

Uploaded v1.5 - July 5th, 2017
o Added support for SMF 2.0.14.

Uploaded v1.4 - September 4th, 2015
o Operation that calls "fix parameter order" function now skipped for nightly SMF 2.1 Beta 2.

Uploaded v1.3 - August 8th, 2015
o Fixed the "fix parameter order" function so that it doesn't mangle the expected output.

Uploaded v1.2 - July 30th, 2015
o Performance increase due to modification of parse_bbc function to deal with memory issue found.

Uploaded v1.1 - July 29th, 2015
o Rewritten to make "border-style" mandatory for use with "border-width" and "border-color".
o Added "img" tag without "border-style", "border-width", or "border-color" parameters.

Uploaded v1.0 - July 24th, 2015
o Initial Release to the Public

« Last Edit: Oct 29, 2016, 08:02:27 PM by dougiefresh »