Support ⇒ Dragonfly CMS v10 ⇒ custom bbcode/wysiwyg buttons? ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexDragonfly CMS v10

custom bbcode/wysiwyg buttons? Reply to topic


Thank you, that is a great step.

Edit: I'm getting 3 youtube video buttons now. I've removed the code from css.
Where else would these be generated from?

It's using the bbcode-youtube css from somewhere, but I can't find it in a text search.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

Last edited by hybrid on Thu May 10, 2018 10:00 am; edited 2 times in total


Ok, I had to remove the youtube items from poodle/javascript/bbcode.js

That got rid of the extra buttons. Now I just need to work out why the youtube tags are not being recognised any more.

Edit:
I had to reinstate the $bb_regex in my theme bbcode.inc for the tags to be recognised again.

So I think the bbcode.inc in the module may not be working even though I included the file from my own bbcode.inc.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

Last edited by hybrid on Thu May 10, 2018 11:12 am; edited 2 times in total


Your themes/mustang/bbcode.inc should only contain
<?php include_once 'modules/bbcode/bbcode.inc';
DON'T:
- use your previous themes/mustang/bbcode.inc
- modify includes/poodle/javascript/bbcode.js (use the original of Dragonfly CMS)
- modify themes/default/style/bbcode.css (use the original of Dragonfly CMS)

That's why i made this module, so you don't have to modify core files Wink

OR:
- keep your modified themes/mustang/theme.php
- modify modules/bbcode/javascript/bbcode.js to disable/enable the features you want.

OR:
- modify themes/mustang/theme.php to use themes/mustang/javascript/wysiwyg.js

BUG:
Yes, i've noticed a bug where the module is not working.
This is fixed now in 10.0.48.9410

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

Last edited by DJ Maze on Thu May 10, 2018 9:34 pm; edited 2 times in total


Yes I figured that this would replace the need to modify core files, which is good.
I just had to find all the files I had modified to make it work previously Big grin

I will try the new version today and remove the $bb_regex from my theme again, thanks.

Edit: seems to be fixed!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

Last edited by hybrid on Thu May 10, 2018 11:28 pm; edited 1 time in total

All times are UTC


Jump to: