Version: 0.01, by Kagemaru
Developer Last Online: Nov 2013
Category: BB Code Enhancements -
Version: 3.7.2
Rating:
Released: 07-03-2008
Last Update: Never
Installs: 10
Translations Is in Beta Stage
No support by the author.
What this does: These BB Codes add tags to hide text inline and in a block. I've also made a BB Code that uses an option.
Positive:
These tags allow to use hidden text inline and in blocks. Also, about anything can be used inside them (at least as far as I've tested).
Both one of the single versions and the double version can be used together. i.e: [hide] for inline and [hide=inline] or [hide=block] for both.
Negative:
After editing, the tags don't work. Refresh and they're there though. (weird :\)
At the moment, it will always post the javascript function whenever a [hide] tag is used, which can make it pretty slow if big amounts of hide tags are used on one page. I'd be glad if someone could help me with stuffing this into a plugin/product or something, to prevent that from happening.
CSS
Go to Admincp > Styles & Templates > Style Manager > Main CSS
Now scroll all the way down to Additional CSS Definitions and add:
Example: This is [hide]an inline[/hide] example! Description: This tag allows both inline and block hide to be used.
[hide=inline] = inline
[hide=block] = block Use option: Yes Remove Tags if empty: Yes
Inline BB Code only Title: hide BB Code Tag Name: hide Replacement:
Example: This is [hide]an inline[/hide] example! Description: This tag allows to hide text in the middle of a sentence. The hidden text will show on click, and is hidden on another click. Use option: No Remove Tags if empty: Yes
There are a few things you can configure (in addition to the obvious CSS ) in the Javascript directly:
At the top:
inline_title_hidden = Title of the inline region when the text is hidden.
inline_title_shown = Title of the inline region when the text is shown.
inline_text_prefix = Something that should come before the shown inline text.
block_title_hidden = Title of the block region when the text is hidden.
block_title_shown = Title of the inline region when the text is shown.
block_text_prefix = Something that should come before the shown block text.
At the bottom:
inline_text_suffix = Something that should come after the shown inline text.
block_text_suffix = Something that should come after the shown block text.
-----------------------------------------------------------------------------------
This is my first entry on VB.org, so I'm all open for fair comments.
I hope a few souls find this useful. If you do, please click install. =)
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
i there
nice mod but please let me know can i disable the click for show text for usergroups like unregistered?
i wanna hide a text for the unregistered users and disable the click for see the text, but enable it for the registered users