Schreikasten – Plugin para Wordpress
Los ShoutBox fueron ampliamente usados cuando se inició la fiebre del Web 2.0 y de los Blogs, porque permitían escribir mensajes fuera del contexto de los reportes y ofrecer un servicio de libro de visitas acorde con los cambios que experimentaba Internet. Sin embargo los ShoutBox sufrieron las consecuencias de su éxito y pronto fueron blanco fácil de los spammers que llenaron los libros de visita hasta dejarlos sin espacio y haciéndolos tediosos de mantener. Algunos ShoutBox optaron por crear listados negros, otros usaron palabras prohibidas pero cada vez los spammer aprendían cómo superar la seguridad de los ShoutBox y su uso decayó. Hoy en día se ven pocos, pero la idea sigue teniendo su atractivo inicial y aveces salen proyectos que requieren uno. Este es precisamente mi caso, así que después de algunas consultas en Internet descubrí que lo mejor que podría hacer era crear un ShoutBox propio que empleara un servicio anti-spam y que se integrara a WordPress empleando algunas técnicas Ajax que ya había usado.
El resultado fue Schreikasten, cuyo nombre es una traducción literal de la palabra ShoutBox al alemán. Su objetivo principal es ser sencillo para instalar, ofrecer lo básico para escribir mensajes y controlar el spam empleando el servicio Akismet. Para activar el filtro es necesario conseguir una clave API de Akismet que se puede solicitar gratis para páginas personales. Para uso comercial la API tiene un costo, pero ofrece ventajas que se deben tener en cuenta cuando el portal que administramos deja beneficios y el Spam es un problema.
El plugin ofrece un widget para ser instalado en la barra lateral, su template está separado del código para facilitar su integración al diseño gráfico de la página. Al escribir un comentario se consultará con Akismet si es Spam y en caso afirmativo será marcado como tal y no se presentará en la lista de mensajes. En la sección de comentarios de Wordpress está la lista de mensajes que se han enviado, permitiendo así indicar si un comentario aceptado por Akismet en realidad es Spam o si por el contrario si un mensaje marcado como Spam en realidad no lo es. Esta es la ventaja de Akismet, el servicio aprende de sus errores y con eso se mantiene actualizado ante las nuevas técnicas de los spammers. También es posible eliminar un mensaje sin enviar una señal de actualización a Akismet, y se creó un link que permite borrar todos los mensajes que estén marcados como Spam.
En la barra lateral, en la pestaña de comentarios, se puede ver un ejemplo funcional de Schreikasten.
El plugin está bajo licencia GPL para que lo usen, abusen y descuarticen, solo recuerden dar los créditos del caso. Si lo desean usar a nivel comercial deberán comprar la clave API especial.
Importante: desde la versión 0.4.1 este plugin requiere la instalación de minimax para que funcionen los complementos Ajax.
Ir a la página de descarga.
Internacionalización
Muchas gracias por su tiempo amigos.
Características
- Shoutbox con ajax y akismet
- Schreikasten está disponible en el servidor SVN de Wordpress.
- Importante: se debe instalar minimax 0.2 para que funcionen los complementos Ajax
- Genera código XHTML válido
- Valida comentarios con akismet
- Informa al administrador por email
- Sistema de respuesta
- Sistema de seguimiento a comentarios
- Almacena comentarios de usuarios registrados
- Permite definir si solo usuarios registrados pueden enviar comentarios
- Emplea la restricción de Wordpress para definir si todo comentario requerirá de un correo electrónico y si debe o no ser revisado antes de su publicación
- Emplea datos en COOKIES del usuario
- Administrador de bloqueo de computadores
- Integrado a Gravatar
- Archivo de estilo propio






