Customizing SMF > Modifications and Packages

Custom BBCodes Manager

(1/44) > >>

dougiefresh:
Link to Mod

CUSTOM BBCODE MANAGER v2.7
By Dougiefresh -> Link to Mod

Introduction
This modification adds the ability to create custom Bulletin Board Code (bbcode) for your forum.

Admin Settings
The settings are found in SMF 2.0.x at:
o Admin -> Forum -> Posts and Topics -> Custom BBcode without SMF 2.1-Style Admin Menu mod installed.
o Admin -> Configuration -> Features and Options -> Custom BBcode with SMF 2.1-Style Admin Menu mod installed.

The settings are found in SMF 2.1 at:
o Admin -> Configuration -> Features and Options -> Custom BBcode

To add a custom tag, click the "Create New Tag".  You submit both the tag and upload a button for your new tag.

Image Restrictions
SMF 2.0: The image should be a 23 x 22 GIF with transparent background and no larger than 10kb.

SMF 2.1: The image should be a 16 x 16 PNG with transparent background and no larger than 10kb.

Compatibility Notes
This mod was tested on SMF 2.0.11, 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.

Translators
o Spanish Latin: Rock Lee
o Dutch: Fixit @ XPtsp.com

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.

langel:
Great mod! Thank you  :)

pgn4web:
Hello,

I started using this module: thank you very much!

It works but I believe I found a couple of small bugs:

1) I use a fairly complex "HTML used for the tag" expression and I noticed that every time I try to modify an existing tag, the "HTML used for the tag" is truncated after the "{content}" token (the rest of the code I had entered is gone). The issue probably happens when your module fetches the replacement code for the user to edit, since the full code is actually executed after properly entered (however, if you click modify then save, the truncated code is saved and the bbcode fails)

2) I coded a bbcode that could work as "unparsed content" however if I pick "unparsed content" the bbocde does not work. If I pick "unparsed equals" however the bbcode works (even if I never use the equal expression and use only the [tag] ... [/tag] expression)

3) when I pick "unparsed equals" the BBCode summary list shows my new bbcode with "Tag type" = "unparsed_equals" but with "BBCode Usage" = "[pgn=xyz]parsed content[/pgn]"; probably a typo somewhere?

Thanks for the very useful module!

dougiefresh:
Interesting bug reports.... Lemme investigate them....  Please tell me the HTML code and settings used with the attempted bbcode.  Thanks!

pgn4web:

--- Quote from: dougiefresh on September 29, 2014, 10:53:36 AM ---Please tell me the HTML code and settings used with the attempted bbcode.

--- End quote ---
It's not a trivial BBCode :-(

The description how to create the BBCode using your module (I just updated it from a previous version using the old module for smf 1.1.x) is here:
https://code.google.com/p/pgn4web/wiki/User_Notes_simplemachines [nofollow]

Here is the proof that the whole machinery actually works:
http://pgn4web-test.casaschi.net/simplemachines/ [nofollow]

Thanks!

Navigation

[0] Message Index

[#] Next page

Go to full version