Advertisement:

Navigation

SMF Mod Site

Mod Name:
Image Floating to Left or Right BBCode
Created By:
dougiefresh
Type:
BBC
First Created:
November 22, 2014, 01:27:39 PM
Last Modified:
August 31, 2017, 11:33:54 PM
Latest Version:
1.20
Compatible With:
2.0.9, 2.0.10, 2.0.14, 2.1 Beta 3
Total Downloads:
1033

Download this mod

Image_Float_BBCode_v1.20.zip (10kB) [66]
Manual Install Instructions for SMF


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

Description:


IMAGE FLOATING TO LEFT OR RIGHT BBCODE v1.19
By Dougiefresh -> Link to Mod


Introduction
This modification adds two BBCodes to allow a user to float an image to the left or right of the text.

The two BBCodes takes these forms:
Code: [Select]
[imgleft]{url}[/imgleft]
[imgright]{url}[/imgright]
[imgleft {params}]{url}[/imgleft]
[imgright {params}]{url}[/imgright]
where {url} is the image URL and the optional acceptable parameters are:
Code: [Select]
[b]alt[/b] - Alternate text if the event that the image can't be displayed.
[b]width[/b] - Width of the image.  Expressed in pixels.
[b]height[/b] - Height of the image.  Expressed in pixels.
[b]margin[/b] - Margin around the image.  Expressed in pixels.
[b]margin-left[/b] - The image's left margin.  Expressed in pixels.
[b]margin-right[/b] - The image's right margin.  Expressed in pixels.
[b]margin-top[/b] - The image's top margin.  Expressed in pixels.
[b]margin-bottom[/b] - The image's bottom margin.  Expressed in pixels.
Except for border-style, the border parameters are optional if borders around the image is desired:
Code: [Select]
[b]border-style[/b] - [b]REQUIRED![/b] Border style.  Valid answers: [b]dotted[/b], [b]dashed[/b], [b]solid[/b], [b]double[/b], [b]groove[/b], [b]ridge[/b], [b]inset[/b], [b]outset[/b]
[b]border-width[/b] - Border width.  Expressed in pixels.
[b]border-color[/b] - Border color.  Expressed either as [b]#xxx[/b], [b]#xxxxxx[/b], [b]rbg(x,x,x)[/b], or [b]{text}[/b]

Admin Settings
This BBCode may be disabled by going into the Admin => Forum => Posts and Topics => Bulletin Board Code and unchecking the bbcodes you don't want to use.  You may also be uninstall this mod in order to disable it.

Compatibility Notes
This mod was tested on SMF 2.0.10, but should work on SMF 2.1 Beta 1, as well as SMF 2.0 and up.  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.