![]() |
Spoiler Plugin - Support - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: Spoiler Plugin - Support (/showthread.php?tid=1591) Pages:
1
2
|
Spoiler Plugin - Support - ePirat - 2011-04-27 Hello, I wrote a small plugin which adds the ability to use BBTag like spoiler tags on GetSimple Pages. Spoiler means that the Text inside the [spoiler]-Tags will not be visible to the visitors, until they click the "Spoiler" Button (or hover the text if JS is disabled). It is very useful if you have content that some visitors may not want to see. Usage: Simplest usage would be without any additional arguments: Code: [spoiler]This is my spoiler text[/spoiler] A bit more complex usage would be if you set a special button caption: Code: [spoiler=Click to show/hide a super secret text]This is my spoiler text[/spoiler] The more advanced way if the following, where you set show caption and hide caption: Code: [spoiler=Click to show a super secret text|||Click to hide a super secret text]This is my spoiler text[/spoiler] Changelog: Version 1.1
Spoiler Plugin - Support - Connie - 2011-04-27 Please explain what for this plugin is, I never met "spoiler" in webdesign ;=) Spoiler Plugin - Support - ePirat - 2011-04-27 Connie Wrote:Please explain what for this plugin is, I never met "spoiler" in webdesign ;=) Quote:Spoiler is slang for any element of any summary or description of any piece of fiction that reveals any plot element which will give away the outcome of a dramatic episode within the work of fiction, or the conclusion of the entire work.from Wikipedia I can't explain spoiler very good, my English is horrible. Spoiler Plugin - Support - Connie - 2011-04-27 I did a google search and found that SPOILER in BBCode is an element which hides text which only becomes visible when you mark the text is that what you are intending? Cheers, Connie Spoiler Plugin - Support - polyfragmented - 2011-04-27 I've encountered this at sites like geocaching.com (for text which might prematurely reveal hints to a hidden location) which comes in quite handy there. They encrypt text with ROT13 there (mangle up the characters), but it's the same principle. I personally don't have any immediate use for it, but it may come in handy for others, so: way to go epirat! Spoiler Plugin - Support - krisu - 2011-04-28 Connie Wrote:I did a google search and found that SPOILER in BBCode is an element which hides text which only becomes visible when you mark the textNo, it puts a button that's calls 'spoiler' and when you click it, it shows the content. You can also hide it again clicking the spoiler button. Demo: http://krisu.viuhka.fi/getsimple3/index.php?id=spoiler-plugin Spoiler Plugin - Support - mikeh - 2011-04-28 cool! This will be useful on a large site of mine, thanks! Spoiler Plugin - Support - jlm - 2011-04-28 Hello, this plugin is nice and works very well But I have questions: -how to change the button title -Is it possible to put many buttons "spoiler" in a page with different names? Spoiler Plugin - Support - singulae - 2011-04-28 I like it. Has great potential.. It would be much better if the button's appearance could change with CSS.. Some recommendations: To avoid conflicts with other plugins that using window.load: Code: // unobtrusive way for call window.onload For check if exists the tag [spoiler] and avoid loading code that do not is used in other pages: Code: function check() Spoiler Plugin - Support - ePirat - 2011-04-28 jlm Wrote:-how to change the button titleI've updated the plugin, now you can use the following code to set custom button title: Code: [spoiler=My custom title]Here is the hidden spoiler text[/spoiler] jlm Wrote:-Is it possible to put many buttons "spoiler" in a page with different names?Simply put more than one [spoiler] on the site: Code: [spoiler=My custom title]Here is the hidden spoiler text[/spoiler] Please Update to the new Version 1.3, it fixes a bug when you have multiple line spoilers Spoiler Plugin - Support - jlm - 2011-04-29 Thank you for your excellent work! I am doing tests on this site http://gs.comlu.com/ and it works very well. (spoiler_plugin v 1.2) I tried to create tabs (http://www.qualitycodes.com/samples/php/tabs/?id=2 example) but I'm too bad in php to make a plugin that works with GS Spoiler Plugin - Support - ePirat - 2011-04-29 jlm Wrote:Thank you for your excellent work!Thanks, but you should update to version 1.3 because it fixes a bug where the plugin won't work if you have multiple lines spoiler and custom text... BTW: I looked to the example and i dont know how this could be used productive with getsimple... maybe if you give me some ideas i will think about making a plugin for it... Spoiler Plugin - Support - ePirat - 2011-04-29 singulae Wrote:I like it. Has great potential..Thanks a lot, I'm using your code now... singulae Wrote:For check if exists the tag [spoiler] and avoid loading code that do not is used in other pagesYeah, thanks i never thought about this ![]() Big thanks for your help! Spoiler Plugin - Support - jlm - 2011-04-30 Hello, sorry for my English very bad! I think with this plugin do that sort of thing http://www.trafalgardesign.com/faqs/module-faqs or http://www.acusti.ca/mooaccordion-css-show-hide-demo-tutorial.html on getsimple . I can not make a plugin, because my php level is very small. But the plugin is not far from doing this. You may need to modify the css to not look like the submit button but I think the best is here http://ninjaforge.com/demo/ninja-accordion My tests here http://gs.comlu.com/ Spoiler Plugin - Support - ePirat - 2011-04-30 jlm Wrote:But the plugin is not far from doing this. You may need to modify the css to not look like the submit buttonAh... This plugin was nerver designed to do stuff like this, it's only a simple spoiler button, sure you can give it another style, just play a bit with the css... What do you (users) think? Should I modify the button to look like the examples from jlm? Personally I would create a new plugin for this, because this isn't a Tab plugin or a menu plugin, but a spoiler box... Spoiler Plugin - Support - polyfragmented - 2011-04-30 ePirat Wrote:What do you (users) think? Should I modify the button to look like the examples from jlm?I'd say that jim's suggestions exceed the original scope of your plugin. A more general plugin which hides/reveals content would be cleaner in my book. Just my 2c. Also, mikeh has started work on a FAQ plugin this week. Spoiler Plugin - Support - andyash - 2011-06-25 Is there a possibility for the Spoiler button to show "READ MORE" when the text is hidden and "READ LESS" when the text is expanded. This would make it so much more flexible than just saying SPOILER all the time. Spoiler Plugin - Support - ePirat - 2011-10-22 andyash Wrote:Is there a possibility for the Spoiler button to show "READ MORE" when the text is hidden and "READ LESS" when the text is expanded. This would make it so much more flexible than just saying SPOILER all the time. Sorry for my late reply. I will try to make it possible, stay tuned ![]() EDIT: Done, update to 1.4 and see the first post how to use it. If you need further help, feel free to post your questions here. Spoiler Plugin - Support - andyash - 2011-11-02 I can't see any button text. Spoiler Plugin - Support - ePirat - 2011-11-03 andyash Wrote:I can't see any button text.Please give me a detailed description: What spoiler tag you used? (Paste full [spoiler=xyz]...[/spoiler] that you used here. What browser are you using? Spoiler Plugin - Support - andyash - 2011-11-08 ePirat Wrote:andyash Wrote:I can't see any button text.Please give me a detailed description: ePirat Wrote:andyash Wrote:I can't see any button text.Please give me a detailed description: Got it. I was doing it wrong. One question - Is there a possibility of the button to shift at the end of the hidden text when the hidden text is made visible? Currently it stays where it is. Spoiler Plugin - Support - ePirat - 2011-11-08 andyash Wrote:Is there a possibility of the button to shift at the end of the hidden text when the hidden text is made visible? Currently it stays where it is.On my feature list now, thanks for the idea. I'll make an option's page where you can set some of these things. Stay tuned for next version. Currently I am a bit bussy but I hope that I can do it until the weekend. Spoiler Plugin - Support - andyash - 2011-11-10 ePirat Wrote:andyash Wrote:Is there a possibility of the button to shift at the end of the hidden text when the hidden text is made visible? Currently it stays where it is.On my feature list now, thanks for the idea. I'll make an option's page where you can set some of these things. Stay tuned for next version. Thanks. Spoiler Plugin - Support - ePirat - 2011-11-21 andyash Wrote:Is there a possibility of the button to shift at the end of the hidden text when the hidden text is made visible? Currently it stays where it is.Update 1.5 is out, has a settings page where you can set all this stuff. If you have any problems let me know. Spoiler Plugin - Support - andyash - 2011-11-21 The new version rocks. Nothing more on the wishlist. ![]() |