solved how to set [s] bbcode for "strikethrough" site-wide?

Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
Hello all,
I feel like I should be able to puzzle this one out myself, but I'm struggling to learn. I think this is an 'easier than most' request, so maybe a smart place to try to learn?

Our site is a "learn & practice English" site. We use strikethrough often to show that one word should be removed and a different word added in its place (or simply to show that one word should be deleted).

It's an important and frequently used WYSIWYG icon on our current Ning site.

I probably use it 25 or more times per day.

We would really like to have it be a 'click' like bold/italics/underline options are (in the WYSIWYG).

If it matters, we're using Ningja skin, and the jrdiscussion module.

We want members to have this option in the WYSIWYG 'everywhere' on our site.

Help?
Thank you
[I know that bbcode is enabled here, but the strikethrough doesn't work. Why?]

[I found this http://www.bbcode.org/implementations.php but it is not enough to help me.]


updated by @holly-dilatush: 12/25/16 11:55:46PM
SteveX
SteveX
@ultrajam
8 years ago
2,584 posts
In the ACP go to jrCore > Templates then Modify the form_editor.tpl template.
yoursite.com/core/template_modify/template=form_editor.tpl

Find the line:
    toolbar1: "formatselect | fontselect fontsizeselect forecolor {if $strong} bold{/if}{if $em} italic{/if}{if $span} underline{/if} removeformat | {if $span || $div} alignleft{/if}{if $span || $div} aligncenter{/if}{if $span || $div} alignright{/if}{if $span || $div} alignjustify |{/if}{if $ul && $li} bullist numlist |{/if}{if $div} outdent indent |{/if} undo redo | link unlink anchor pagebreak{if $table} table{/if}{if $hr} hr{/if} | code preview fullscreen{if $jrembed || $jrsmiley} |{/if}{if $jrembed} jrembed{/if}{if $jrsmiley} jrsmiley{/if}"
and add strikethrough as the first item.

Then return to the Templates page (/core/admin/templates) check the Active checkbox for that template, scroll down and save.

Then empty your browser cache and your site cache and the strikethrough button should appear as the first button in the toolbar.

Then edit the template again to put the button wherever you want it to appear.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 09/19/16 04:28:51PM
michael
@michael
8 years ago
7,714 posts
The strikethrough bbcode isnt in our system currently. We'll get it added in to the next core release.

@ultrajam's solution will get the strikethrough button to the editor though and will work in any location that the editor exists.

Docs: "Using the Template Editor"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/3183/using-the-template-editor

ACP -> MODULES -> CORE -> SYSTEM CORE -> TEMPLATES -> form_editor.tpl -> MODIFY
brian
@brian
8 years ago
10,148 posts
Michael has added to this for the next core release - we've got "news" about the next core release coming real soon :)


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
Excellent.
Joanna was excited, though, so she followed the excellent suggestion by @ultrajam, and we now see and I can use easily:
Hooray!
Onward, ho!
[We're eagerly awaiting the new release, too.]
michael
@michael
8 years ago
7,714 posts
Just to be clear, what has been added to the next version of jamroom is the bbcode strikethrough.

If you wanted that button in the editor, you still would need to have added it. We didn't add the strikethrough button to the editor as a default button. So you did the right thing if you want to have it there as a button. :)
Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
Aha. Yes. Doh! That makes sense.
It's a good thing Joanna is here to help me.
[Though I'll appreciate having the bbcode here in the forum and for support tickets, too.]
Thank you, @Michael
Strumelia
Strumelia
@strumelia
8 years ago
3,603 posts
I added it to my tinymce editor as well. :)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

Tags