18 Abr 2006 @ 10:34 PM 
 

[Mi plugin] Enhanced Simple Spoiler

 

He actualizado el genial plugin Simple Spoiler para hacerlo compatible con el uso del WYSIWYG de WordPress. He añadido la opción de encapsular el código dentro de [ ] en lugar de usar < >. Ahora se pueden usar los dos métodos, sin necesidad de modificar los posts antiguos.

Instalación

Simplemente coloca el archivo enhanced-ss.php en el directorio de plugins de tu instalación de WordPress [normalmente wp-content/plugins/]. ¡Actívalo y comienza a usarlo!

Modo de uso

Si usas el editor visual enriquecido de WordPress [TinyMCE], simplemente tienes que colocar el texto que quieras ocultar entre las etiquetas [spoiler] texto aquí [/spoiler].

Si no usas el editor visual sólo tienes que colocar el texto que quieras ocultar entre las etiquetas [spoiler] texto aquí [/spoiler] o bien <spoiler> texto aquí </spoiler>.

Formato

Puedes usar dos palabras o frases que quieras como texto para mostrar u ocultar el contenido. Por ejemplo:

En el editor visual [spoiler /dame la verdad/ /no me la enseñes/] texto aquí [/spoiler] dará como resultado algo así

dame la verdad ▼

Por otra parte, en el editor simple <spoiler 'dame la verdad' 'no me la enseñes'> texto aquí </spoiler> dará el mismo resultado. Date cuenta que las comillas ‘ ‘ no son compatibles con el editor visual, por lo que la sintaxis es distinta de uno a otro.

Lista de cambios

1.6.2 – Añadido “php” al comienzo del archivo. No sé por qué razón no estaba presente. Gracias Amanda

1.6.1 – Modificada la función yk_callback para hacerla compatible con XHTML 1.0 [espero]. Gracias Marcus

1.6 – Versión inicial, para continuar la numeración de Simple Spoiler.

Nota:

No sé ni PHP ni Javascript ni nada de nada, simplemente he añadido un par de líneas y he cambiado otras simplemente observando y luego usando el método de ensayo-error. No pidas más características para añadir al plugin, se llama Simple por algo ;)

Descárgalo aquí

English

I have updated the beautiful Simple Spoiler plugin to make it compatible with WYSIWYG editor embedded in WordPress. I have added the option to use [ ] instead of < >. Now you can use both methods whithout digging into your older posts to modify the code.

Installation

Put enhanced-ss.php file inside plugins directory of your WordPress installation [usually wp-content/plugins/]. Activate it and start using it!

How to use

If you write with the WordPress visual rich editor [TinyMCE], simply put the text you want to hide between [spoiler] text here [/spoiler] tags.

If you don’t use the visual editor you only have to put the text between [spoiler] text here [/spoiler] or <spoiler> text here </spoiler> tags.

Formatting

You can use two words or phrases as text link to show or hide the content. For example:

In visual editor [spoiler /give me the truth/ /hide it from me/] will result as something like this

give me the truth ▼

By the other hand, in simple editor <spoiler 'give me the truth' 'hide it from me'> text here </spoiler> will produce the same output. Take in mind that ‘ ‘ are not compatible with visual editor, that’s why the syntax is not the same in both examples.

Changelog

1.6.2 – Added “php” to the beggining of the file. I don’t know why it wasn’t present. Thanks Amanda

1.6.1 – Modified yk_callback function to make it XHTML 1.0 compatible [I hope]. Thanks Marcus

1.6 – Initial release, to continue Simple Spoiler version number.

PS:

I don’t know PHP nor Javascript, I have simply added a pair of lines of code and chaged others by observation and later testing for errors. Please don’t request more features for this plugin, its name is Simple for some reason ;)

Download here

