Link to Mod (http://mods.simplemachines.org/index.php?mod=50)
Requires FasterParsecode to be installed first.
http://mods.simplemachines.org/index.php?mod=39
This mod adds a new bbcode tag that'll hide what you wrap with it. It works with text and images. Clicking on the spoiler link, reveals the block. You can optionally add a text to the link too, ie: [spoiler=My Title]Spoiler goes here[/spoiler].
This tag can also be used for content that not everyone may want to see, like a nasty picture, for example. I thought of naming it [hide], but since many already have a spoiler tag, I decided I'd leave it at that for backwards compatibility.
Copyright 2004 by Cristian Lavaque. http://anguz.net
Very nice! Just what I wanted. Great way of presenting it too!
Thank you. :)
Quote from: akabugeyes on November 13, 2004, 07:14:20 PM
Very nice! Just what I wanted. Great way of presenting it too!
Thank you. :)
:)
Here's a couple of small screenshots: before/after clicking on the link.
this look a look tag addon, but in fact, its not the hide tag....
how i can insert hide tag for my forum ?
What does the hide tag you know do?
well...first my english is bad..ok ? lol
the hide tag is: i post a link but if you can see the text posted, you have to answer for see the link inside the post. hmm, dont know if its clear. sry for that.
spoiler is very cool indeed. but i thought it was the hide code tag.
This might be more what you are looking for. I did something similar for YaBB SE and your request sounds like that mod...
http://www.simplemachines.org/community/index.php?topic=19920
i want to use the spoiler code, but how can i create a button in the edit message for see it ?
I think adding a button to the post form would be a great idea myself. Not all of my member will remember how to use it and I would like to encourage them to use it when revealing stuff about the game.
Quote from: Mad on December 03, 2004, 07:16:30 PM
I think adding a button to the post form would be a great idea myself. Not all of my member will remember how to use it and I would like to encourage them to use it when revealing stuff about the game.
True. I'll probably add buttons for my tags in future versions. Thanks for the suggestion. :)
Does this work with 1.0? :)
Since Faster=Parse code has not been updated for v1.0, I'd say not...
Anguz, are you going to update The FasterParse Code, Table form CSV and any of the tag mods for v1.0?
Quote from: omgwtf on December 30, 2004, 01:45:16 PM
Does this work with 1.0? :)
Not tested, so I haven't released it for 1.0 yet.
Quote from: kindred on December 30, 2004, 01:54:54 PM
Anguz, are you going to update The FasterParse Code, Table form CSV and any of the tag mods for v1.0?
Of course, those and more. :)
Quote from: Anguz on December 30, 2004, 06:02:38 PMOf course, those and more. :)
... hope you find some spare time for that soon, can't wait for it ;)
very good mod, but "we" have waiting for a button for us users (sorry for my english), directly tags is ok for me and my moderators, but for my members... an icon wil be the best
I will add buttons for my tag mods.
doesnt works on smf 1.0.1
Nyx...
it requires the "faster parse code" mod to be installed first.
Since Anguz has not yet updated the faster parse code mod... this one will not install correctly yet, either.
oh, thanx
*EDIT*
Install Actions for archive FasterParsecode104.tar.gz:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
same spoiler tag :(
Like Kindred said, it hasn't been updated for this version of SMF yet ;)
fasterparse code needs to be updated, to use all of these wonderful mods! Im sure he is working on it! I want it too!~
1.01
- Updated for SMF 1.0.1
- Fixed something I believe was making it not work in the previous version, although no-one reported having a problem with it.
This is a great mod! I've been needing it for a long time. Thanks! I'll be anxious to see the image added to the other BB options. My users are also not quite all there sometimes. :D
Hi Anguz,
little problem with CSS.
The line : "background-position: right 50%;" is not correct. It's not validate with W3C and have some problem with opera and mozilla.
See that :
http://www.quirksmode.org/css/backgroundposition.html
Thanks, FaSan
Hi FaSan, I don't use that style in this mod. :P
Opsssss 8) 8) 8)
I've the old version of CSS file.... excuse me, but i don't see that. :P
FaSan
No problem. :)
Just installed the spoiler tag mod. Now my board won't even work. I might have messed something up in the process of installing it, but now all I get is:
Parse error: parse error, unexpected T_IF, expecting ')' in /home/kack/public_html/smf/Sources/Subs.php on line 847
Since I can't get back into my AdminCP, I can't unistall the mod. Is there any way to fix this or uninstall the mod without going into the AdminCP?
You can go to the Sources dir with an FTP client and if you had the option to create a backup file when installing mods, the Subs.php file will have a copy ending in a tilda (~), that's the file before installation, remove the other Subs.php and rename the tilda one without it.
Quote from: static421 on March 08, 2005, 02:27:01 PM
Parse error: parse error, unexpected T_IF, expecting ')' in /home/kack/public_html/smf/Sources/Subs.php on line 847
Are you sure it was this mod and not another one? cause the line number, if your Subs.php is like mine, is previous to the function that the mod touches.
Yeah i received the same error message on my forum after installing this mod.
Quote from: sneeks on March 10, 2005, 04:32:48 AM
Yeah i received the same error message on my forum after installing this mod.
I just installed FasterParsecode and SpoilerTag mods and it was without a problem. What versions of those mods were you using? Also, did you have other mods installed before these and which were they?
Note that if you install Custom BB Code mod and then this mod, this mod will not work at all. I had to uninstall Custom BB Code mod to get this one to work. I guess it makes sense that the 2 mods will not play nice together considering the spoiler tag is creating a custom code, which custom bb code is trying to override...
Miraenda, thanks for the feedback. Was it one of your custom tags that had the conflict with the spoiler one or simply having the mod caused the problem? Did you try installing them first Spoiler and then Custom? Let me know how it goes. :)
Hi Anguz, I installed custom tag first, then spoiler tag immediately afterward. At that point, I was then unable to use the spoiler tag (no custom tags created at all). Since I wasn't yet fully certain how to use the custom tags, I chose to remove it to see if the spoiler tag would work, and then it did. I did wonder if installing the custom tag after the spoiler would have let it work, but didn't try reinstalling it yet to see what would happen.
Hi,
is this mod (+faster parse) compatible with 1.0.3?
I still haven't tested it, so I won't say yes, but you can try. I haven't updated the package yet for SMF 1.0.3.
Just tested it. It works with 1.0.3! :)
Im using 1.0.3
I try to install the package and it tells me
Package Manager - Install Actions
Install Actions for archive SpoilerTag102.tar.gz:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
I have these mods installed. I tried to install the ModTextArea and CustomBBcode and got the same errors.
1. Visual Warning / Post Moderation 1.21 [ Uninstall ] [ List Files ] [ Delete ]
2. Message Icon Manager (Quick Reply) 1.2 [ Uninstall ] [ List Files ] [ Delete ]
3. OnLine Users Today 1.3 [ Uninstall ] [ List Files ] [ Delete ]
4. Unreplied Topics 1.02 [ List Files ] [ Delete ]
5. Excess Blank Lines 1.02 [ List Files ] [ Delete ]
6. Buddy List 1.21 [ Uninstall ] [ List Files ] [ Delete ]
7. Hide Tag 1.0 [ Uninstall ] [ List Files ] [ Delete ]
8. Donations_Mod 1.1 [ Uninstall ] [ List Files ] [ Delete ]
9. G&S_Sticky 1.1 [ Uninstall ] [ List Files ] [ Delete ]
10. Topic Ratings 1.02 [ Uninstall ] [ List Files ] [ Delete ]
11. Faster Parsecode 1.07 [ List Files ] [ Delete ]
12. Member Color Link 1.10 [ Uninstall ] [ List Files ] [ Delete ]
13. Inactive Members Groups Mover 0.5 [ Uninstall ] [ List Files ] [ Delete ]
14. Streaming 3 3.0 [ Uninstall ] [ List Files ] [ Delete ]
15. Location Mod 1.1.1 [ Uninstall ] [ List Files ] [ Delete ]
Thank you
I apologize for the lack of update to my mods, they're specified for SMF 1.0.2 still. I'll do a few for 1.0.3 now and later probably the rest. BTW, 3fifty, Streaming 3 may give you an error when trying to install FasterParsecode, since they both modify the same function, so you will need to do some manual editing most probably. VCRulez, thx for letting me know.
Quote from: Anguz on April 19, 2005, 08:17:45 PM
BTW, 3fifty, Streaming 3 may give you an error when trying to install FasterParsecode, since they both modify the same function, so you will need to do some manual editing most probably. VCRulez, thx for letting me know.
Sorry didnt mean to rush you, Im in no hurry. I just though maybe I was doing something wrong. :) Thanks for the tip on that!
I installed. Said it installed with success now I get this when I goto my forums
Parse error: parse error, unexpected T_IF, expecting ')' in /home/content/n/c/t/nctuners/html/forum/Sources/Subs.php on line 891
I removed this and the forums came back up.
// Spoiler tag.
if(isset($add['[spoiler]'])){
static $id_spoiler = 0;
$arr1[] = '~\[spoiler\](.+?)\[/spoiler\](?:<br />)?~ie';
$arr2[] = '\'<span class="spoilerheader"><a href="javascript:spoiler(\\\'spoiler\' . $id_spoiler . \'\\\');">\' . $txt[\'spoilerheader\'] . \'</a></span><div id="spoiler\' . $id_spoiler++ . \'" class="spoiler" style="display: none;">$1</div>\'';
}
if(isset($add['[spoiler='])){
static $id_spoiler = 0;
$arr1[] = '~\[spoiler=(.+?)\](.+?)\[/spoiler\](?:<br />)?~ie';
$arr2[] = '\'<span class="spoilerheader"><a href="javascript:spoiler(\\\'spoiler\' . $id_spoiler . \'\\\');">\' . $txt[\'spoilerheader\'] . \': $1</a></span><div id="spoiler\' . $id_spoiler++ . \'" class="spoiler" style="display: none;">$2</div>\'';
}
Did you install FasterParsecode first?
Parse error: parse error, unexpected T_IF, expecting ')' in yadda, yadda/Sources/Subs.php on line 891
I get the same error because I was in such a hurry and DIDN'T install the faster Parse code first. How do I manually reverve this installation so I can get into the board and install the faster parser code.
me = dumb-as*
I got it. Thanks.. I deleted the Subs.php file and renamed the Subs.php~ to Subs.php.
Glad you were able to fix it. :)
how do you get it to work with other themes?
Look at the .mod file in the package and look for the modification done to index.template.php, iirc, and do that to your other theme too. Also copy the JavaScript file to your theme's dir as well.
so, just the index.template and copy the js file?
easy now (hopefully) thanks :)
Quote from: Anguz on April 26, 2005, 02:26:16 PM
Look at the .mod file in the package and look for the modification done to index.template.php, iirc, and do that to your other theme too. Also copy the JavaScript file to your theme's dir as well.
Sorry, but your mod doesn't modify index.template.php, does it ? ;)
Great mod, BTW
Ah, you're right. Well, if your theme doesn't have a script.js file, it'll use the default one I think. And then you'd need to add the styles to your styles.css file. Sorry about the mistake and glad you like the mod.
checked the mod and it seems it does nothing to the index.template file
it does changes to style.css, script.js, modifications.english, and subs.php
You'll have to forgive me sinc eI'm not THAT good at this stuff.
I installed it on my forum and it works great and installed fine. There is a problem. It seems that all my users that are running off of Firefox can't get it to work. Whereas if you are running on Internet Explorer, there is no problems... any idea what might be causing this? Some kind of setting in Firefox maybe?
One of my users said he got this error...
<bravejaf> Error: spoiler is not definedSource File: javascript:spoiler('spoiler0');Line: 1
Hmm... I hadn't seen that error before, it always worked fine in FF for me. So I went and tried it in a 1.0.3 install again and it actually gave me that error. After some search, I went to the FF Tools/Options.../Web Features. There's a pref to "Enable JavaScript" there with an Advanced button. I had all exept the last option there disabled, so I enabled them to see if it had something to do with the error, and after saving the settings and refreshing the page, the spoiler worked. Then I went back to the JS options and set them as they were before, saved and refreshed and spoiler still works. I don't know what the problem could be, but you can try telling your users having that problem, to try that.
Thanks for your help. I'll let the guys know what you said and see if that takes care of it. I'm still in the stoneage of IE. ^ ^; If they continue having problems, I'll let you know. Otherwise, great mod. Something my forum needed badly.
:)
I have just installed th emod so I could get "Spoiler Tags" for my forum, but here's the problem.
How can I get a button above the textfield,, so the members can just click there to get the code. Because I don't think people will remember the code, and I don't think all members even will realize that there's is such a function.
So I would like a button that creates the code, just like codes and such :)
And when I use the spoilertag - [*spoiler=LinkText]My Spoilerinfo[/spoiler]
the link is shown up as ": LinkText". Is there anyway I can replace the ":" with "Spoiler: "
I hope I made any sense, I'm swedish so my english isn't much to brag about.
You're right. I just haven't bothered adding the buttons for any of my bbcode tag mods so far. In Post.template.php you look for the function template_postbox and it'll be pretty plain to see where you add the button. Don't forget to have an image ready for it. ;)
Quote from: Anguz on May 24, 2005, 06:12:23 PM
You're right. I just haven't bothered adding the buttons for any of my bbcode tag mods so far. In Post.template.php you look for the function template_postbox and it'll be pretty plain to see where you add the button. Don't forget to have an image ready for it. ;)
Oh, thank you :)
And do you know how I can replace the ": my text" with "Spoiler: my text" after the code has been used?
If you're using a language other than english, you'll need to copy the language strings that the mod adds to your language's Modifications.language.php file as well.
I just installed this mod, and I have the current version of Faster Parse Code installed.
I am using SMF 1.0.3.
When I make the tag [spoiler=Test]this is a test[/spoiler]
The poast looks like Spoiler: Test but when I click the link, nothing is happening. Looking at my java errors it says:
Error: spoiler is not defined
Source File: javascript:spoiler('spoiler0');
Line: 1
That problem came up a while ago, did you read the posts in this topic regarding it? I'm afraid I'm not a JavaScript genius, so if someone else has an idea why this could be happening--other than the reason I found that other time it came up--the help would be really welcome.
I tried what you said to try and I came up with the same error.
doesn't work in 1.0.5 yet...
:) i await patiently.
yeah! spoiler tag for 1.0.5 is up!
still requires fasterparsecode, but that's done already for 1.0.5! here's the link:
http://www.simplemachines.org/community/index.php?topic=18659.msg294991#msg294991
go thank sheepy!
and here is spoiler tag for 1.0.5: (in my own webspace)
http://azuregenesis.com/share_files/SpoilerTag103_SMF105.zip
just use package manager to install :)
enjoy!
Updated Faster Parsecode, please go read about it.
http://www.simplemachines.org/community/index.php?topic=18659.msg295887#msg295887
^^ ah. :) i see. thank you for updating your mod anguz! :)
i shall remove the updated spoiler tags from myserver as well. my apologies to you. *bows*
take care and good luck! :)
NP. Thanks Azuregenesis. I'll post the updated Spoiler Tag in a moment if nothing stops me first.
oke it might be a dump question but i red al the post on this tread and i have got this question:
i use smf 1.05 and would like to use the spoiler tag but when i try to run the install of the fasterparasec code i get this "error" afther pressing apply mod - if i press proceed i do get a installed with succes but it doesn't work
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.superschaapje.nl%2Fplaatjes%2Ferror.PNG&hash=73d1795a21edac0f2e779a0cccb70b0fc7a10c43)
and i get the same error if i try to install the spoilertag with or without parasec installed
does anybody know what to do, or what i am doing wrong
Spoiler Tag won't install cause Faster Parsecode wasn't installed before. I don't know why people insist on doing it, but if you get an error when previewing the install, and you don't know well why that is and the consequences it'll have, then don't proceed! :)
The reason why Faster Parsecode is not installing is most probably because you previously installed a mod that modified the function parsecode() in Subs.php so now my mod can't find the exact code to replace. What mods do you have installed?
Quote from: Anguz on May 07, 2005, 03:40:20 AM
Hmm... I hadn't seen that error before, it always worked fine in FF for me. So I went and tried it in a 1.0.3 install again and it actually gave me that error. After some search, I went to the FF Tools/Options.../Web Features. There's a pref to "Enable JavaScript" there with an Advanced button. I had all exept the last option there disabled, so I enabled them to see if it had something to do with the error, and after saving the settings and refreshing the page, the spoiler worked. Then I went back to the JS options and set them as they were before, saved and refreshed and spoiler still works. I don't know what the problem could be, but you can try telling your users having that problem, to try that.
Did what you said and it fixed that problem. :)
Quote from: Minsc on July 08, 2005, 09:13:15 PM
Did what you said and it fixed that problem. :)
Great. :)
Quote from: Anguz on July 07, 2005, 11:42:15 AM
Spoiler Tag won't install cause Faster Parsecode wasn't installed before. I don't know why people insist on doing it, but if you get an error when previewing the install, and you don't know well why that is and the consequences it'll have, then don't proceed! :)
The reason why Faster Parsecode is not installing is most probably because you previously installed a mod that modified the function parsecode() in Subs.php so now my mod can't find the exact code to replace. What mods do you have installed?
I can't remeber installing a mod that modified subs.php
These mods i have got installed:
Enhanced Quick Reply
Download Center
SMF 1.0.5 Update Package 1.0.5
OnLine Users Today 1.2
SMF 1.0.4 Update Package 1.0.4
SMF 1.0.3 Update Package
I don't know then. Could you compare the files Subs.php from 1.0.5 with the one you have in your server and see if you find any difference in the parsecode function?
Is anyone else having trouble installing this mod? Just checking.
i have trouble with the style..
hope you can help me this is my css:
/* Normal,standard links. */
a:hover{color:#C16100;text-decoration:underline}
/* Navigation links - for the link tree. */
.nav,.nav:link,.nav:visited{color:#000000;text-decoration:none}
a.nav:hover{font-weight:bold;color:#cc3333;text-decoration:underline}
/* Tables should show empty cells. */
table{empty-cells:show}
/* By default (td,body..) use Tahoma in black. */
body,td{color:#000000;font-size:small;font-family:Verdana,arial,helvetica,serif}
/* The main body of the entire forum. */
body{background-color:#838383;margin:0px;padding:0px;background-image:url(images/bg.gif)}
/* Input boxes - just a bit smaller than normal so they align well. */
input,textarea,button{font-size:9pt;color:#000000;font-family:Verdana,arial,helvetica,serif}
/* All input elements that are checkboxes or radio buttons. */
input.check{}
/* Selects are a bit smaller,because it makes them look even better 8). */
select{font-size:8pt;font-weight:normal;color:#000000;font-family:Verdana,arial,helvetica,serif}
/* Standard horizontal rule.. ([hr],etc.) */
hr,.hrcolor{height:1px;border:0;color:#666666;background-color:#9B0000}
/* A quote, perhaps from another post. */
.quote, .spoiler
{
width: 95%;
background-color: #dcd8eb;
border-left: #808080 0px solid;
border-right: #808080 0px solid;
border-bottom: #808080 1px solid;
padding: 4px;
margin: 0px auto 8px;
color: #000000;
font-weight: bold;
}
/* Nested quotes alternating color. */
.quote .quote, .quote .quote .quote .quote, .quote .quote .quote .quote .quote .quote, .spoiler
{
background-color: #EBEBEB;
}
.quote .quote .quote, .quote .quote .quote .quote .quote, .spoiler
{
background-color: #dcd8eb;
}
/* The "Quote:" header parts... */
.quoteheader
{
width: 95%;
border-left: 0;
border-right: 0;
border-top: #808080 1px solid;
padding: 3px;
font-style: italic;
font-weight: bold;
font-size: x-small;
font-color: #4D4D4D;
margin: 8px auto 0px;
background-position: center right;
background-image: url(images/quote1.gif);
background-repeat: no-repeat;
background-color: #C5BEE3;
}
/* Nested quoteheaders alternating color. */
.quote .quoteheader, .quote .quote .quote .quoteheader, .quote .quote .quote .quote .quote .quoteheader
{
background-color: #B9B9BA;
background-position: center right;
background-image: url(images/quote2.gif);
background-repeat: no-repeat;
}
.quote .quote .quoteheader, .quote .quote .quote .quote .quoteheader
{
background-color: #C5BEE3;
}
/* A code block - maybe even PHP;). */
.code{color:#000000;background-color:#cccccc;border:1px solid #000000;padding:1px;font-family:"courier new",helvetica,"times new roman",serif;font-size:x-small;width:99%;margin:1px auto 1px auto;white-space:nowrap;overflow:auto}
/* The "Quote:" and "Code:" header parts... */
.quoteheader,.codeheader{color:#000000;text-decoration:none;font-style:normal;font-weight:bold;font-size:x-small}
/* Generally,those [?] icons. This makes your cursor a help icon. */
.help{cursor:help}
/* /me uses this a lot. (emote,try typing /me in a post.) */
.meaction{color:red}
/* The main post box - this makes it as wide as possible. */
.editor{width:96%}
/* Highlighted text - such as search results;). */
.highlight{background-color:yellow;font-weight:bold;color:black}
/* Alternating backgrounds for posts,and several other sections of the forum. */
.windowbg{color:#000000;background-color:#E1E1E1}
.windowbg2{color:#000000;background-color:#F0F0F0}
/* All the signatures used in the forum. If your forum users use Mozilla,Opera,or Safari,you might add max-height here;). */
.signature{}
/* These are used primarily for titles,but also for headers (the row that says what everything in the table is.) */
.titlebg,tr.titlebg td,.titlebg a:link,.titlebg a:visited{color:white;font-style:normal;background-color:#898989}
.titlebg a:hover{color:#dfdfdf}
/* This is used for categories,page indexes,and several other areas in the forum. */
.catbg{background-image:url(images/catbg.jpg)}
/* This is used for a category that has new posts in it... to make it light up. */
.catbg2{background-image:url(images/catbg2.jpg)}
.catbg,.catbg2{font-weight:bold;background-color:silver;color:#000000}
/* This is used for tables that have a grid/border background color (such as the topic listing.) */
.bordercolor{background-color:#828181}
/* This is used on tables that should just have a border around them. */
.tborder{border:1px solid #828181;background-color:#FFFFFF;padding:2px}
/* Default font sizes:small (8pt),normal (10pt),and large (14pt). */
.smalltext{font-size:x-small;font-family:Tahoma,arial,helvetica,serif}
.normaltext{font-size:small}
.largetext{font-size:large}
/* This is the main area of the forum,the part that's gray. */
/* And this is the bottom,where the copyright is,etc. */
#footerarea{color:black;background-color:white}
/* This is for the special header boxes on the top (user info,key stats,news box.) */
.headertitles{border:0px solid #00CC00}
.headerbodies{border:1px solid #7A7777;background-color:#EFEFEF}
.navigation{background-color:#C60000;padding-top:3px;padding-left:8px;border-bottom:1px solid Black;background-repeat:repeat-x;background-position:top;background-image:url(images/topbar_bg.gif)}
.logo{background-color:#9B0000;padding-top:3px;padding-left:8px;border-bottom:1px solid #131313}
.welcome{color:#D2D2D2;font-size:11px;text-align:right;text-transform:uppercase;padding-right:8px}
a:link,a:visited{color:#B90000;text-decoration:none}
#bodyarea,.okvir{background-color:White}
.border{background-color:#898989;border-bottom:1px solid #3F3F3F;padding:2px;padding-left:10px;color:White;font-size:11px}
.search{background-color:#A5A5A5;border:1px inset #898989;color:White}
.foot{background-color:#860000;border-bottom:1px solid #0F0F0F;color:White;font-size:10px;padding-left:2px;padding-left:10px;padding-right:10px}
#adv,.foot a,.foot a:visited{color:White}
Edit: Put code inside code tags, it's better than using the quote ones. ;) -Anguz
If you mean the nesting alternating colors, then the problem would be that you're not writting the nested spoiler selectors as you did with the quotes.
Quote from: Anguz on July 27, 2005, 04:32:21 PM
If you mean the nesting alternating colors, then the problem would be that you're not writting the nested spoiler selectors as you did with the quotes.
uhm, i have trouble adding spoiler tag in the stylesheet.
Will there be a version for 1.1 Beta 3 for both this mod and fast parsercode one? I had spoiler tag on my site when it was 1.0.5 and then when I upgraded to 1.1 Beta 3, now it isn't working (as would be expected). A few other mods have been updated even though the 1.1 series is beta as well as most the themes, so just wondered about this mod being updated too for it.
I honestly don't think I'll be updating any of my mods to 1.1 until it reaches Final. The parsecode function was re-written and so will my tags need to be to work with it, so I want the code to be as final as possible to avoid unnecessary re-writes. :-\
Does, this only work on InTERnet Explorer? I see the spoiler in IE but not in Firefox. Please advise..
It works fine for me in Firefox.
I know it may sound unfriendly but can ANYONE help me add the spoiler code in my css file?
i tried to fix it but failed several times. :( its only the css style that i cant fix.
You could be a bit more clear about how you want it to look and what is the problem you're having with it?
i cant find the lines i need to edit with the css file.
IIRC, I used the same styles as the quote classes, but you can create your own styles using the spoiler classes.
hey anguz, if you have a minute or so, could you help me fix this one? ;)
i keep getting a lot of the same kind of error. it's this one. i have around 300 pages of it :(
8: Undefined index: spoilerheader
File: Sources/Subs.php(1241) : regexp code
Line: 1
do you know what could be causing it and/or a fix?
thanks in advance! ;)
I've looked into this before, IIRC, but haven't figured it out yet, I'm sorry to say. I'll give it another go, maybe now I'll find it. :)
I think I found it. You seem to be missing the language line in your custom theme or extra language. Try this: add the following to your Modifications.language.php file
// Spoiler Tag.
$txt['spoilerheader'] = 'Spoiler';
Quote from: Anguz on August 26, 2005, 03:08:54 PM
I think I found it. You seem to be missing the language line in your custom theme or extra language. Try this: add the following to your Modifications.language.php file
// Spoiler Tag.
$txt['spoilerheader'] = 'Spoiler';
ah. perfect! that's it! one of my themes had it's own modifications.
language.php. :)
thank you! :)
:)
Hi Anguz and everyone! :D
I'm trying to make a Spoiler Tag mod for 1.1 Beta 3, but I'm stumped on increasing the spoiler ID for each <div>. Do you know how I can get it to do that in 1.1? ???
Here is my code so far: http://www.simplemachines.org/community/index.php?topic=49556.0
It's kinda messy cuz originally I wasn't planning on making it public. It also says fade because eventually I want to have the spoilers fade in, rather than just appear/disappear. 8)
Thanks :)
QuoteI'm stumped on increasing the spoiler ID for each <div>
IIRC, I used something like
$i++.
Quote from: Yonkey on September 20, 2005, 11:02:26 AM
Hi Anguz and everyone! :D
I'm trying to make a Spoiler Tag mod for 1.1 Beta 3, but I'm stumped on increasing the spoiler ID for each <div>. Do you know how I can get it to do that in 1.1? ???
Here is my code so far: http://www.simplemachines.org/community/index.php?topic=49556.0
It's kinda messy cuz originally I wasn't planning on making it public. It also says fade because eventually I want to have the spoilers fade in, rather than just appear/disappear. 8)
Thanks :)
Hehe, somehow I have alredy made a spoiler tag for 1.1b3 :-[ it's at http://mods.simplemachines.org/index.php?mod=195
Quote from: Anguz on September 20, 2005, 01:02:09 PM
IIRC, I used something like $i++.
Yeah, but 1.1 does its tags kind of weird. :P They're defined in an array called $codes[], so even though I have a $fseed++; in the
before => it seems to never increase the variable, and always keeps it at 0. :(
Quote from: azatoth on September 20, 2005, 01:15:36 PM
Hehe, somehow I have alredy made a spoiler tag for 1.1b3 :-[ it's at http://mods.simplemachines.org/index.php?mod=195
Cool azatoth! ;D Does it work with images too, or only text? ???
EDIT: Azatoth, the download link for it doesn't work. :-\
Quote from: Yonkey on September 20, 2005, 01:17:34 PM
Cool azatoth! ;D Does it work with images too, or only text? ???
It's a basic block, so why not? the mod is as follow (if you not want to download the mod :-X):
<?xml version="1.1"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>azatoth:spoiler</id>
<file name="$sourcedir/Subs.php">
<operation>
<search position="before"><![CDATA[
function parse_bbc($message, $smileys = true, $cache_id = '')
{
global $txt, $scripturl, $context, $modSettings;
static $bbc_codes = array(), $itemcodes = array(), $disabled;
]]></search>
<add><![CDATA[
global $settings;
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
array(
'tag' => 'white',
'before' => '<span style="color: white;">',
'after' => '</span>',
),
]]></search>
<add><![CDATA[
array(
'tag' => 'spoiler',
'before' => (
$settings['spoiler_tag'] == 2 ? '<div class="spoiler"><div class="spoilerheader"><input type="button" class="spoilerbutton" value="Spoiler" onClick="n = this.parentNode.parentNode.lastChild; if(n.style.display == \'none\') { n.style.display = \'block\'; } else { n.style.display = \'none\';} return false;" /> (click to show/hide)</div><div class="spoilerbody" style="display: none">' : (
$settings['spoiler_tag'] == 1 ? '<div class="spoiler"><div class="spoilerheader"><a href="javascript:void(0)" onClick="n = this.parentNode.parentNode.lastChild; if(n.style.display == \'none\') { n.style.display = \'block\'; } else { n.style.display = \'none\';} return false;"> Spoiler</a> (click to show/hide)</div><div class="spoilerbody" style="display: none">' : (
'<fieldset class="spoiler" onMouseOver="this.lastChild.style.display = \'block\';" onMouseOut="this.lastChild.style.display=\'none\'"><legend>Spoiler</legend><div class="spoilerbody" style="display: none">'
)
)
),
'after' => (
$settings['spoiler_tag'] == 2 ? '</div></div>' : (
$settings['spoiler_tag'] == 1 ? '</div></div>' : (
'</div></fieldset>'
)
)
),
'disallow_children' => array('spoiler'),
'block_level' => true,
),
]]></add>
</operation>
</file>
<file name="$themedir/style.css">
<operation>
<search position="before"><![CDATA[
.signature
{
width: 100%;
overflow: auto;
padding-bottom: 3px;
line-height: 1.3em;
}]]></search>
<add><![CDATA[
fieldset.spoiler {
border: 1px dashed gray;
}
fieldset.spoiler > legend {
font-size: 1.2em;
}
div.spoilerheader a {
font-family: sans-serif;
font-size: 1.1em;
font-weight: bold;
}
div.spoilerheader input {
font-family: sans-serif;
font-size: 1.1em;
font-weight: bold;
}
div.spoilerbody {
color: #0f0f0f;
border: 1px dotted gray;
padding: 1em;
margin: 1em;
}
fieldset.spoiler div.spoilerbody {
border: 0px;
padding: 0em;
}
]]></add>
</operation>
</file>
<file name="$themedir/languages/Themes.english.php">
<operation>
<search position="before"><![CDATA[
$txt['themeadmin_edit_preview'] = 'Preview';
]]></search>
<add><![CDATA[
$txt['spoiler_tag_label'] = 'Spoiler Tag';
$txt['spoiler_tag_desc'] = 'Default is <b>fieldOnHoverShow</b>, undefined themes will get those. Additional is <b>linkOnClickShowHide</b>, wich is a link you click on and <b>buttonOnClickShowHide</b> wich is a button you click on.';
$txt['spoiler_tag_onhoverovershow'] = 'fieldOnHoverShow';
$txt['spoiler_tag_onlinkclickshow'] = 'linkOnClickShowHide';
$txt['spoiler_tag_onbuttonclickshow'] = 'buttonOnClickShowHide';
]]></add>
</operation>
</file>
<file name="$themedir/Settings.template.php">
<operation>
<search position="before"><![CDATA[
array(
'id' => 'hide_post_group',
'label' => $txt['hide_post_group'],
'description' => $txt['hide_post_group_desc'],
),
]]></search>
<add><![CDATA[
array(
'id' => 'spoiler_tag',
'label' => $txt['spoiler_tag_label'],
'description' => $txt['spoiler_tag_desc'],
'options' => array(
0 => $txt['spoiler_tag_onhoverovershow'],
1 => $txt['spoiler_tag_onlinkclickshow'],
2 => $txt['spoiler_tag_onbuttonclickshow'],
),
),
]]></add>
</operation>
</file>
</modification>
Quote from: Yonkey on September 20, 2005, 01:17:34 PM
EDIT: Azatoth, the download link for it doesn't work. :-\
Works for me, perhaps because the mod mods havn't confimed it yet... ??? ??? ???
Thanks! I'll try it out. :)
EDIT: Ok, rather than installing the whole mod, I just used the code for the onHover, and it rocks! ;D For those interested, here's it in action: http://www.kqix.com/forum/index.php?topic=2727.msg116647#msg116647
Thanks again, azatoth! :D
umm I just installed it and it said it insatlled fine, but it only works in internet explorer and not in firefox, is it a problem with my install or is it just the code?
Quote from: the_white_knight3 on September 25, 2005, 08:52:41 PM
umm I just installed it and it said it insatlled fine, but it only works in internet explorer and not in firefox, is it a problem with my install or is it just the code?
You mean my mod? I haven't had a problem with FF so far, that's the browser I use.
in firefox I get an error that says spoiler is not defined. The link appears on the page but it appears like a noraml, link, not like to smaller one in ie with this tag, and when you click on it you get that error.
Can I have a link to a post with this happening? And are you sure you didn't have any errors when installing it?
Quote from: the_white_knight3 on September 26, 2005, 01:26:51 PM
in firefox I get an error that says spoiler is not defined. The link appears on the page but it appears like a noraml, link, not like to smaller one in ie with this tag, and when you click on it you get that error.
I got the same error, so what You need to do is go to tools and under web stuff look at the area that says java and click the boxes that aren't checked and press ok, and it'll work :). it'll be in the advanced settings of the java area ;). Then it'll work.
hope that helps :D
Quote from: DBUFile on May 26, 2005, 11:53:12 PM
I just installed this mod, and I have the current version of Faster Parse Code installed.
I am using SMF 1.0.3.
When I make the tag [spoiler=Test]this is a test[/spoiler]
The poast looks like Spoiler: Test but when I click the link, nothing is happening. Looking at my java errors it says:
Error: spoiler is not defined
Source File: javascript:spoiler('spoiler0');
Line: 1
Same thing happening to me on SMF 1.0.5 -- i have the most recent version of FasterParseCode installed as well. Any updates?
Could you paste between code tags the source code for that spoiler in your page?
I've figured out that the problem is because of Firefox... but I've upgraded to the current version of Firefox 1.0.7 and it still will not show up. Does anyone know if there are special Firefox settings I need to have configured to view the spoilers? It works in IE for me, and it also works in another user's Firefox 1.0.6
Do you have that problem using the default theme?
I'm getting the same error as I get with the fast thing. The downloaded file is corrupt.
I tried a few other files too and all download as corrupt. Is it possible the mod database is having issues?
What are you using to download the files?
Firefox
Is this going to be updated for 1.1 and how about only registered users can revile it, and maybe a must reply to view it ?
Thanks
I will most probably update it for 1.1 when it reaches Final. I doubt I'll be adding the other features to it, though.
Quote from: xtremecruiser on October 24, 2005, 12:58:01 PM
Is this going to be updated for 1.1 and how about only registered users can revile it, and maybe a must reply to view it ?
Thanks
There is another spoiler tag for 1.1 made by someone here.
I don't have FasterParse code installed and it works fine...
i'm a little bit discombobulated!
i cant get this to work for 1.1 Is there any alternative for me????
it really is important :(
thanks guys!
I have a major problem.
I haven't installed FasterParse Code and it seemed to work. But apparently not.
The SPOILER tag only works if I'm ADMIN. If i login as a normal user i cannot see any spoiler link/button at all...
I tried changing the Permissions for "Regular members" to include "Post Spoilers", "Show Spoilers" they both do not work and it the spoiler tag does not appear for regular members to click.
Does Faster Parse Code have anything to do with it working only for admin and not regular members? Or is it a bug in spoiler tag mod?
Are you using my mod or someone else's?
Oops... sorry my mistake. I'm using the other Spoiler tag (as it is meant for 1.1RC1)... thanks and sorry for the trouble :)
I am using SMF 1.1RC, can I use this mod ???
Thanks for your answer !!! :)
Quote from: kezayah on December 16, 2005, 08:10:28 AM
I am using SMF 1.1RC, can I use this mod ???
Thanks for your answer !!! :)
I had it installed and after the upgrade to 1.1 RC2 it wont install again.
This tag doesn't work with 1.0.5 right?
If you're talking about mine, it should, as long as you first install Faster Parsecode.
Working on 1.0.5 without any problem.
Thanks
dehm :)
Does this work with 1.0.6
Does it work with 1.1 RC2?
Quote from: Delayed on January 31, 2006, 04:24:03 PM
Does this work with 1.0.6
I've tried installing it on my 1.0.6. and it doesn't work :( Just wondering if a version of the Spoiler tag will be made for 1.0.6.
-Shayna
There're 2 Spoiler Tag thread. I think that should be better to merge them or to ock one.
I post here a solution for integrating Spoiler-0.2.3 into SMF 1.1 RC2. It's simple i know, but someone seems to need it.
Once again, one for all: this MOD doesn't work AS IS in SMF 1.1 RC2 but there's a simple hack to get it working in RC2 too.
Download Spoiler-0.2.3.tar.gz (http://mods.simplemachines.org/index.php?action=download;mod=195;id=10944)
1. unpack and open package-info.xml
2. at line 9 replace <install for="1.1 RC1"> with <install for="1.1 RC2">
3. at line 10 replace <uninstall for="1.1 RC1"> with <uninstall for="1.1 RC2">
4. recreate the tar.gz package or zip the Spoiler dir.
5. upload and install SUPPISING you're using the DEFAULT THEME!
You could have some errors while installing but generally everything works after. You can configure the Spoiler in: Admin > Configuration > Current theme
Hi i did as you have instructed
I am recieveing one error:
9. Execute Modification ./Themes/default/languages/Errors.english.php Test failed
You have instructed to go ahead with install despite errors.
Can I have your word on this that it will not cause further errors later on?
And should I proceed with install anyways?
Thanks
Quote from: mcgrelio on March 11, 2006, 11:04:55 AM
There're 2 Spoiler Tag thread. I think that should be better to merge them or to ock one.
I post here a solution for integrating Spoiler-0.2.3 into SMF 1.1 RC2. It's simple i know, but someone seems to need it.
Once again, one for all: this MOD doesn't work AS IS in SMF 1.1 RC2 but there's a simple hack to get it working in RC2 too.
Download Spoiler-0.2.3.tar.gz (http://mods.simplemachines.org/index.php?action=download;mod=195;id=10944)
1. unpack and open package-info.xml
2. at line 9 replace <install for="1.1 RC1"> with <install for="1.1 RC2">
3. at line 10 replace <uninstall for="1.1 RC1"> with <uninstall for="1.1 RC2">
4. recreate the tar.gz package or zip the Spoiler dir.
5. upload and install SUPPISING you're using the DEFAULT THEME!
You could have some errors while installing but generally everything works after. You can configure the Spoiler in: Admin > Configuration > Current theme
Just wondering--are you talking about Anguz's one (which is this thread), or the other one? There are two Spoiler Tag mods available.
-Shayna
i went ahead with the install despte the errors anyways
It worked!
Thanks
Note to everyone using RC2 >> Follow mcgrelio's advice above it works perfectly!
Had it installed, worked fine, upgraded forum to 1.2, now it wont unistall.
Tried the rename trick, install works but it will not show up for the members to see ??? For Admins it works fine.
Permissions are set.
???
Quote from: stargazer_1017 on March 07, 2006, 02:06:28 PM
I've tried installing it on my 1.0.6. and it doesn't work :( Just wondering if a version of the Spoiler tag will be made for 1.0.6.
I would appreciate a compatible version with 1.0.6 too.
Quote from: akulion on March 12, 2006, 07:36:25 AM
i went ahead with the install despte the errors anyways
It worked!
Thanks
Note to everyone using RC2 >> Follow mcgrelio's advice above it works perfectly!
Just did the same and no problems to report. thanks for that.
Quote from: mcgrelio on March 11, 2006, 11:04:55 AM
There're 2 Spoiler Tag thread. I think that should be better to merge them or to ock one.
I post here a solution for integrating Spoiler-0.2.3 into SMF 1.1 RC2. It's simple i know, but someone seems to need it.
Once again, one for all: this MOD doesn't work AS IS in SMF 1.1 RC2 but there's a simple hack to get it working in RC2 too.
Download Spoiler-0.2.3.tar.gz (http://mods.simplemachines.org/index.php?action=download;mod=195;id=10944)
1. unpack and open package-info.xml
2. at line 9 replace <install for="1.1 RC1"> with <install for="1.1 RC2">
3. at line 10 replace <uninstall for="1.1 RC1"> with <uninstall for="1.1 RC2">
4. recreate the tar.gz package or zip the Spoiler dir.
5. upload and install SUPPISING you're using the DEFAULT THEME!
You could have some errors while installing but generally everything works after. You can configure the Spoiler in: Admin > Configuration > Current theme
i'll add to your post since i don't like ERRORS. ;) follow mcgrelio's instruction, but before you pack the spoiler dir, do this as well:
- open up install.xml
search for:
// Version: 1.1 RC1; Errors
replace it with:
// Version: 1.1 RC2; Errors
- now save, then pack the spoiler dir and uplaod it.
- apply the mod. and lo and behold NO ERRORS!
enjoy.
The spanish file is very bad tranlated...
In spanish movies, TvShows and books forum, spoiler is 'spoiler', and not 'interceptor aerodinámico'...
new spanish.xml file
<?xml version="1.1"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>azatoth:spoiler</id>
<!-- Default Theme -->
<file name="$boarddir/Themes/default/languages/index.spanish.php" error="skip">
<operation>
<search position="before"><![CDATA[
$txt['split_reset_selection'] = 'reinicializar selección';
]]></search>
<add><![CDATA[
$txt['spoiler_tag_text'] = 'Spoiler';
$txt['spoiler_tag_click_info'] = '(Haz clic para mostrar u ocultar)';
$txt['spoiler_tag_hover_info'] = '(Pon el ratón encima para mostrar)';
]]></add>
</operation>
</file>
<file name="$boarddir/Themes/default/languages/Themes.spanish.php" error="skip">
<operation>
<search position="before"><![CDATA[
$txt['themeadmin_edit_error'] = 'El archivo que intentaste guardar generó el siguiente error:';
$txt['themeadmin_edit_on_line'] = 'Iniciando en la línea';
$txt['themeadmin_edit_preview'] = 'Previsualizar';
]]></search>
<add><![CDATA[
$txt['spoiler_tag_label'] = 'Etiqueta Del Spoiler';
$txt['spoiler_tag_desc'] = 'Por defecto está fieldOnHoverShow, con el cual el spoiler se mostrará al poner el ratón sobre el mismo. Adicional es linkOnClickShowHide, con lo que se mostrará al hacer clic en un link, o buttonOnClickShowHide con lo que se muestra con un botón.';
$txt['spoiler_tag_onhoverovershow'] = 'fieldOnHoverShow';
$txt['spoiler_tag_onlinkclickshow'] = 'linkOnClickShowHide';
$txt['spoiler_tag_onbuttonclickshow'] = 'buttonOnClickShowHide';
]]></add>
</operation>
</file>
</modification>
I am confused.
Anguz spoiler tag says (on modifications page) that fasterparsecode is required. FasterParsecode mod is for 1.0.6 (accord. to the mod thread).
The spoiler tag is for 1.0.5.
What does that mean for me if I am on 1.1 RC2? Install - yay or nay? One? Both?
Earlier in this thread:
Quoteupload and install SUPPISING you're using the DEFAULT THEME!
SUPPISING? Suppressing? Substitute? Doesn't make sense to me. And what if I use another theme?
And what second spoiler tag is there? I have only found Hide tag Special but I don't want that, just a simple BBC spoiler tag.
Sorry but I don't get this.
So it does work with RC2?
please follow my post above.
http://www.simplemachines.org/community/index.php?topic=19831.msg546663#msg546663
it contains the SECOND spoiler tag mod in it, and instruction on how to make it work with 1.1RC2.
Quote5. upload and install SUPPISING you're using the DEFAULT THEME!
Does suggest it does only work for Default Theme? Why are they so different? I am doing my own themes right now, what would i have to keep unmodified for it to work?
I'm having trouble getting Spoiler-0.2.3 working on SMF 1.1 RC2. My problems aren't related to the installation or uninstallation or editing of the mod to make it RC2 compatible. Rather, I can't even get it unzipped!
I tried the download link on page 9 in this thread, and also the link that appears on the packages page inside my forum's admin section. They will not unzip.
The first link I tried was the Packages link from within SMF's package manager: http://mods.simplemachines.org/downloads/195/Spoiler-0.2.3.tar.gz
I first tried it on my Windows box, with WinRAR (which supports gzip decompression). It said the archive was corrupt. I then tried putting the .tar.gz file on the Linux forum host box, and ran
tar -xzf Spoiler-0.2.3.tar.gz. It gave me this error:
Quotetar: This does not look like a tar archive.
tar: Skipping to the next header.
tar: Child returned status 1.
tar: Error exit delayed from previous errors.
Then, doing
ls resulted in just seeing the gzipped tar archive. Then I tried
gzip -d Spoiler-0.2.3.tar.gz (I was going to follow with
tar -xf Spoiler-0.2.3.tar). I received this error:
Quotegzip: Spoiler-0.2.3.tar.gz: unexpected end of file.
I tried the download from both IE and Firefox with the same results both times.
Can somebody prepare a final version for 1.1RC2 ready for download? I think a lot of people here will appreciate that. Thanks.
I second that, Geezmo.
Also, thanks Azuregenes but the Fasterparsecode question and if it works with others than the default theme is still a question (at least to me).
here u go
this package is ready for rc2 in english only for the other languages just open ur language file and find and replace the 1.1rc1 with 1.1rc2 wherever you find them
http://path-to-peace.net/misc/Spoiler-0.2.3.zip
ill keep this download active until the mod makers fix their link in the download section
Gwion, as far as I remember, my Spoiler Tag mod is theme independent. The mess with the posts in this topic is in part caused by another user posting his own mod, with the same name, in my mod's topic. I haven't updated my mods for 1.1 yet because I'm waiting for Final. I hope this reply clears up some things for you.
Quote from: akulion on May 10, 2006, 02:21:37 AM
here u go
this package is ready for rc2 in english only for the other languages just open ur language file and find and replace the 1.1rc1 with 1.1rc2 wherever you find them
http://path-to-peace.net/misc/Spoiler-0.2.3.zip
ill keep this download active until the mod makers fix their link in the download section
akulion, what i need to do is just make a clean installation by using this file ?
Do i need to install FasterParsecode first ?
http://mods.simplemachines.org/index.php?mod=39
best to my knowledge Vinspire I dont think you need that because on my forum I simply installed this mod without faster parscode and it works just fine
plus if u read the mod description (the one u posted) it says Compatible With: 1.0.6
So I am assuming that is just for SMF 1.0.6
The file I have posted above is for SMF 1.1RC2 only
Quote from: akulion on May 10, 2006, 02:21:37 AM
here u go
this package is ready for rc2 in english only for the other languages just open ur language file and find and replace the 1.1rc1 with 1.1rc2 wherever you find them
http://path-to-peace.net/misc/Spoiler-0.2.3.zip
ill keep this download active until the mod makers fix their link in the download section
i've uploaded this and it works well. just one question though, is there really no bbc icon for Spoiler while writing the post? i checked in admin panel and saw that spoiler is activated in the forum but why is there no bbc shortcut icon (like Bold, Italics, Email) in the text box for posts?
Quote from: akulion on May 10, 2006, 02:21:37 AM
here u go
this package is ready for rc2 in english only for the other languages just open ur language file and find and replace the 1.1rc1 with 1.1rc2 wherever you find them
http://path-to-peace.net/misc/Spoiler-0.2.3.zip
ill keep this download active until the mod makers fix their link in the download section
I tried to install it. It uploaded from my desktop to my forum just fine. Applying it did not ask for FTP information (due to Apache being the owner of all the files). It passed all modification tests. But clicking on "Install Now" just results in nothing really happening. It's like the page is loading for an infinite amount of time.
What's going on?
Edit: I'm getting these errors repeating over and over again in the error log:
Quotehttp://*removed*/forum/index.php?action=packages;sa=install2;package=Spoiler-0.2.3.zip
2: feof(): supplied argument is not a valid stream resource
File: /var/www/public_html/docs/forum/Sources/Subs-Package.php
Line: 2107
Quotehttp://*removed*/forum/index.php?action=packages;sa=install2;package=Spoiler-0.2.3.zip
2: fread(): supplied argument is not a valid stream resource
File: /var/www/public_html/docs/forum/Sources/Subs-Package.php
Line: 2108
Quote from: mcgrelio on March 11, 2006, 11:04:55 AM
There're 2 Spoiler Tag thread. I think that should be better to merge them or to ock one.
I post here a solution for integrating Spoiler-0.2.3 into SMF 1.1 RC2. It's simple i know, but someone seems to need it.
Once again, one for all: this MOD doesn't work AS IS in SMF 1.1 RC2 but there's a simple hack to get it working in RC2 too.
Download Spoiler-0.2.3.tar.gz (http://mods.simplemachines.org/index.php?action=download;mod=195;id=10944)
1. unpack and open package-info.xml
2. at line 9 replace <install for="1.1 RC1"> with <install for="1.1 RC2">
3. at line 10 replace <uninstall for="1.1 RC1"> with <uninstall for="1.1 RC2">
4. recreate the tar.gz package or zip the Spoiler dir.
5. upload and install SUPPISING you're using the DEFAULT THEME!
You could have some errors while installing but generally everything works after. You can configure the Spoiler in: Admin > Configuration > Current theme
Following these instructions, I receive this error when trying to install the package:
QuoteInstalling this package will perform the following actions: Type Action Description
1. Execute Modification ./Sources/Subs.php Test successful
2. Execute Modification ./Themes/default/style.css Test successful
3. Execute Modification ./Themes/default/languages/index.english.php Test successful
4. Execute Modification ./Themes/default/languages/Themes.english.php Test successful
5. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Sources/Post.php Test successful
8. Execute Modification ./Sources/Subs-Post.php Test successful
9. Execute Modification ./Themes/default/languages/Errors.english.php Test failed
10. Execute Modification ./Themes/default/Settings.template.php Test successful
11. Execute Modification ./Themes/classic/style.css Test successful
However it seems to work, though there is a bit of graphical weirdness with the default behavior of hovering on the default theme. I haven't check the other themes yet, or the other behaviors (click to expand, etc) I'll see if I can post a screenshot of what I mean.
Edit: Image:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Feac.forgiven5.com%2Fpictures%2Fspoiler.png&hash=e436b18347e0c1986c6bc8599cb8557ec5264303)
Edit 2: I checked and it looks fine in the Helios theme.
Great mods ;) ;) ;)
Great.
I just found out that I'm the only person that can see the spoiler thing. I'm the only admin.
Quote from: scottws on May 17, 2006, 09:24:58 PM
Great.
I just found out that I'm the only person that can see the spoiler thing. I'm the only admin.
Check ur membergroup permissions setting ... It is there ;) ;) ;)
The board setting too ...
Quote from: Vinspire on May 19, 2006, 03:54:01 AM
Quote from: scottws on May 17, 2006, 09:24:58 PM
Great.
I just found out that I'm the only person that can see the spoiler thing. I'm the only admin.
Check ur membergroup permissions setting ... It is there ;) ;) ;)
The board setting too ...
Yeah, it was a membergroups permission setting issue.
Anyone have any idea why I'm getting the wierd look on the default theme like the image I posted?
Quote from: scottws on May 22, 2006, 10:17:24 AM
Yeah, it was a membergroups permission setting issue.
Anyone have any idea why I'm getting the wierd look on the default theme like the image I posted?
i cant find the image :-\
Quote from: Vinspire on August 07, 2006, 07:40:54 AM
Quote from: scottws on May 22, 2006, 10:17:24 AM
Yeah, it was a membergroups permission setting issue.
Anyone have any idea why I'm getting the wierd look on the default theme like the image I posted?
i cant find the image :-\
Well, it was up there five months ago when I posted it. I had the image hosted at a site my friend had, but he could no longer afford it and cancelled the hosting service.
So... anyone tested compatibility with SMF 1.1 RC3 yet?
Is there any plans to make this work for 1.1 RC3?
Does it work for 1.1.2?
LOL i wish it worked with RC3...
Quote from: lumiden on February 13, 2007, 02:57:37 PM
Does it work for 1.1.2?
I just upgraded from 1.1 RC3 to 1.1.2. I had Spoiler Tag 0.2.6 installed previously. Looks like it's up to 0.3.1 now so I downloaded the new version. It wouldn't install (there was no "Apply Mod" link), so I extracted it and edited package-info.xml and added installation and uninstallation options for 1.1.2.
Uploading my edited version allowed me to now click on "Apply Mod", but I get an error related to ./Themes/default/languages/Errors.english.php. This problem persisted even after chmodding the file to 777 permissions.
I opened install.xml in Dreamweaver and searched for errors and found the following:
<file name="$boarddir/Themes/default/languages/Errors.english.php">
<operation>
<search position="before"><![CDATA[
// Version: 1.1; Errors
]]></search>
<add><![CDATA[
$txt['cannot_spoiler_post'] = 'Sorry - you don\'t have the proper permissions to post spoilers.';
]]></add>
</operation>
</file>
So it looks like it's just adding an error message line in there. I looked at ./Themes/default/languages/Errors.english.php and the syntax looked easy enough, so I went ahead and ran the installer. I went ahead and added that line in manually. It seems to work ok.
Hi, I'm using the mod for my forum and it works perfectly with Internet Explorer, but it doesn't with Mozilla Firefox.
There's something I can do to fix the problem? Firefox doesn't show me the button, neither the test in the spoiler area... :(
/sorry for my bad english, but I'm italian.../
I'm looking for Spoiler tag that worked fine for SMF 1.1.3. Thanksfunction __RP_Callback_Helper(str, strCallbackEvent, splitSize, func){var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str && str.length > 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList[splitSize-1];var pluginList = document.plugins;for (var count = 0; count < pluginList.length; count++){var sSrc = '';if (pluginList[count] && pluginList[count].src)sSrc = pluginList[count].src;if (strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Coord_Callback = str;pluginList[index].__RP_Coord_Callback_Left = splitList[0];pluginList[index].__RP_Coord_Callback_Top = splitList[1];pluginList[index].__RP_Coord_Callback_Right = splitList[2];pluginList[index].__RP_Coord_Callback_Bottom = splitList[3];};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Url_Callback = str;pluginList[index].__RP_Url_Callback_Vid = splitList[0];pluginList[index].__RP_Url_Callback_Parent = splitList[1];};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_TotalBytes_Callback = str;pluginList[index].__RP_TotalBytes_Callback_Bytes = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Connection_Callback = str;pluginList[index].__RP_Connection_Callback_Url = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}
Same here. Has anyone worked on a version that works with 1.1.3? We really need this mod.
At your own risk!! But I just unzipped the file, edited the package-info.xml to say 1.1.3 from 1.1.2 and Zipped again. Used package manager as normal and installed MOD without a problem.
I am going to use this mod.
Hi,
this is the problem: the spoiler (button and his content) is visibile in forum but not in portal. why?
I have created some blocks in html, where i have inserted some links to some pages created in BBC with Portal. In these pages there are spoilers that are visibile just to admins.
I have excluded that the solution is in the permission settings because if it is so, spoiler must be invisibile in forum and in portal. Right?
p.s.: sorry for my bad english
Thank you so much