Advertisement:

Author Topic: phpBB-style Font Size BBCode  (Read 5553 times)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
phpBB-style Font Size BBCode
« on: May 25, 2013, 08:19:00 PM »
Link to Mod


PHPBB FONT SIZE BBCODE v2.4
By Dougiefresh -> Link to Mod


Introduction
This modification adds the phpBB-style font size BBcode to the forum, where the parameter in the size bbcode is a percentage from 10% to 999% (without the percentage sign).

This code allows users to use size syntax like this:
Code: [Select]
[size=150][/size]
[size=150%][/size]

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.9, 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.

Changelog
The changelog can be viewed at XPtsp.com.

License
Copyright (c) 2015 - 2018, 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: January 19, 2015, 09:39:59 AM by dougiefresh »

Offline WasdMan

  • Jr. Member
  • **
  • Posts: 179
  • Gender: Male
  • SMF opposition
Re: phpBB-style Font Size BBCode
« Reply #1 on: June 01, 2013, 03:56:57 PM »
Can you send a picture about what is it really?

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,089
  • Gender: Male
    • i30 Owners Club
Re: phpBB-style Font Size BBCode
« Reply #2 on: June 01, 2013, 04:07:27 PM »
Nice and tidy mod :)

To be honest, though, it would look far better if the BBcode was presented with the % sign, like

[size=50%] This is half-sized text [/size]

rather than

[size=50] This is half-sized text [/size]


All in my own opinion, of course...

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: phpBB-style Font Size BBCode
« Reply #3 on: June 10, 2013, 01:53:10 PM »
Can you send a picture about what is it really?
I've updated the first post with additional information about the usage of the new size syntax.  I hope this helps you.

Nice and tidy mod :)

To be honest, though, it would look far better if the BBcode was presented with the % sign, like
[size=50%] This is half-sized text [/size]
rather than
[size=50] This is half-sized text [/size]
All in my own opinion, of course...
I like the idea.  It's been implemented in version 2.0 of this mod, which has been uploaded.  Thanks!

EDIT: Both the phpBB-style and the percentage sign syntax work with this mod now....  Just wanted to clarify!  :P  Enjoy!

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,089
  • Gender: Male
    • i30 Owners Club
Re: phpBB-style Font Size BBCode
« Reply #4 on: June 10, 2013, 05:07:34 PM »
Very good Dougiefresh :)

Your mod is now twice 200% the mod it first was ;)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: phpBB-style Font Size BBCode
« Reply #5 on: December 06, 2014, 04:18:50 PM »
Uploaded v2.1 - December 6th, 2014
o Added code to disable creation of the validation code if BBCode is disabled.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: phpBB-style Font Size BBCode
« Reply #6 on: January 19, 2015, 09:40:22 AM »
Uploaded v2.2 - January 19th, 2015
o License change to Simplified BSD.  No functionality change.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: phpBB-style Font Size BBCode
« Reply #7 on: April 06, 2015, 05:04:31 PM »
Uploaded v2.3 - April 4th, 2015
o Updated for SMF 2.1 Beta 1

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,820
  • Mod King
    • XPtsp.com Community
Re: phpBB-style Font Size BBCode
« Reply #8 on: October 23, 2018, 12:05:06 PM »
Uploaded v2.4 - October 23rd, 2018
o No functionality change.
o Updated documentation to point to new website.