Tags Tags: , , , , ,
Categories: Blogging
Posted By: ]V[orlock Zernebock
Last Edit: 16 Nov 2008 @ 06 03 PM

EmailPermalink
 

Responses to this post » (130 Total)

 
  1. [...] Eure Meinung zu DVDfacts.info oder einfach das Simple Spoiler Plugin f

  2. [...] Enhanced Simple Spoiler [...]

  3. [...] Hier gibt es ein wunderbares Plug-In Link: Spoiler Enhanced [...]

  4. [...] Wordpress Plugin: Enhanced Simple Spoiler – Allows one to create a block which is inside a post and expands/collaps on request. Like using an ajaxified MORE tag but inline… [...]

  5. [...] Simple Spoiler Enhanced Für Filmliebhaber genau das Richtige! Mit Spoiler-Tags könnt ihr bestimmte Sachen schreiben, aber ausblenden. Erst bei einem Klick auf “Show” wird der versteckte Inhalt angezeigt. [...]

  6. [...] 082NeT » Blog Archive » Ajax Spoiler Plugin waikay.net » Plugin: Spoiler [Mi plugin] Enhanced Simple Spoiler | ]V[orlock ۞ Liberitas [...]

  7. [...] Simple Spoiler Enhanced: Adds show/hide text enclosed within “spoiler” tags. [...]

  8. [...] mal das PLugin Simple Spoiler Das hat zwar kein Plus-Zeichen davor, sondern ein kleines Dreieck dahinter. Funktioniert ganz aber [...]

  9. [...] pluginsUsedPlugin (http://liberitas.com/2007/01/06/enhanced-pluginsusedplugin/) 0.1.11e Enhanced Simple Spoiler (http://liberitas.com/2006/04/18/mi-plugin-simple-spoiler-enhanced/) 1.6.1 [...]

  10. [...] Enhanced Simple Spoiler – честно казано, това нещо може да има приложение при гатанки, например. Но ми се стори забавно. Трудно ми е да го преведа, затова, просто ще дам пример. (Натиснете препратката Show spoiler.. Show spoiler ▼ [...]

  11. Headline Images Inline Google Maps iG:Syntax Hiliter LMB^Box Smileys LMB^Box Comment Quicktags Moody Mobile Eye+ Plugins Used Plugin runPHP Search Everything Simple Spoiler Enhanced Tiger Style Administration UTW mod Related Post Ultimate Tag Warrior wp-koyomi WP-InlineJS wp-otenki wp-tegaki WP-phpMyAdmin wp-hatena WP-Amazon WP-AddQuicktag

  12. [...] Simple Spoiler Enhanced – A good little plugin that helps you in telling your story to the readers. I mean if you want the readers to have the option of knowing or not knowing the storyline, you can hide it with this spoiler [...]

  13. [...] Simple Spoiler Enhanced Für Filmliebhaber genau das Richtige! Mit Spoiler-Tags könnt ihr bestimmte Sachen schreiben, aber ausblenden. Erst bei einem Klick auf “Show” wird der versteckte Inhalt angezeigt. [...]

  14. [...] Activated Akismet and Simple Spoiler Enhanced [...]

  15. [...] Simple Spoiler Enhanced: Allows you to show/hide text inside spoiler tags. Useful when I do reviews of Anime or Movies. [...]

  16. VERONA BLOG dice:

    Jerome’s Keywords: Related Posts Jerome’s Keywords Link Indication My Link Order My Technorati Tag Cloud Plugins Used Plugin Random Posts References RustLinkOffs Sideblog Wordpress Plugin Simple Spoiler Enhanced View Counter Random Words

  17. [...] Probier mal das PLugin Simple Spoiler Das hat zwar kein Plus-Zeichen davor, sondern ein kleines Dreieck dahinter. Funktioniert ganz aber vorz

  18. [...] Simple Spoiler Enhanced [...]

  19. [...] More info on my blog post here [...]

  20. [...] Simple Spoiler: Hace días que buscaba algo similar. En el post pasado quería hacer uso de lo que buscaba y terminé usando un hover para hacerlo. Simple Spoiler es un plugin para WordPress que sirve para evitar que ciertos extractos textuales se muestren a simple vista en el diseño de tu blog. Como es mencionar spoilers de series, evitas arruinarle los capítulos al lector. [...]

  21. [...] Attention posters, I just installed a new new plugin that will hide spoilers if you use something like this, Show ▼

    [...]

  22. [...] Simple Spoiler: Hace días que buscaba algo similar. En el post de Lost quería hacer uso de lo que buscaba y terminé usando un hover para hacerlo. Simple Spoiler es un plugin para WordPress que sirve para evitar que ciertos extractos textuales se muestren a simple vista en el diseño de tu blog. Como es mencionar spoilers de series, evitas arruinarle los capítulos al lector. [...]

  23. BlogR ::: dice:

    me parecen muy buenos. Su ultimo theme es Remember. Simple Spoiler: Hace días que buscaba algo similar. En el post de Lost quería hacer uso de lo que buscaba y terminé usando un hover para hacerlo.Simple Spoiler es un plugin para WordPress que sirve para evitar que ciertos extractos textuales se muestren a simple vista en el diseño de tu blog. Como es mencionar spoilers de series, evitas arruinarle los capítulos al lector.

  24. [...] Simple Spoiler: Hace días que buscaba algo similar. En el post pasado quería hacer uso de lo que buscaba y terminé usando un hover para hacerlo. Simple Spoiler es un plugin para WordPress que sirve para evitar que ciertos extractos textuales se muestren a simple vista en el diseño de tu blog. Como es mencionar spoilers de series, evitas arruinarle los capítulos al lector. [...]

  25. me parecen muy buenos. Su ultimo theme es Remember. Simple Spoiler: Hace días que buscaba algo similar. En el post pasado quería hacer uso de lo que buscaba y terminé usando un hover para hacerlo.Simple Spoiler es un plugin para WordPress que sirve para evitar que ciertos extractos textuales se muestren a simple vista en el diseño de tu blog. Como es mencionar spoilers de series, evitas arruinarle los capítulos al lector.

  26. [...] É o Plugin Simple Spoiler Enhanced [...]

  27. mTm dice:

    Comment License version 1.0 Did You Pass Math? version 3.0 Hide Dashboard version 1.0 List Authors Widget version 1.0 OneClick Installer version 0.42 Post Avatar version 1.2.2 Share This version 1.4 Simple Spoiler Enhanced version 1.6 WidgetWorks version 0.2 wp-cache version 2.1.1 WP Dash Note version RC1 WP Grins version 1.5 WP Plugins Tracker version 0.2 About BDP Setup

Post a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

\/ More Options ...
Change Theme...
  • Users » 1
  • Posts/Pages » 1,503
  • Comments » 2,592
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

Contacto



    No Child Pages.

Archivos



    No Child Pages.

Fotos



    No Child Pages.