Customizing SMF > Modifications and Packages

Spoiler Tag

(1/197) > >>

AzaToth:
Link to Mod

Spoiler Tag is a tag for including spoilers in threads.

There are three different types of spoilers to use, which can be define per theme. If a theme have not defined a type the default one will be used.

The types are:


* Default a fieldset which reveal the text when the mouse is hovering over.


* The second type is a link that reveal the text when clicked upon, and hide it again when clicked again.


* The third is simlar to the second one, but the link is replaced by a button.


* You can also have a custom title using the equals modifier.


Those are set in Current Theme in Admin Panel:


And finaly it's used like this:

--- Code: ---[spoiler]
spoiled text :)
[/spoiler]

[spoiler=title]
spoiled text :)
[/spoiler]

--- End code ---

Changelog:
0.1.7:
    * added check if some variables is set, so that your forum error log isn't filled up :/
0.1.6:
    * typo in package-info.xml
0.1.4:
    * added language support for german, spanish and french (google type of translation)
0.1.3:
    * Merged with language packs instead.
0.1.2:
    * Bug fix for idiotic bug I added in 0.1.1
0.1.1:
    * Added support for custom title.
0.1.0:
    * Changed the apperance of the button to a more normal button
0.0.9:
    * just some code cleanup ('    ' => TAB)
0.0.8:
    * Moved strings to index.english.php
0.0.7:
    * Dont remember :/

dtm.exe:
Cool mod :).

guppy:
Ya, great for movie and drama discussions  :P Er.. any chance you'ld be making one for 1.0.5?

trenchteam:
very nice! This will be useful. Since there will be no update on Anquz tag until the final, I would like to use this one! ;D

AzaToth:

--- Quote from: iwyen on September 20, 2005, 11:59:38 PM ---Ya, great for movie and drama discussions  :P Er.. any chance you'ld be making one for 1.0.5?

--- End quote ---
I don't think so, this because first there is already a basic spoiler tag for 1.0.5 using Faster Parse Code, and second the code for tags in 1.1b3 is totaly revritten than the for 1.0.5 so I can not use almost any code for 1.0.5 that's is now written.  ;D

Navigation

[0] Message Index

[#] Next page

Go to full version