My Spanish is not too good, so excuse me for saying this in English. Anyway, the plugin is really good, thanks a lot! I would like a setting where I can set 1/2/3/4 shouts per page, now the minimum is 5.
Again, thanks!
Hi Segia and thanks for use Schreikasten.
I put this limit because I thought nobody would ask for something like that. If you know how to program php you can modify it in the template sk_widgetconfig. The next version would let to write any number.
I thought 5 was pretty good, but apparently my visitors enjoy lengthy shouts.
I’m not much with PHP, I’ll just patiently wait for the next version. Thanks for the quick response and I’ll be sure to look out for your plugins.
Look your mail. Put this file in /plugin/schreikasten/templates
It’s a quick solution, the next release would look different.
Due to hosting issues my blog has been out all day, so I wasn’t able to test it out until now. It works like a charm.
Thanks a lot, that was the best ’service’ I’ve seen so far. I’ll keep checking for bugs and do anything I can to support this plugin!
Kind regards,
Segia
Hi Segia.
I have noticed your shoutbox isn’t working. It seems the situation is in the ‘nonce system’ Can you help me with this? Send me your SK and WP version numbers and i’ll replicate this configuration at home.
Thanks.
Hi there,
I really like Schreikasten, but I’d like to insert it directly into PHP. I can’t use the widget, because all of my other stuff in my sidebar aren’t widgets.
Which function calls Schreikasten directly?
Hope you understand my bad english.
Best regards,
Kai
Hi Kai
Schreikasten doesn’t have a function like this…. but is a great idea.
It’s a ToDo for the next release.
For a quick solution, try this in your sidebar script.
<li>
<?php
global $wpdb;
$options = get_option("widget_sk");
$title = $options["title"];
$table_name = $wpdb->prefix . "schreikasten";
echo "<h2>$title</h2>";
include("wp-content/plugins/schreikasten/templates/sk_widget.php");
?>
</li>
It works! Thank you very much for your fast support!
Greetings from Bremen, Germany,
Kai
Bitte sehr
how to disable required email?
It seems to be a problem with this system. I’ll check it and will release a new version today.
Ok, got it. SK uses the same configuration WP has. In Options / Comments you can change it (4th item). But the next release will allow you to use the same configuration as the general system, or define a specific one.
Hello Sebaxtian,
The number per characters per shout is very small and limited, is there a way I can increase the number of permitted characters per message?
Thank you,
Karim Aziz
http://www.karimaziz.net
Hi Karim.
No, there isn’t. Program it is easy, so, wait for a new release in a few minutes with this option. See it in the widget configuration.
Mucho gracias!
Also just wanted to tell you, thanks for your great work and quick answer, it is by far the best Shoutbox plugin I found around
Thanks Karim.
I’m doing my best to create an useful plugin, and users with great ideas help a lot.
Best regards.
Hi Karim, is Sebaxtian the programmer of Schreikasten.
I see you try to write greek letters in a shout and can’t get them… all you get where question marks.
Well, since version 0.11.14 (I guess) SK use UTF8 in the database. Would you try to write the Bibble passage again and see if it works?
Thanks.
Wow, you noticed before I did! Anyway, I was using the previous version of Schreikasten on Wordpress 2.9. I updated the plugin and it works fine now
Thanks a lot anyway, though!
Hi Segia.
I still see the same situation. Strange this bug only happens on your site. Can we meet on Wednesday to try to solve it?
You’re right, apparently it shows up when you are not logged in, but works fine when you are. I’ll be on MSN Wednesday evening, if that’s ok? Or we could just do it via e-mail.
Hi,
I would like to ask you for a way to get a smaller text box for Alias and EMail. With current size, it is broken my layout, in single page, not the home page.
And, if possible, put the submit button up and dont in right side of message “Logged in….”
By the way, in the future, can you move all words for the po file for easy translation ?
Thanks and excuse me my bad english.
Hi Leo.
To change the size of the text box copy the file schreikasten.css into your theme directory and edit the input.sk-text to fit your theme.
With the current layout there is no way you can put the button over the message, but i think i would try to create a new layout.
The PO files has all the words as far as I know. Wich word isn’t there? Did you crate a translation file?
Tnx.
Hi Leo.
The new release has a new layout in the widget. Copy the css file to your theme and search for the commented part to put the button over the text.
The ‘forgotten’ texts are now in the PO file. Can you help me to translate it into PO?
Thanks.
Hey,
I just translated the plugin to German. You can download the language files here:
http://dl.dropbox.com/u/601844/2010-01-30-wp-schreikasten-de_DE.rar
Maybe there are some mistakes in it but if I find some I’ll provied you with a new version.
Greets,
Andreas – btw: real nice plugin!!!
Vilen danke!
New release to come with your translation.
Hi Sebastian, your plugin looks great but for a reason I cannot understand, the Wordpress Key I type (and that I use for Akismet) in the field for configuration is not accepted (I have no error message, though). Is there a way to bypass this in the source in order to integrate manually the wordpress key as a variable ?
thanks !
Hi Mateo.
Looks like something goes wrong somewhere in the release cycle. In my own page I can’t change the API key in the SK settings to test it. I’ll check it and release ASAP.
Thanks for the bug report.
Bug solved and new release. Take a look and tell me how it goes.
Hi,
Thanks, that is great plugin for my WPMU
I think there is little error on backend while doing bulk action without any selection:
Warning: Invalid argument supplied for foreach() in /home/XXXXX/public_html/wp-content/plugins/schreikasten/schreikasten.php on line 1244
Thank you very much
Also how to make it to be UTF8 compatable?
İ use Azerbaijani language and ğ,ı,ə,ş umlauts not showing.
Thanks
Hi Pulsuz, thanks for your bug report. I’ll check it today.
About your second point: Spanish has special chars too and SK was developed to show those characters. It is a UTF8 compliant plugin.
I have send you a reply with special characters. Check it.
Can you activate SK in your site to see this situation?
Thanks
I used the list of characters you send (ğ,ı,ə,ş) and you are right, there is a problem. I’ll check it today.
Hi,
Great plugin! I have a web page that allows user to select between dark/light. When they select dark, they can’t see the username and date/time from any other shout. When they select light you can see it. I put the schreikasten.css in my theme folder. I think I would just like to change the color to a permanent green maybe. What do you think?
Hi Joe.
Search for the .sk-userdata-user class inside your schreikasten.css and delete the background-color line, or change it to a color that fits in your theme.
Thanks for using SK.
Hi,
sorry i have make too much trouble. I have another problem and that is directly related to Woredpres MU. I use default sidebar widget code like:
‘My Categories’ ));
update_blog_option($blog_id, “sidebars_widgets”,
array(“sidebar-1″ => array(“pages”,”categories”, “schreikasten”),
“sidebar-2″ => array(“wp_sidebarlogin”, “calendar”, “archives”, “recent-posts”)
));
}
add_action(‘wpmu_new_blog’, ‘default_widgets’);
?>
This code assigns these default widgets to all newly created blog in my site and i added your plugin as default to this code. I got some problem about title of this plugin and some warning at the end of widget. Still created widget shows this errors but while i click save button of widget through backend all errors gone away. I think this trouble is because of this code in schreikasten.php :
function sk_widget($args) {
extract($args);
$options = get_option(‘widget_sk’);
$title = $options['title'];
echo $before_widget . $before_title . $title . $after_title;
sk_shoutbox();
echo $after_widget;
}
As i understand this requires title for widget. Also you can see my test WPMU domain and i test all my plugins there before use it:
http://vsayt.saytda.co.tv
You can also register there.
Please help me, i also translated it into Azerbaijani language, if you want i can give it.
The good news is it works now with AZ. Write something in AZ and add the translation, please.
I’ll check the new bug and try to release in 2 hours.
Thanks.
About this new bug, i have a question first. Did you activate the plugin or just add it to the sidebar? Maybe it is working without the needed settings.
Call the sk_activate() function before create the sidebars. Maybe you have to include the schreikasten.php.
Tell me how it goes.
And off course, send me the AZ translation. I’ll put it in the new release and create the links to your page.
Thanks, Translation is here:
also language could be written as “azerbaijan” on wordpress plugin page and my name is turkel. “Pulsuz sayt” is the slogan of site
http://rapidshare.com/files/347581767/sk-az_AZ.zip
And thanks for link
Also i couldn`t make default widget.
I also use plugin to activate the default widget plugins during registration process. “plugin comander” activates all default plugins on setup process. After auto activation there is no plugin title and seems the default settings is also not sets automatically, after pressing save button on widgets it is normalizes. I think something need to set on default widget code, during registration seems plugin properly activates.
Hi Turkel
My pleasure to link to contributor’s pages. Check if the corrections are ok. Write something in azerbaijan in the shoutbox with translation to see it working.
About how to put it as a default widget, try with this code, and put it before the function update_blog_option();
require_once(‘path_to_schreikasten.php’);
sk_activate();
$options = array(‘title’=>”, ‘registered’=>false, ‘avatar’=>true, ‘replies’=>false, ‘alert_about_emails’=>true, ‘items’=>’5′, ‘refresh’=>0, ‘bl_days’=>’7′, ‘bl_maxpending’=>’2′, ‘announce’=>’1′, ‘requiremail’=>’1′, ‘maxchars’=>’225′);
update_option(‘widget_sk’, $options);
Tell me how it goes.
All azerbaijani umlauts are works, then would be better to replace “azerbaijan” with “azerbaijani” as sentence is about language translation on plugin page and Azerbaijan is a name of country, “azerbaijani” is its language. (sorry it is my fault)
Thank you very much that code worked
But i got error on main frontpage, sub blogs works perfectly with all default widgets ex: http://demo.saytda.co.tv/
And error code on from frontpage: Fatal error: Call to undefined function wp_get_current_user() in /home/trecords/public_html/wp-includes/capabilities.php on line 926
That is because of default widget code. There is also a problem happens on activating this plugin while this code is on, but that is not necessary.
Please, can you check where is the mistake there.
Thank you very much.
Try putting an if sentence before the require_once
if(get_option(’sk_db_version’)) { … }
Everything 100% works
Thank you for all of your work
I made a mistake there, it has to be
if(!get_option(’sk_db_version’)) { … }
because the idea is to create the config data if there isn’t a previous configuration… check again with this change.
Sorry, my mistake.
So last code not worked as default widget, but it is possible to deactivate plugin now, also i got main frontpage error:
wp_get_current_user() in /home/trecords/public_html/wp-includes/capabilities.php on line 926
First one works good but i can`t deactivate plugin, deactivates but still show plugin settings and widget.
Is it possible to make (get_option(’sk_db_version’)) code to work only on blog setup?
Turkel, mail me the files where those scripts are. I’ll check it.
H0la…
Quiero poner tu chat dentro de una pagina… no widgetizado en la barra. En el readme encontre __sk\_shoutbox()__… pero la verdad no me ayudo mucho.
Por cierto, gracias por la ayuda que me puedas brindar
Hola Fher.
Todos los caracteres extras que tiene la función los puse para que en la página de Wordpress saliera en negrilla.
El verdadero nombre de la función es sk_shoutbox();
Trata con esa y me cuentas.
Es que eso hago pongo la funcion, pero me despliega dentro de un text box:
Loged in as El Jefe Log out.
Ok, te trate de responder pero como que no paso por todo el html que iba.
Ya he puesto la funcion en una pagina, pero lo que hace es meter dentro de un textbox todo el codigo del chat y luego el resto del contenido de mi pagina.
Es decir, luego del chatbox ya no muestra nada mas en mi sitio mas que el css.
Pásame el URL de la página, o envíame al correo un snapshoot del problema. La página que sale en tus comentarios se ve bien. ¿Es esa?
Te prometo que lo miraré en la noche.
Sebaxtian…
Aca esta…
http://www.chapincraft.com/chat/
gracias
Fher, la nueva versión (0.11.16) tiene un mecanismo para activar seguimiento por feed, una idea que leí en tu chat.
¿Te sigue poniendo problemas o ya se solucionó todo?
Ni enterado que habia nueva version. Pues es que si lo incluyo en el side bar, todo bien. Pero dentro de su propia pagina con la funcion.. es que me sale el problema.
Ahm, es que precisamente en el README dice que no se pueden tener dos shoutbox, sea uno en una página y el otro en el sidebar… bueno, esa restricción era para otros tiempos… ya entiendo dónde está el problema.. Voy a trabajar en ese bug hoy por la noche, si la peste me deja
Si lo lei, pero como no me funciono en la pagina y necesitaba del chat entonces lo puse en la barra.
Y es que la funcionalidad de que esta integrado con los usuarios de wp es lo que andaba buscando.
Trata quitándolo ya de la barra lateral. Ya la configuración está almacenada.
Pero antes mira el feed y lo agregas a la página en cuestión.
Pues lo acabo de quitar del widget y nada. Por cierto, en Plugins >> configuracion no me parece la opcion del feed o donde esta?
Está en la configuración del widget. Jejejeje.
Hola Fher
Te tengo una buena noticia. La nueva versión de SK puede que te ayude mucho.
Ahora puedes agregar un chatbox a páginas o posts con la etiqueta [sk-shoutbox], y puedes definir una página a donde llegarán las solicitudes de los feed, en tu caso sería agregar la siguente línea de código al archivo wp-config.php
define(‘SK_CHAT’,'http://www.chapincraft.com/chat/’);
Mira el FAQ de SK para ver qué más cambió.
Cuéntame que tal lo ves ahora.
Quedo buenisimo, muchas gracias. Pero con lo de editar el archivo config, no mucha gente ha de tener acceso o conocimietos para hacerlo.
Hola Fher, gracias por reportarme el bug.
Recuerda que SK no está diseñado para ser un chat, así que estas primeas versiones con la solución en el config son apenas para desarrolladores y ‘beta-testers’
y seguro que con el paso de las vertsiones será amigable.
De hecho hoy voy a volverlo multiwidget…. no veo por qué sería necesario pero alguien preguntó si podría hacerlo….
Por cierto, los reply ya no sirven.
Nueva entrega (bug release que llamo).
Solucionado el asunto de las respuestas.
Cualquier otro error que detectes me avisas.
Bueno en ese caso, si estas abierto a recomendaciones, se podria hacer que los autores o administardores les apareciera con color de letra configurable, para que resalte si un admin escribe.
Y quizas un reply que en lugar de ser publico tambien haya privados?
Por cierto, agrege el define al archivo y no veo el rss.
Hola Fher.
Lo que el define hace es modificar el feed para que los enlaces en los items lleguen a la página correcta.
Te toca agregar manualmente el enlace a la fuente.
En tu caso es
http://www.chapincraft.com/wp-content/plugins/schreikasten/ajax/feed.php
Sobre si se puede hacer que resalten los comentarios de los administradores, lo que podemos hacer es que desde el CSS puedas definir un color específico para los usuarios del grupo administrador, del grupo editor y del grupo de simples mortales. No será amigable para el usuario, pero tampoco hará que sea complejo en su administración. SK es un simple shoutbox así que ponerle muchas arandelas tampoco seria bueno para futuros ciclos de desarrollo del plugin.
Sobre las respuesta privadas, mi política con SK es que sea un foro abierto para preguntas al propietario del sitio, y que dado el caso en que un usuario se esté pasando de pesado puedas bloquear el PC desde donde escribe. La posibilidad de respuesta la puse para que llegara directamente a quien hacía la pregunta, pero esta capacidad se convirtió rápido en un chat y ya varias páginas lo están usando con este fin.
No creo posible hacer los mensajes privados porque las personas se escudarían en ese mecanismo para escribir cualquier cosa a cualquier persona, mientras que como está ahora siempre tendrán algo de decoro al escribir.
Yo tomé por costumbre que si dos personas se escriben recurrentemente en el ShoutBox en un tono amigable, les envío un mensaje a los dos diciéndoles que los puedo poner en contacto enviando a cada uno el correo del otro. Luego elimino el hilo de charla entre ellos.
Recurda que SK es un shoutbox, pero que por sus características se puede usar como chat, y jamás tratará de ser un chat completo.
Hola Fher.
Nueva versión de SK con dos tags para poner en las páginas, y CSS nuevo con clases para cambiar los colores de los comentarios de administradores, autores, editores y simples mortales.
Mira el FAQ y me cuentas cómo te va.
this Plugin is very cool. We use it for Kids in the 4 th class und they love it. It is easy and its working fine. Only changing the parameters, e.g. rising the amount of showed entries ist, is not so easy because we use it with a shortcut within a page. so I have to add the widget, change the parameters, save the widget and then delete it quickly. but it works
Maybe using the Parameterpage at the dashboard would make it easier.
thank you for this plugin.
Hi Joachim
Your comment touched my heart. Thanks!
I have some ideas for the next release, but I’m working in other project now, the one that pay the bills
All I can say now is SK would have multiwidget capabilities and an Icon in the editor to add chats in pages and posts, and the shortcut will determine the parameters.
Say ‘Hola niños, y gracias desde Colombia’ (‘Hi kids, and thanks from Colombia’) to your class.
it gets error in mystique theme
Hi Punzer.
Can you be more specific? I installed Mystique theme and Schreikasten in a new test site and all work without problem.
Some specific bar?
Or can you send me an image to look at it?
Thanks.
ok here is the screenshot
http://i48.tinypic.com/2nukhso.png
Hi.
A new release has come. The issue with the none-avatars-lists has been fixed.
Check it again and tell me how it goes.
ok it have been fixed,thx a lot