Advertisement:

Author Topic: Spoiler Tag  (Read 411520 times)

Offline AzaToth

  • Jr. Member
  • **
  • Posts: 276
  • Gender: Male
Spoiler Tag
« on: September 20, 2005, 11:37:42 PM »
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: [Select]
[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 :/
« Last Edit: September 25, 2005, 07:48:37 PM by AzaToth »

Offline dtm.exe

  • SMF Hero
  • ******
  • Posts: 5,465
Re: Spoiler Tag
« Reply #1 on: September 20, 2005, 11:38:41 PM »
Cool mod :).

Offline guppy

  • Full Member
  • ***
  • Posts: 400
  • I am guppy!
Re: Spoiler Tag
« Reply #2 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?
Somewhere between belief and doubt lies faith ~ Jodi Picoult in Keeping Faith, 1999

Offline trenchteam

  • Sr. Member
  • ****
  • Posts: 901
  • Gender: Male
    • NO WALLS STANDING
Re: Spoiler Tag
« Reply #3 on: September 21, 2005, 04:07:27 AM »
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

Offline AzaToth

  • Jr. Member
  • **
  • Posts: 276
  • Gender: Male
Re: Spoiler Tag
« Reply #4 on: September 21, 2005, 10:32:14 AM »
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

Offline tL0z

  • Full Member
  • ***
  • Posts: 434
  • Gender: Male
Re: Spoiler Tag
« Reply #5 on: September 21, 2005, 01:07:27 PM »
It doesn't work with me :(

I'm using Apollo and Portuguese language  :-\

Offline AzaToth

  • Jr. Member
  • **
  • Posts: 276
  • Gender: Male
Re: Spoiler Tag
« Reply #6 on: September 21, 2005, 02:09:33 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.
« Last Edit: September 21, 2005, 02:16:06 PM by azatoth »

Offline Toninho_3rd

  • Newbie
  • *
  • Posts: 5
    • Excalibur Games
Re: Spoiler Tag
« Reply #7 on: September 21, 2005, 02:25:13 PM »
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]

Offline AzaToth

  • Jr. Member
  • **
  • Posts: 276
  • Gender: Male
Re: Spoiler Tag
« Reply #8 on: September 21, 2005, 02:28:28 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?

Offline Toninho_3rd

  • Newbie
  • *
  • Posts: 5
    • Excalibur Games
Re: Spoiler Tag
« Reply #9 on: September 21, 2005, 03:00:51 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]

Offline tL0z

  • Full Member
  • ***
  • Posts: 434
  • Gender: Male
Re: Spoiler Tag
« Reply #10 on: September 21, 2005, 03:06:02 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?

Offline AzaToth

  • Jr. Member
  • **
  • Posts: 276
  • Gender: Male
Re: Spoiler Tag
« Reply #11 on: September 21, 2005, 03:13:26 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...
« Last Edit: September 21, 2005, 03:23:19 PM by azatoth »

Offline Toninho_3rd

  • Newbie
  • *
  • Posts: 5
    • Excalibur Games
Re: Spoiler Tag
« Reply #12 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:

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

BTW, same thing happens on default theme.
« Last Edit: September 21, 2005, 03:31:18 PM by Toninho_3rd »

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]

Offline tL0z

  • Full Member
  • ***
  • Posts: 434
  • Gender: Male
Re: Spoiler Tag
« Reply #13 on: September 21, 2005, 03:37:10 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?

Offline AzaToth

  • Jr. Member
  • **
  • Posts: 276
  • Gender: Male
Re: Spoiler Tag
« Reply #14 on: September 21, 2005, 04:05:32 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

Offline AzaToth

  • Jr. Member
  • **
  • Posts: 276
  • Gender: Male
Re: Spoiler Tag
« Reply #15 on: September 21, 2005, 04:06:25 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
« Last Edit: September 21, 2005, 04:39:22 PM by azatoth »

Offline AzaToth

  • Jr. Member
  • **
  • Posts: 276
  • Gender: Male
Re: Spoiler Tag
« Reply #16 on: September 21, 2005, 07:50:56 PM »
added some language files for german, spanish and french also, not the best translation (google type) but they are there.

Offline AzaToth

  • Jr. Member
  • **
  • Posts: 276
  • Gender: Male
Re: Spoiler Tag
« Reply #17 on: September 22, 2005, 03:54:43 AM »
Added support fo 1.1RC1 in 0.1.5 (will still works for 1.1beta3)

Offline Traiklin

  • Newbie
  • *
  • Posts: 6
  • Gender: Male
    • Gamingmind.com
Re: Spoiler Tag
« Reply #18 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.
« Last Edit: September 24, 2005, 02:58:46 PM by Traiklin »
hxxp:www.gamingmind.com [nonactive]

Offline AzaToth

  • Jr. Member
  • **
  • Posts: 276
  • Gender: Male
Re: Spoiler Tag
« Reply #19 on: September 24, 2005, 03:13:09 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?