Personalized BBC

Started by Chen Zhen, June 02, 2014, 04:45:53 pm

Previous topic - Next topic

Chen Zhen

June 02, 2014, 04:45:53 pm Last Edit: December 22, 2018, 10:21:45 pm by Chen Zhen
Personalized BBC

Purpose and/or usage of this software package:

The purpose of this application is to allow an administrator the option to add personalized BBCs to a SMF forum installation. 
These BBC additions have individual permission settings to allow or restrict their usage and visibility.

Important Notation:
  This modification will only hide Personalized BBC content to specified membergroups when it is installed.
  Prior to using the SMF Large Upgrade Package it is advised to put your forum in maintenance mode
  until you are able to reinstall this modification.
  Failing to follow that procedure will allow all membergroups with appropriate board permissions
  to view all those BBC's that were normally hidden.
  The same applies when uninstalling this modification.



Recommended minimal requirements:

Server: PHP 5.3+
MYSQL 5.0+ using MyISAM or InnoDB engine
Browser: HTML5 capability
SMF Version: 2.0.X - 2.1.X



Developed for SMF forums c/o Chen Zhen
Copyright 2014, 2018 Chen Zhen @ web-develop.ca
Distributed under the CC BY-ND 4.0 License

If you commend this software package and/or any other contributions that Chen Zhen develops for the SMF community, please feel free to make a donation to paypal using the image/link provided below.
Thank you for opting to use this software package.





Features:

  • Ability to add Personalized Bulletin Board Codes
  • Permission settings for each Personalized Bulletin Board Code



Changelog:

[version 1.94]
! fixed/changed primary key for personalized_bbc table (now int auto increment)

[version 1.93]
! fixed javascript/DOM regarding addEventListener/attachEvent
! fixed improper filename for SMF 2.1 uninstall
! fixed variable variable ambiguity issue for saving BBCodes
! fixed display icons for admin list
? adjusted support website & copyright

[version 1.92]
! fixed IE compatibilty for DOM style elements
! changed window.onload to addEventListener/attachEvent

[version 1.91]
+ added javascript for optional BBCode parameters

[Version 1.9]
+ added option to enable external jQuery support (SMF 2.0.X only)

[Version 1.8]
+ added option to test bbcode within revision template
+ added onmouseover/onmouseout display events for icons in the bbcode list
+ js and css files added for use with the above additions
+ added option to enable/disable autolink
! added index.php files for the SMF 2.1 directories
! newly created bbcodes default to all allowed permissions
! disabled override for this version
! adjusted css within admin templates

[Version 1.7]
+ added option to upload images within tag settings
+ uploaded images resized to 20px x 20px dimensions
+ ../images/bbc/personalizedBBC folder not removed during uninstall to preserve uploaded images
! adjusted installer for minor issues/discrepancies
! fixed SMF 2.1 installation discrepancies

[Version 1.6]
+ mod now filters restricted bbcodes outside of posts/pm's
+ added option to allow filtering of Url entered within code input (option to conform to RFC 3986 standards)
+ added IMDb and TMDb icons
! clean_cache() function implemented for permission changes to immediately take affect
! use of un_htmlspecialchars() function for adding BBCode HTML (HTML within bbc will not function properly without this method being implemented)

[Version 1.5]
+ added SMF 2.1 support
+ includes png bbc icons for SMF 2.1 support
+ added override option for existing SMF default BBC tags
! fixed BBC button hook routine
! fixed BBC type setting for newly created tag
! various language and file changes for SMF 2.1 compatibility
! changed regex for closed tags regarding HTML5 compatibility

[Version 1.4]
+ added [Important Notation] to this readme
! changed routine for gathering SMF default BBC's
! changed routine for adjusting permissions
! max allowed BBC tag name length now 25 characters (due to display template)
! removed unnecessary filter_var() usage (regex sanitizes this variable)
! installer now includes admin icon for all custom themes
! fixed source filenames withing uninstall xml
! fixed editing of same BBC tag name from last update

[Version 1.3]
+ relays error message for characters not allowed in BBC names
! fixed existing bbc check to include BBC's not contained within $context['bbc_tags']

[Version 1.2]
! fixed images list within template and added natsort
! fixed issues regarding some inputs within templates
! fixed regex regarding permission disabled closed tags
! ensure bbc name variable(s) are lowercase
! max bbc name of 35 characters in length
! installer adjusts permission column within permissions table to 60 character max (mod-var_bbc-name_ilk)

[Version 1.1]
+ separate view & usage permission settings
! removed smcFunc escape/unescape
! natural sorting of Personalized BBC's for admin list and permissions
! checks against existing SMF default BBC's
! fixed deletion of first entry issue
! fixed check-all in admin template

[Version 1.0]
+ Initial release

GitHub: Personalized BBC Repository




Chen Zhen


Please Note:

  When updating to version 1.1 ensure to readjust permission settings for all BBC's.

Regards.

Chen Zhen

June 10, 2014, 10:30:50 pm #2 Last Edit: June 11, 2014, 09:04:29 pm by Napalm
Personalized BBC has been updated to version 1.2
Anyone using this mod if advised to update.

[pvt] Pending: change bbc table to increment id, add regex input/option
Regards.

[pvt] Pending: change bbc table to increment id, add regex input/option

[pvt2]Testing regular tag[/pvt2]

[pvt3=red]Testing tag with 1 option[/pvt3]

[pvt4=purple,18]Testing purple text with 18px font size[/pvt4]

Chen Zhen


This modification has been updated to version 1.94 as of December 14, 2018.

Quote[version 1.94]
! fixed/changed primary key for personalized_bbc table (now int auto increment)

The update allows it to once again work with the SMF 2.1 branch and also fixes an issue when using a utf8mb4 collation.