Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Where is the spoiler button?
Rajio
✭
I'm running Beta 2 of Vanilla, and my forum is using HTML formatting. I have buttonbar and the spoilers addons enabled but i'm not seeing a spoiler button on my button bar when i go to leave a comment. any suggestions? I'm sure im missing something obvious here.
0
Comments
it is disabled in buttonbar.. you can make the button appear by commmenting out lines in buttonbar.js that say ButtonBar.DisableButton that refer to spoiler.
and the spoiler plugin is out of date. then your next step is to fix spoiler plugin itself
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
haha sounds like i should just avoid this mess alltogether for now.
thanks peregrine. again. ill try what you suggeste to see if i can get it working to my liking.
what you can do if you use Html as your main formatting, and bbcode just for the spoiler part.
it is kind of a kluge.
change
to
change
// ButtonBar.DisableButton(ButtonBarObj, 'spoiler');
then you will have a ? option in your buttonbar that you click on.
it will insert
tags around your selected text. and you will have show and hide spoiler.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
although the same basic problem was here
https://github.com/vanillaforums/Garden/issues/1581 which was closed
you can look at this http://vanillaforums.org/discussion/comment/181005/#Comment_181005
for an attached zip - BUT DON"T use the js in the zip, since the js has probably been updated with other changes. But it does show the updates I made above in its context. If you can understand all that.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
here is an example how to add pullquote addon to your buttonbar.
same basic idea as doing the quotes.
http://vanillaforums.org/discussion/25726/to-add-this-to-you-buttonbar
and you can do the same thing for anything you want that put [] tags around a word - like premhide plugin.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@Rajio, did you succeed?
Just took a short look, that plugin is in the Vanilla github repo and the JS has last been updated 10 months ago.
Any idea if that one is working with 2.1 with buttonbar + Markdown + Emotify?
Seems the list of things I want to check once I finally have some time left is getting longer by the day...
C'mon, well, does it.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Will report back once I've tried it.
It's working!
The Spoiler plugin from github is v1.2 and is working as intended on Vanilla 2.1. See it in my test installation
>>> here <<<
To make the Spoiler button show up in ButtonBar with Markdown, the following patch as instructed by @hgtonight is needed:
reference to patch discussed here:
http://vanillaforums.org/discussion/comment/195309/#Comment_195309
also could be added here:
http://vanillaforums.org/discussion/26703/plugins-themes-that-work-and-don-t-work-in-vanilla-2-1
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Done.
I wish I could say the same. I manipulated the .js and ended up with a row of 'B's in place of usable buttons. It's my own fault, no doubt about that.
if you get a row of B's, it means you introduces a js error.
check you console. and post the error and the code changes you made with error line number.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
should look like this:
around line 330
around line 627
and make sure you are using spoilers plugin from github. ver 1.2
https://github.com/vanilla/addons
the spoilers plugin is another add-on that needs to be updated in the add-ons section -since the add-ons currently is http://vanillaforums.org/addon/577/spoilers version 0.1.1
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Indeed, right now it's always best to check the github repo first.
I copied the code from spoilers.css and spoilers.js and the correct version number appears in my list of Plugins in the Dashboard.
I also modified buttonbar.js to reflect the changes @peregrine posted.
Unfortunately, the text box still lacks the spoiler button.
Please let me know if there's anything else I can offer in the way of information.
Thank you.
you are using simple html
the suggestion you asked about was related to "Markdown" not simple html.
or change your formatter to MarkDown
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
$Configuration['Garden']['InputFormatter'] = 'Markdown';
for markdown see: http://vanillaforums.org/discussion/comment/216467/#Comment_216467
@davidaprice
for html as well to make the button appear
$Configuration['Garden']['InputFormatter'] = 'Html';
line 321 needs to be commented out.
lines 516-518
or see: where I originally mentioned another way to do it.
http://vanillaforums.org/discussion/comment/204741/#Comment_204741
and make sure you are using spoilers plugin from github. ver 1.2
https://github.com/vanilla/addons
the spoilers plugin is another add-on that needs to be updated in the add-ons section -since the add-ons currently is http://vanillaforums.org/addon/577/spoilers version 0.1.1
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Ah. Showing that I'm completely out of my element.
I thought I was simply running with the defaults and that's what Markdown was. That makes sense now.
hello. i am looking to find out how to add a spoiler tag button to my forums. it can be with or without button bar.
i read all this but am still very confused. is there a simple way to do this?