MyBB Community Forums

Full Version: [Request] Tabs in Post Content
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
There's a plugin: ABP Tabulation and Indentation (for 1.8.x, but may work for 1.6.x if you change the compatibility value)
@Crazycat

plugin is not appropriate as I expected Sad . I want to create tabs in a post like the one on this website. and I wish it could be made not by the plugin but with MyCodes
(2013-04-10, 05:40 PM)SinhLe Wrote: [ -> ]
MyCode tabs for MyBB

1. Go to: AdminCP >> Templates >> Your Templates >> Ungrouped Templates >> headerinclude

and Add the following code just after that:
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/tabs_js/tabber.js"></script>
<link rel="stylesheet" href="{$mybb->settings['bburl']}/jscripts/tabs_js/tabber.css" type="text/css" media="screen">

<script type="text/javascript">
document.write('<style type="text/css">.tabber{display:none;}<\/style>');
</script>

Save Template.

2. Now go to: AdminCP >> Configuration >> MyCode >> Add New MyCode

and Add 2 MyCode Tabs and Tab:

2.1 Tabs:

Title *: tabs
Short Description: MyCode tabs for MyBB
Regular Expression *:
\[tabs\](.*?)\[/tabs\]
Replacement *:
<div class="tabber">$1</div>
Enabled? *: Yes
Save MyCode.

2.2 Tab:

Title *: tab
Short Description: MyCode tabs for MyBB
Regular Expression *:
\[tab=(.*?)\](.*?)\[/tab\]
Replacement *:
<div class="tabbertab">
  <h2>$1</h2>
  <p>$2</p>
</div>
Enabled? *: Yes

Save MyCode.

3. Download file Attachment, unzip and upload folder tabs_js to jscripts
4. Test

Ex:
[tabs][tab=Title for tab 1]
Content for tab 1
[/tab]
[tab=Title for tab 2]
Content for tab 2
@};-
[/tab]
[/tabs]

hello I have a problem with this MyCode, it works very well locally but when I test on the true forum

I see a message completely empty

you have a solution for my problem ? or some other way? please
Thank you SinhLe its still working perfectly in mybb 1.8.7 ^_^
and thank you .M. for give link of this thread, you always help me ^_^

[Image: 2cru8ns.jpg]

but i have a question, how to move post reply into tab "Diskusi" , is possible? hehe ^_^

(2015-07-30, 03:20 PM)badboy4life91 Wrote: [ -> ]hello I have a problem with this MyCode, it works very well locally but when I test on the true forum

I see a message completely empty

you have a solution for my problem ? or some other way? please

make sure you upload tabs_js on
/jscripts/tabs_js/tabber.js
@call911 ,Thank you for your answer

I found the problem or vien but I do not know resolve, when I activate this plugin on my forum:
http://community.mybb.com/thread-173203.html

Tabs in Post does not work (blank message) whereas when "[UA-PLUGINS] Messages - Desktop notification" is disabled, Tabs in Post works very well...

I have reported this issue to developers of UA-PLUGINS but it seems that this plugin is left has abandoned...
if anyone can find a solution for this problem I would be very happy !
Pages: 1 2 3