MyBB Community Forums

Full Version: Best Spoiler Plugin?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What's the best spoiler tag plugin out there?
I use http://mods.mybb.com/view/spoiler-bbcode on one of my sites for controlling the changelog posts.

Here is an example link http://www.communityplugins.com/forum/sh....php?tid=3
(2012-12-13, 11:43 PM)pavemen Wrote: [ -> ]I use http://mods.mybb.com/view/spoiler-bbcode on one of my sites for controlling the changelog posts.

Here is an example link http://www.communityplugins.com/forum/sh....php?tid=3

I saw that one, but there is no spoiler tag button in the toolbar. Any way to add that?
(2012-12-14, 05:05 PM)dalawh Wrote: [ -> ]
(2012-12-13, 11:43 PM)pavemen Wrote: [ -> ]I use http://mods.mybb.com/view/spoiler-bbcode on one of my sites for controlling the changelog posts.

Here is an example link http://www.communityplugins.com/forum/sh....php?tid=3

I saw that one, but there is no spoiler tag button in the toolbar. Any way to add that?

I dont know of any that add a button to the toolbar. its based on JS so you need to edit core files to modify it
(2012-12-14, 05:43 PM)pavemen Wrote: [ -> ]
(2012-12-14, 05:05 PM)dalawh Wrote: [ -> ]
(2012-12-13, 11:43 PM)pavemen Wrote: [ -> ]I use http://mods.mybb.com/view/spoiler-bbcode on one of my sites for controlling the changelog posts.

Here is an example link http://www.communityplugins.com/forum/sh....php?tid=3

I saw that one, but there is no spoiler tag button in the toolbar. Any way to add that?

I dont know of any that add a button to the toolbar. its based on JS so you need to edit core files to modify it

Yea, no idea how to adjust the toolbar, so I was hoping that there was a plugin that did that.
(2012-12-15, 02:31 AM)dalawh Wrote: [ -> ]
(2012-12-14, 05:43 PM)pavemen Wrote: [ -> ]
(2012-12-14, 05:05 PM)dalawh Wrote: [ -> ]
(2012-12-13, 11:43 PM)pavemen Wrote: [ -> ]I use http://mods.mybb.com/view/spoiler-bbcode on one of my sites for controlling the changelog posts.

Here is an example link http://www.communityplugins.com/forum/sh....php?tid=3

I saw that one, but there is no spoiler tag button in the toolbar. Any way to add that?

I dont know of any that add a button to the toolbar. its based on JS so you need to edit core files to modify it

Yea, no idea how to adjust the toolbar, so I was hoping that there was a plugin that did that.

Adding additional buttons to it is not that difficult especially if its based on a mycode you only have to add one line really.
Follow the guide in that thread.

http://community.mybb.com/thread-95808.html

Quote:Open jscripts/editor.js in an editor like Notepad++.

2. Search for line 214 or the following code.

{type: 'button', name: 'color', insert: 'color', dropdown: true, color_select: true, image: 'color.gif', draw_option: this.drawColorOption, options: this.colors}

3. Add a comma after the code/line and make a new line. Add into the new line the following code. I choosed for this example a spoiler button.

{type: 'button', name: 'spoiler', insert: 'spoiler', image: 'spoiler.png', title: 'Spoiler'}

4. Enter in “name” an unique name for your button, enter in “insert” the mycode to insert (without [][/]), in image the image of your button and in title the title of your button.

5. Upload now your button image to jscripts/editor_themes/YOUR_EDITOR_THEME/images/.

6. That’s it. Now your button should work.
yes it is not that hard, but its not something that can be easily done with a plugin
(2012-12-15, 03:24 PM)pavemen Wrote: [ -> ]yes it is not that hard, but its not something that can be easily done with a plugin

You said that right. I wanted to do that with my spoiler plugin and the only example I found was terribly convoluted (I think necessarily).

Maybe MyBB should address this although I have no idea how it would be done better. jmo
(2012-12-15, 01:15 PM)anori Wrote: [ -> ]
(2012-12-15, 02:31 AM)dalawh Wrote: [ -> ]
(2012-12-14, 05:43 PM)pavemen Wrote: [ -> ]
(2012-12-14, 05:05 PM)dalawh Wrote: [ -> ]
(2012-12-13, 11:43 PM)pavemen Wrote: [ -> ]I use http://mods.mybb.com/view/spoiler-bbcode on one of my sites for controlling the changelog posts.

Here is an example link http://www.communityplugins.com/forum/sh....php?tid=3

I saw that one, but there is no spoiler tag button in the toolbar. Any way to add that?

I dont know of any that add a button to the toolbar. its based on JS so you need to edit core files to modify it

Yea, no idea how to adjust the toolbar, so I was hoping that there was a plugin that did that.

Adding additional buttons to it is not that difficult especially if its based on a mycode you only have to add one line really.
Follow the guide in that thread.

http://community.mybb.com/thread-95808.html

Quote:Open jscripts/editor.js in an editor like Notepad++.

2. Search for line 214 or the following code.

{type: 'button', name: 'color', insert: 'color', dropdown: true, color_select: true, image: 'color.gif', draw_option: this.drawColorOption, options: this.colors}

3. Add a comma after the code/line and make a new line. Add into the new line the following code. I choosed for this example a spoiler button.

{type: 'button', name: 'spoiler', insert: 'spoiler', image: 'spoiler.png', title: 'Spoiler'}

4. Enter in “name” an unique name for your button, enter in “insert” the mycode to insert (without [][/]), in image the image of your button and in title the title of your button.

5. Upload now your button image to jscripts/editor_themes/YOUR_EDITOR_THEME/images/.

6. That’s it. Now your button should work.

Thank you for this. I will try this out.
(2012-12-15, 03:28 PM)Wildcard Wrote: [ -> ]
(2012-12-15, 03:24 PM)pavemen Wrote: [ -> ]yes it is not that hard, but its not something that can be easily done with a plugin

You said that right. I wanted to do that with my spoiler plugin and the only example I found was terribly convoluted (I think necessarily).

Maybe MyBB should address this although I have no idea how it would be done better. jmo

I suggested for 1.8 (which i dont think will happen anymore) is if that they did pick a fixed new editor (which tom at first said they wouldn't but now they are) that they should add the option right in the ACP to add mycodes directly to the editor toolbar by a simple click and the selection of an icon for it.

Would be an great addition to the current problem .. well the only way to do it now is literally replace the whole editor file.