dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on September 27, 2016, 10:00:04 PM

Title: Custom BBCodes Manager
Post by: Chip on September 27, 2016, 10:00:04 PM
http://custom.simplemachines.org/mods/index.php?mod=3699

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.

Installed and tested.

re. the "blink" BBCode > http://www.simplemachines.org/community/index.php?topic=527734.msg3892832#msg3892832

Title: Re: Custom BBCodes Manager
Post by: Chip on September 29, 2016, 05:14:03 AM
some custom ones can also be found at > https://www.phpbb.com/community/viewforum.php?f=438
Title: Re: Custom BBCodes Manager
Post by: Chip on June 29, 2018, 04:00:23 AM
ee +88 /var/www/html/Sources/Subs-CustomBBCodes.php

!a hard mistake to make (one for @dougiefresh)

from:
Code: [Select]
        if (!empty($tag['vfunc']))
to:
Code: [Select]
        if (empty($tag['vfunc']))
Title: Re: Custom BBCodes Manager
Post by: Chip on July 25, 2018, 06:42:21 PM
another bug in Sources/Subs-CustomBBCodes.php that caused me 12 errors at a time because $data is an array.

I disabled the code as i didn't really see the need for it but you may want it and be able to come up with a better solution of course.

I needed to clear the file cache (Admin > Maintenance/Forum Maintenance > Routine > Empty the file cache) after the patch.

locate:
Code: [Select]
                        if (!empty($row['accept_urls']))
                                $row['vfunc'][] = 'CustomBBCodes_URL';

change to:
Code: [Select]
// disabled bug fix     if (!empty($row['accept_urls']))
// disabled bug fix             $row['vfunc'][] = 'CustomBBCodes_URL';

NOTE: the GitHub repo version is untested but should be identical to this
Title: Re: Custom BBCodes Manager
Post by: Epeee on July 31, 2018, 04:13:17 PM
Knowledge for others very much. Thanks for the knowledge, it is very helpful to me.











เกร็ดความงาม (https://www.sale-swiss.net/ความงาม)
Title: Re: Custom BBCodes Manager
Post by: Chip on August 01, 2018, 01:59:18 PM
@Epeee, if you want to know anything about our software configuration and code then PM me anytime.

i have been configuring/programming our forum for over 3 years and it runs quite well, relatively bug free too.
Title: Re: Custom BBCodes Manager
Post by: Chip on April 16, 2021, 12:54:51 AM
Terrace Sexy House Mix



boogie shoes


content



Using my own BBCode here:

[blink]blinking[/blink]

blinking
SimplePortal 2.3.6 © 2008-2014, SimplePortal