2012-12-03, 06:33 PM
Is [hide] ... [/hide] function available as a mod? Or any advise about how to implement the functionality? Thanks a lot.
See here to see what I mean.
I need such function to hide lengthy content for speeding up page loading.
In that site, any content inside [hide] and [/hide] will appear as a link with default text "Hidden Text", click the link can turn on and off the display of the content.
I've found some mod for that but not as simple as phpbb's solution here:
https://www.phpbb.com/customise/db/bbcod...e-t_101825
I wonder if there is a simple way of mybb that do the same thing...
I did slight modification of phpbb's code to make the bbcode work in mybb.
I need to modify the code
Or add css entry to remove the extra indention to the hidden content
Almost there:
http://math.elinkage.net/showthread.php?...82#pid2482
See here to see what I mean.
I need such function to hide lengthy content for speeding up page loading.
In that site, any content inside [hide] and [/hide] will appear as a link with default text "Hidden Text", click the link can turn on and off the display of the content.
I've found some mod for that but not as simple as phpbb's solution here:
https://www.phpbb.com/customise/db/bbcod...e-t_101825
I wonder if there is a simple way of mybb that do the same thing...
I did slight modification of phpbb's code to make the bbcode work in mybb.
I need to modify the code
<dl class="codebox"><dt><a href="javascript:void(0);" onclick="var el = this.parentNode.parentNode.getElementsByTagName('dd')[0]; var v = el.style.display != 'none'; el.style.display = v ? 'none' : 'block'; this.innerHTML = (v ? '[+]' : '[−]') + '$1'; ">[+] $1</a></dt><dd style="display: none;">$2</dd></dl>
Or add css entry to remove the extra indention to the hidden content
Almost there:
http://math.elinkage.net/showthread.php?...82#pid2482