News:

Wondering if this will always be free?  See why free is better.

Main Menu

Spoiler Tag

Started by AzaToth, September 20, 2005, 11:37:42 PM

Previous topic - Next topic

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:

[spoiler]
spoiled text :)
[/spoiler]

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


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


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?
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

tL0z

It doesn't work with me :(

I'm using Apollo and Portuguese language  :-\

AzaToth

#6
Quote from: tL0z on September 21, 2005, 01:07:27 PM
It doesn't work with me :(

I'm using Apollo and Portuguese language  :-\
It's probably bacause you are using portugese language I think, can you describe more the problem?
Perhaps I'm using the language templates wrong...  :-\ Perhaps someone can comment on this.

Toninho_3rd

the files seem to be corrupted, because i can't download them.

hxxp:excaliburgames.digibase.ca [nonactive] hxxp:mugenesis.mgbr.net [nonactive] hxxp:s4.invisionfree.com/Excalibur_Games/index.php [nonactive]hxxp:toninho-3rd.deviantart.com/ [nonactive]

AzaToth

Quote from: Toninho_3rd on September 21, 2005, 02:25:13 PM
the files seem to be corrupted, because i can't download them.
They behave not corrupt for me, you can't download the at all?

Toninho_3rd

Quote from: azatoth on September 21, 2005, 02:28:28 PM
They behave not corrupt for me, you can't download the at all?

i've just tried downloading with another browser and it downloaded fine..

i should have tested before posting...

hxxp:excaliburgames.digibase.ca [nonactive] hxxp:mugenesis.mgbr.net [nonactive] hxxp:s4.invisionfree.com/Excalibur_Games/index.php [nonactive]hxxp:toninho-3rd.deviantart.com/ [nonactive]

tL0z

Quote from: azatoth on September 21, 2005, 02:09:33 PM
Quote from: tL0z on September 21, 2005, 01:07:27 PM
It doesn't work with me :(

I'm using Apollo and Portuguese language  :-\
It's probably bacause you are using portugese language I think, can you describe more the problem?
Perhaps I'm using the language templates wrong...  :-\ Perhaps someone can comment on this.

The tag doesn't work and there's nothing in the current theme panel :(
Could you please make a portuguese version?

AzaToth

#11
Quote from: tL0z on September 21, 2005, 03:06:02 PM
The tag doesn't work and there's nothing in the current theme panel :(
Could you please make a portuguese version?
The theme-dependent files are:
languages/index.english.php
languages/Themes.english.php
Settings.template.php
style.css

I understand that you don't get any new entry in current theme panel if Settings.template.php is redefined in apollo. But the spoilers should be rendered anyway.

Edit: Just tried and installed apollo on my test-forum, and it works fine
Edit2: Tried with portugese and are confirming that the messages are not shown, this is because portugese is overriding the english words...

Toninho_3rd

#12
ok.. now it is a actual bug...

if i select the "hover" option, the message that appears on the spoiler is "click to show hide".

check for your self:

hxxp:excaliburgames.digibase.ca/forum/index.php?topic=5.new#new [nonactive]

BTW, same thing happens on default theme.

hxxp:excaliburgames.digibase.ca [nonactive] hxxp:mugenesis.mgbr.net [nonactive] hxxp:s4.invisionfree.com/Excalibur_Games/index.php [nonactive]hxxp:toninho-3rd.deviantart.com/ [nonactive]

tL0z

Quote from: azatoth on September 21, 2005, 03:13:26 PM
Quote from: tL0z on September 21, 2005, 03:06:02 PM
The tag doesn't work and there's nothing in the current theme panel :(
Could you please make a portuguese version?
The theme-dependent files are:
languages/index.english.php
languages/Themes.english.php
Settings.template.php
style.css

I understand that you don't get any new entry in current theme panel if Settings.template.php is redefined in apollo. But the spoilers should be rendered anyway.

Edit: Just tried and installed apollo on my test-forum, and it works fine
Edit2: Tried with portugese and are confirming that the messages are not shown, this is because portugese is overriding the english words...

Can you please make a portuguese version?

AzaToth

Quote from: Toninho_3rd on September 21, 2005, 03:21:30 PM
ok.. now it is a actual bug...

if i select the "hover" option, the message that appears on the spoiler is "click to show hide".

check for your self:

http://excaliburgames.digibase.ca/forum/index.php?topic=5.new#new

BTW, same thing happens on default theme.
Oops, bug fixed in 0.1.2

AzaToth

#15
Quote from: tL0z on September 21, 2005, 03:37:10 PM
Can you please make a portuguese version?
Made a language pack for portuguese, please try, I can't portuguese so google did the job
Edit: merged it with mod instead

AzaToth

added some language files for german, spanish and french also, not the best translation (google type) but they are there.

AzaToth

Added support fo 1.1RC1 in 0.1.5 (will still works for 1.1beta3)

Traiklin

#18
how do I go about installing this mod?

everytime I try to run the xml file it says Parse error. but there isn't anything else to run in the mod and there isn't anything that explain how to actually install it.
hxxp:www.gamingmind.com [nonactive]

AzaToth

Quote from: Traiklin on September 24, 2005, 02:55:43 PM
how do I go about installing this mod?

everytime I try to run the xml file it says Parse error. but there isn't anything else to run in the mod and there isn't anything that explain how to actually install it.
Vhat version of SMF you have?

Advertisement: