annoying

Author Topic: Custom BBCode Manager v2.7  (Read 5093 times)

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 261
Custom BBCode Manager v2.7
« on: Nov 21, 2014, 07:57:24 PM »

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.
« Last Edit: Jan 09, 2016, 10:13:57 AM by dougiefresh »

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 261
Re: Custom BBCode Manager v2.1
« Reply #1 on: Nov 29, 2014, 03:02:10 PM »

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

Download Mod


FileName: Custom_BBCodes_Manager_v2.7.zip
Size: 43 kb (43,990 bytes)
MD5: 0d09dbe7e1c5a928190c7579e817ca03
Built: Feb 28, 2018, 09:30:21 AM
Downloaded 38 times

Changelog

Uploaded v2.7 - February 13th, 2018
o Updated Spanish Latin translation, courtsey of Rock Lee.
o Added translators section to README.txt.
o Added LICENSE.txt to satisfy licensing concerns.

Uploaded v2.6 - October 9th, 2017
o Added missing fields in database call in Subs-CustomBBCodeAdmin.php, as mentioned by NekoSensei.

Uploaded v2.5 - August 9th, 2017
o Readded missing database fields removed by version 2.4 update.

Uploaded v2.4 - August 7th, 2017
o Fixed edit_db.php so that database creation can occur.

Uploaded v2.3 - December 10th, 2016
o Added some code to add timestamp ONLY if htaccess rewrite rule actually works....
o Fixed undefined index error regarding permission name found in Permissions area.
o Replaced BBCode string with Name of Tag for clarity in Edit screen.

Uploaded v2.2 - September 26th, 2016
o Added Spanish Latin translation by Rock Lee [BC].

Uploaded v2.1 - December 8th, 2015
o Fixed issue where bbcode buttons do not show up on the post screen.

Uploaded v2.0 - November 29th, 2015
o Added "Create Simple Mode" to create new bbcodes using just tag, description and HTML.
o Added validation function to force content to start with "http://" or "https://" when option checked.
o Added membergroup permissions to control who can manage custom BBCodes.
o Added AJAX code to assist user in identifying pre-existing bbcode tags.
o Added AJAX code to upload or remove bbcode button images without saving the form.
o Added Javascript code so that file input box can easily be cleared.
o Added JavaScript code so that new bbcode tags with existing names cannot be submitted.
o Fixed "delete", "disable" and "modify" links on Custom BBCode list page.
o Fixed reversed image type detection based on whether mod is running under 2.0.x or 2.1.
o Fixed "bbcode_exists" function so that hook isn't removed for everybody during testing.
o Fixed image type and dimensions checking and made sure they are strictly enforced.
o Modified admin panel code so that bbcode tags are stored in lowercase letters.
o Modified button function so that button image not added to list if button image not present.
o All existing database tags are forced to lowercase.  For unknown reason, it is necessary.
o Added help language strings to clarify how the bbcode types are used.

Uploaded v1.12 - June 6th, 2015
o Fixed some issues with the code that adds and removes bbcode button images.

Uploaded v1.11 - May 1st, 2015
o Modified code to correctly reflect custom bbcode icon requirements for SMF 2.1.

Uploaded v1.10 - April 28th, 2015
o Added online version check to the Custom BBCode settings page.
o Readded install operations for SMF 2.1 so that Custom BBCode area shows up.

Uploaded v1.9 - April 24th, 2015
o Fixed package-info.xml so that it refers to the install_20x.xml file, not install.xml.

Uploaded v1.8 - April 4th, 2015
o Updated for SMF 2.1 Beta 1

Uploaded v1.7 - Febuary 13th, 2015
o Fixed undefined variable error in Subs-CustomBBCodes.php
o Fixed some undefined array elements in CustomBBcodes.php
o Fixed several issues inside the bbcode_exists function in Subs-CustomBBCodesAdmin.php

Uploaded v1.6 - Febuary 1st, 2015
o Fixed a nasty bug where existing custom BBcodes weren't allowed to be edited.
o If SMF 2.1-Style Admin Menu is installed, this mod is installed under Configuration => Feature Settings.
o Changed code so that CustomBBCode.php not loaded until actually needed....

Uploaded v1.5 - December 13th, 2014
o License change to Simplified BSD.
o Replaced the BBCode existance check using SMF's own code...
o Added Dutch translation to the mod, courtesy of Fixit...

Uploaded v1.4 - September 30th, 2014
o Fixed several bugs in code involving removing buttons from bbcodes....
o Added code to preserve the bbcode description within the database.
o Added code to remove bbcode button image from server upon deleting bbcode.

Uploaded v1.3 - September 29th, 2014
o Fixed bug that made empty bbcode entries when attempting to disable/enable bbcodes...
o Removed equal sign from bbcode in editor...

Uploaded v1.2 - September 29th, 2014
o Added code so that "parsed content" tags are recognized properly by BBcode parser.
o Fixed bug so that Custom BBCode UI properly displays HTML that the bbcode will use.

Uploaded v1.1 - September 29th, 2014
o Fixed bugs that corrupted BBcode HTML codes upon modifying the BBcode.
o Fixed typo relating to BBCode usage in the Custom BBCodes UI page.
o Added English UTF8 language file.

Uploaded v1.0 - September 13th, 2014
o Initial Release

Translations

[ You are not allowed to view attachments ]
 [ You are not allowed to view attachments ]
« Last Edit: Oct 29, 2016, 07:55:01 PM by dougiefresh »

Gedhara

  • Newbie
  • Posts: 1
Re: Custom BBCode Manager v2.1
« Reply #2 on: Jan 29, 2015, 11:38:08 PM »
Please be kind enogh to let me know whether I could make an HTML tag do that I could get my members to add ifrme videos, if so how am I to do it.

Thanks

dougiefresh

  • Adminstrator
  • Expert Member
  • *****
  • Posts: 261
Re: Custom BBCode Manager v2.1
« Reply #3 on: Feb 01, 2015, 11:08:45 AM »
I apologize for the lateness of the response, as I've been fighting with the forum trying to correct the many errors I keep getting on this newly launched forum....

To answer your question, you would create a BBCode like this:
Tag Name: iframe
Tag type: Unparsed Content
The HTML used for the tag:
Code: [Select]
<iframe src="http://www.xptsp.com/{content}" width="100%" height="400" border="0"></iframe>You can adjust the height/width, or you can make them as inputs to the bbcode. As a side note, allowing an iframe bbcode will allow anyone to link to anysite, so they could open a page with virii, malware, etc... which is why it's set up to only allow pages within a certain domain.

Usage of this new BBCode would be like this:
[iframe]{wherever on XPtsp.com you would be pulling from}[/iframe]

So if you were after http://www.xptsp.com/index.php, you would use the following:
[iframe]index.php[/iframe]
« Last Edit: Feb 01, 2015, 12:24:12 PM by dougiefresh »