Nouvelle Ajax Shoutbox

Wordspew Après de long mois à mettre à jour, à peu près régulièrement, la shoutbox, j’ai passé quelques temps à y ajouter de nombreuses fonctionnalités.

Par où commencer ?…

  • L’interface d’administration est maintenant quasiment totalement en Ajax.
  • La shoutbox peut être complètement vide sans provoquer d’erreur
  • Dans l’administration, si quelqu’un ajoute un message il apparaît en temps réel. Tout comme les utilisateurs en ligne (si l’option est activée).
  • Les couleurs choisies pour le look de la shoutbox apparaissent en temps réel quand vous les changez.
  • Vous pouvez facilement ajouter n’importe quel thème à la shoutbox (exemple : Photoshop, articles du blog etc.). Pour cela, sélectionnez Nouveau Thème dans la liste déroulante entrez le nom de votre nouveau thème et un texte d’accueil.
  • Vous pouvez utiliser les avatars de Gravatar, choisir leurs tailles et leurs positions
  • Les anciens messages sont maintenant archivés.
  • Vous pouvez envoyer un message privé à n’importe quel utilisateur (enregistré ou pas) en faisant précéder votre message de @@ suivi du nom de la personne souhaité (ex: @@Pierre)
  • On peut maintenant choisir de manière facile et précise (méthode basé sur les rôles) :
    • Qui peut administrer la shoutbox
    • Qui peut voir la shoutbox
    • Qui peut voir les archives de la shoutbox
    • Qui peut voir les différents « thèmes » de la shoutbox
  • Vous pouvez utiliser une shoutbox avec un thème spécifique sur une page séparée. Pour cela il suffit d’appeler la fonction comme ceci sur votre « modèle » de page :

    « test » étant le nom du thème choisit pour la shoutbox.

  • Vous pouvez effacer les messages directement dans la shoutbox, sans passer par l’interface d’administration
  • Le code a été optimisé pour nécessiter moins de ressources et de requêtes sur le serveur
  • L’administrateur peut supprimer un ou plusieurs messages dans les archives
  • Toutes modifications dans le fichier de feuille de styles ou dans un paramètre d’apparence de la shoutbox est immédiatement répercuté sur la shoutbox mais la feuille de style sera automatiquement rechargé depuis le cache du navigateur la prochaine fois.
  • De jolis effets de fondu ont été ajoutés lors de l’édition, suppression et bannissement d’enregistrements
  • L’affichage du temps depuis le dernier message est maintenant affiché en temps réel.
  • Plus besoin de demander aux utilisateurs réguliers du blog de vider leurs caches suite aux mises à jours du plugin
  • Chargement de la shoutbox plus rapide garanti ;)
  • Nouvelle gestion du son grâce à un petit lecteur flash très léger (2,61ko) merci à Eric HEUNTHEP http://portfolio.neolao.com/ pour son sympathique lecteur mp3 http://flash-mp3-player.net/en/players/js/preview/. Maintenant l’utilisation du son dans la shoutbox ne devrai plus poser de problème à personne même aux utilisateurs sous Linux ;)
  • Les archives et les flux RSS s’affichent en fonction du thème choisit dans la liste déroulante
  • Et plein d’autres petites améliorations que vous découvrirez et apprécierez, j’espère, à l’usage

Attention, c’est le fichier wordspew-fr_FR.mo qu’il faut placer dans le dossier wordspew, le fichier PO sert juste à générer le fichier de traduction MO…
Activez le plugin sur la page des plugins ensuite allez sur Thème -> Widgets et déposez la shoutbox où vous voulez.
Si vous faites une mise à jour, n’oubliez pas de désactiver/réactiver le plugin.

Remerciements à : Mänu, Rita, Josef et Metti pour la traduction Allemande, 800A pour l’Italien, Pedro, Nosgoroth pour l’Espagnol, Andrei pour le Roumain, Gumbah pour le Hollandais, Pica pour le Hongrois, Zulan pour le Suédois, Piotr pour le Danois, Xavi pour le Catalan, sain†sinner pour l’Ukrainien et le Russe, Tzafrir pour l’Hébreu, Emil pour le Norvégien, Tinh Linh pour le Vietnamien, Xu Cong pour le Chinois, Mika pour le Finlandais, Zafer pour le Turc, Rodrigo pour le Portugais, Joca pour le Serbe, Jaromir pour le Tchèque, Dolugen pour le Mongolien.

en-US FR DE | DE | IT ES RO NL HU SE DK CAT UA RU IL NO VN CN FI TR PT SR CZ MN

Pour les questions, bugs et aspects techniques, dirigez vous plutôt vers le Forum.

69 commentaires sur “Nouvelle Ajax Shoutbox”

  1. thierry dit :

    Petit message pour te féliciter de cette shoutbox tres sympa que j’ai trouvé par hasard car c’est dommage mais sur le site wordpress elle est encore en version 1.15!!
    par contre petite question car lorsque je mets un message pas de souci par contre je suis obligé de recharger la page pour en mettre un autre ou en effacer quasiment à chaque fois, si tu as une petite idée sur le sujet!

    Merci bien en tout cas! (mon site démarre à peine donc t’affoles pas si c’est un peu vide!!)

  2. Pierre dit :

    @Lyam : réponse sur le forum ici.

    Amicalement,

    Pierre.

  3. Lyam dit :

    Bonjour.

    Merci pour ce plugin vraiment sympa.

    J’aimerai l’installer dans l’admin au dessus du dashboard pour pouvoir laisser des message au autre admin du blog.
    J’ai donc rajouté cette ligne dans mon admin/index.php :
    **********************************************

    ****************************************************

    puis dans le admin-header.php :

    *******************************************************

    //7) {
    if(document.getElementById(‘shoutboxU’).style.display!= »none ») {
    limit++;
    count_http++;
    }
    }
    if(count_http>limit) {
    alert(« Sorry, but you can post only one url by message… »);
    return false;
    }
    theText+=’ ‘+theURL;
    var spam = [];
    TextToScan=theText.toLowerCase();
    for (var i = 0; i « +spam[i].toUpperCase());
    return false;
    break;
    }
    }
    return true;
    }
    //]]>

    *************************************

    Il n’y a pas d’erreur, le shoutbox apparait bien mais les parametre ne sont pas pris en compte et tout ce qui est ajax ne fonctionne pas (comme la croix delete).

    As-tu une idée de ce qui peut manquer dans mon header?

    merci

  4. Serghei dit :

    Thanks very much for chat. It best, that i saw…

  5. Pierre dit :

    @Sera, i haven’t found the shoutbox on your blog… And, please, if you have problem(s) with it go to the dedicated forum.
    I’ll do may best to help you there and you’ll can share your experience (bad or good) with others users ;) .

    Amicably,

    Pierre

  6. Sera dit :

    Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/trance/public_html/wp-content/plugins/wordspew/common.php on line 75

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/trance/public_html/wp-content/plugins/wordspew/common.php on line 75

    PLs help me i got this error message after i send up a message into my *updated shoutbox. . . i use wordspew vers 4 & wordpress vers 2.7.1 pls i hope u can help me ;) thx in advance

  7. anis dit :

    désoler mais c’étais pas de ce sens la que j’ai dit alors… mdr je croyait que c »étais toi qui ma répondue en allemand lol

    bon mdr

    merci beaucoup

  8. Pierre dit :

    Patience et longueur de temps font plus que force et que rage…

    du calme anis…

    <?php if(function_exists(jal_get_shoutbox)) { jal_get_shoutbox(); } ?>

  9. anis dit :

    alors ??

  10. JoE dit :

    Für alle die sich die deutsche Sprachdatei installieren wollen:
    Die erste Übersetzung ist nicht vollständig, was mich zu der Vermutung getrieben hat, ich bin zu doof sie zu installieren. Es gibt jetzt eine neue Version von Metti, wo auch die Last Message Überschrift übersetzt ist.
    Auf die zweite DE Flagge klicken oder hier zu haben.
    Die Datei entpacken und in den /wp-content/plugins/wordspew Ordner schieben und alles wird Deutsch.
    Dank an Pierre und Metti !

  11. anis dit :

    bonjour,

    es que c’est possible de me donner le code a mettre dans la sidebar (car la mienne n’est pas widgetiser )

    merci

  12. Metti dit :

    Hrm -your Contact form seems not to work.

    Anyway: I’ve made another german language file which is in opposit to the recent one in informal speech.

    Please send me a mail so that i can send you the package.

    Cheers,
    Metti

  13. ht dit :

    I wonder if anybody tried this with MU…

  14. ht dit :

    @bernd, I encountered the same issue and same solution as Omachka.

    @Alice, you bet it is more flexible if we can just embed this to a page like other plugins you only place [someTextHere]. I have it on templates at the moment.

  15. Alice dit :

    is there a way to embed the shoutbox on a page?
    other than that, great plugin. been using it for a while now.

  16. Omachka dit :

    To bernd. I had the same error but I just went back and tried to activate one more time and it worked the second time. I also had to refresh several times for my tags to show up after upgrading the plug-in on 2.8 but finally it is all working perfectly. Try again.

  17. bernd dit :

    trying to activate the shoutbox plugin after installing it on wordpress 2.8 i obtain an error message:
    « The plugin does not have a valid header. »
    Please help!

  18. ht dit :

    Once again, thank you very much for this awesome shoutbox.
    I have the shoutbox working fine in separate page. Planning to move it to the front as an sticky post but under the more tag.
    Is it possible to place this inside the post?

  19. Phinx dit :

    Whoops! Nevermind about the word wrap on the text box, it’s fine, my bad!

    But still interested in your advice on how to exclude WordPress « Subscriber » class members from commenting.

  20. Phinx dit :

    Merci Pierre!

    Sorry for being so vague in my last, what I should have said is that I would like to exclude those members at my site who I have designated at the WordPress Class of « Subscriber » (as opposed to « Contributor », « Author », etc.) from being able to enter messages.

    My thought was that if I could include a condition that checks their WordPress Class and if they were at « Subscriber », the Text Entry Box and Submit Button could either be disabled or just not created on their page.

    What do you think? I don’t know coding well enough to know how to write this, I’d appreciate your help if possible.

    Also, thanks to your tip I’ve enlarged the text entry box but the text still continues across on a single line. Is there a way to get the text to wrap around within the box?

    Thanks so much!

  21. Pierre dit :

    @Phinx, well i’m not sure to well understand what you want for the first part… Do you want that unregistered users and all registered users (who are not suscribers) will be able to send messages ? In fact, everybody will be able to see the messages and everybody will be able to send messages in the shoutbox except Suscribers… ?
    For the second part it’s easy. Edit css.php and at line 23 you’ll find :

    height: 200px;

    replace the value by the desired one ;)

  22. Phinx dit :

    Very nice work on this!

    I have one tweak I’m hoping you can help me with. I would like all users to see messages but would like to exclude Subscribers from entering messages.

    I’m not as literate in programming as I’d like to be but I’m thinking that an « IF », relying on their user status could be used to prevent the Text Entry box and Submit button from being created on their page…I’m just not sure how to accomplish that.

    Also, is there a way to increase the height of the Text Entry box?

    Thanks!

  23. Pierre dit :

    @The Alien, ben c’est pourtant facile ;) tu ajoutes dans css.php (par exemple, pour qu’il apparaisse en rouge) :

    #chatoutput li span.nom_d_utilisateur, #chatoutput li span.nom_d_utilisateur a { color: red; }

    et ça marche :)

  24. The Alien dit :

    Merci Pierre, je corrigerais pour le php5, mais ça me permettait de faire un rappel car beaucoup d’extensions WordPress la nécessite ;)
    Encore une fois, des explications limpides alors que j’étais pas convaincu que mon texte soit clair … Allez, une dernière petite pour la route, et si tu me trouve la solution, je fais de toi mon maître :D ( <<< fonctionne celui là ?! :D ) Grâce à firebug, j’ai pu repérer les propriétés du CSS attenant au pseudo de la personne qui lance un message, or, j’ai tenté de mettre cette balise :

    #jal_user TheAlien <<< pour prendre mon ID par exemple

    et donc lui attribuer une couleur … afin que chaque user puisse avoir sa couleur en fonction du rang dans lequel il se trouve, or, cela ne fonctionne pas … Une idée de mon erreur ou de la faisabilité de ceci ???
    Merci d’avance, Ô grand manitou !!!

  25. Pierre dit :

    @Leo, that’s weird, it’s a native function of WordPress for translate sentences… For the moment i have no idea that could help you with that problem :( . Perhaps a WP install problem (or some missing files ?) ?

  26. Leo dit :

    I am getting an error_log with lots and lots of this error

    PHP Fatal error: Call to undefined function __() xxxxxx/wp-content/plugins/wordspew/common.php on line 19

  27. Pierre dit :

    @The Alien, c’est pas moi m’sieur :) !! En fait c’est un petit WordPress. En temps réel les smileys s’affiche bien car ils sont « parsés » par ma fonction javascript de remplacement. Ensuite lors d’un chargement « à blanc » c’est WordPress qui prend le pas et formate les smileys. Un petit exemple, la fonction de transformation des smileys a des problèmes dans plus cas. Un smiley débute une phrase (dans un paragraphe) alors il ne s’affiche pas correctement, deux (ou plus) smileys se suivent : idem, un smiley est suivit de n’importe quel ponctuation (. , ?, ! etc.) idem.
    Donc, faudra attendre un peu mais je pense que tôt ou tard l’équipe de dèv de WP corrigera ce petit bug pas bien méchant ;) .
    [EDIT]
    2 petites choses.

    1. le smiley à la fin de mon texte illustre parfaitement ce que je te décrivais.
    2. Tu mets sur ton site qu’il faut passer en version 5 pour le php pour que l’extension fonctionne mais en fait ce n’est pas nécessaire ;)

    [/EDIT]

  28. The Alien dit :

    Merci Pierre, j’ai bien saisi la notion de formatage, et ainsi par simple réactualisation, je peux vérifier la date des messages.
    Pour info, j’ai placé une astuce sur l’un de mes sites en faisant un trackball vers cet article, notamment pour les soucis d’installations sur l’hébergeur Free.
    Je me suis juste aperçu d’un léger bug : lors de l’utilisation à la suite de même smiley ( ex : :P :P:P ) Un smiley sur deux. Lors de l’accès à la page de la shoutbox, les « archives » encore présentes dans la « boite à cris » n’affichent pas les suites de même smileys, or si on utilise une fois en ligne cette même série, celle là s’affiche normalement, pour ne réafficher qu’un smiley sur deux dès fermeture du browser et réouverture sur la page du « T’chat »
    J’ai été clair ??? :D

  29. Serge dit :

    oh guys, it doesn’t work with WP MU :-( ((

    I use wpmu+buddypress……

  30. Serge dit :

    … and it doesn’t work for me too :( ((

  31. dmitry dit :

    Pierre, i hid because it didnt work, now you can see it. Im just adding it to sidebar, i havnt modify anything, but it not working anyway

  32. Li-An dit :

    Bonjour, j’utilise votre plugin avec beaucoup de plaisir mais je trouve le flux RSS assez mal fichu: si on clique sur le lien on se retrouve sur une page avec le message mais sans possibilité de répondre (et avec toute la struture du blog affichée dans la barre d’adresse !). Est-ce qu’il ne serait pas préférable de modifier ça pour avoir bêtement accès au blog directement ?

  33. Pierre dit :

    @John, i don’t understand… You have contact me by mail saying that there was a problem under Firefox. I’ve done a few tests with Firefox without any error. Now you add a comment, telling me that your messages are treat as spam. I’m just coming back from your blog where i was able to post 3 messages without any problem. So i don’t know what can i do more for you. Everything works fine.

    @Dmitry, i have tested by myself, about 4 month ago (under WP 2.3.1 and 2.7) the shoutbox with the Inove theme without any problem. I’m gone on your blog, i’ve seen the title of the shoutboux in the sidebar but couldn’t see any call to javascript or css files in the header. I don’t understand why. Have you modify something ?
    I just install the last release of Inove (1.4 from 05/11/2009) under WP 2.7.1 (on my local PC) and try to get the shoutbox under all the availables sidebars (north, south, west, east, admin) everything works fine except in the admin sidebar where js and css files are not correctly load in the dashboard page.

    @tiki god, i add expirations times to the headers of css and javascript files (30 days or 60 days) so it can’t create excessive load on your server. These files are load only one time by an user. After what they are reload from the users caches until expirations times.

  34. tiki god dit :

    this plugin is trying to load a javascript bit on every single page. why is that? I only have it installed on one page. it should not be loading js on every page! this plugin is killing my server :(

  35. dmitry dit :

    Pierre, try your shoutbox with theme Inove, dont working, could you help solve this problem, thx!

  36. John dit :

    HI
    The shoutbox treats my own shouts as spam? Is there a chance that I can hear a sound when people in my website using it without me being in the actual window?

  37. Pierre dit :

    @loli and @kemem really sorry, but you know, it’s hard to show messages in real time without any request on the server. There’s only little datas who transit by the server (around some bits) it’s « heavy » about the number of requests (real time needs that) not in weight. I use sessions variables as much as possible to light the database request but it always stay some indispensables queries.
    I do my best to offer as clean as possible the new release of the shoutbox but i know that i can’t satisfy everybody. Please don’t be too vindictive.
    Amicably,

    Pierre.

    @The Alien, bon et bien là, même si tu débutes en php il va falloir éditer le code pour obtenir ce que tu souhaites ;) . Télécharges donc Notepad ++ et edites wordspew.php.
    Dans le menu « Format » vérifies que le document soit ouvert en « Encoder en UTF-8 (sans BOM) » si ce n’est pas le cas choisit ce format dans le menu, ensuite va à la ligne 561 et 562 tu trouveras ça :

    echo '<li id="comment-new'.$r->id.'">'.$avatar.'<span title="'.jal_time_since( $r->time ).'"
    class="'.$class. sanitize_name($r->name).'">'.stripslashes($url).' : </span>'.convert_smilies(" ".stripslashes($TheText)).$delete.'</li>

    remplaces par :

    setlocale(LC_ALL,WPLANG.".UTF8");

    echo '<li id="comment-new'.$r->id.'">'.$avatar.'<span class="'.$class. sanitize_name($r->name).'">'.stripslashes($url).' '.
    strftime("%A %d %B %Y %H:%M", $r->time).' : </span>'.convert_smilies(" ".stripslashes($TheText)).$delete.'</li>

    Bon dans l’exemple j’affiche la date au format : « Lundi 25 Mai 2009 11:12″ donc si tu ne veux que l’heure et les minutes tu ne gardes que %H:%M.
    Par contre soit conscient que lors du post d’un message, c’est « l’ancien » formatage qui sera utilisé. L’heure suivant le nom n’apparaîtra qu’aux chargements des pages puisque dans les données renvoyées par le serveur il n’y a pas cette notion de date/heure…
    Amuses-toi bien.
    Amicalement,

    Pierre.

  38. The Alien dit :

    Bonjour Pierre,

    Tout d’abord, merci pour cet excellent plugin.
    J’aurais tout simplement une question : novice en php, comment pourrais je afficher l’heure du message directement après le pseudo ???

    Merci de ta réponse !

  39. kemem dit :

    hi pierre, after i’m using your shoutbox, my web get suspend from hosting service :( (

    The code have been optimized to require less ressources and queries on the server

  40. loli dit :

    hai piere
    your scripts are creating so much load on the server that is causing the apach server to crash.

    i have disable account in my hosting??

    please respond me

  41. loli dit :

    thx for shoutbox its powerfull for me and worked :)

    Btw how add the smiley in my shoutbox?? like yahoo smiley??
    plzz respond me :)

    thx for advance

  42. Christian dit :

    Hello,

    i have the following problem:
    Warning: array_map() [function.array-map]: Argument #2 should be an array in D:\xampp\htdocs\cms\wp-content\plugins\wordspew\common.php on line 75

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in D:\xampp\htdocs\cms\wp-content\plugins\wordspew\common.php on line 75

    i have the latest version. no upgrade, new installtion on wordpress 2.7.1

    Can someone help me?!

    thanks
    christian

  43. Eric dit :

    Sorry Pierre, no luck yet. I tried your trick in the admin panel: selecting the -1 theme and then Delete ALL Messages. But I still cannot send a message to the shoutbox in Internet Explorer and Firefox still keeps creating a new -1 theme.

  44. Eric dit :

    Also when I send a message to the shoutbox in firefox and I look in my wordpress database I see the message is filed in an automaticly created cat field -1.

    And Internet Explorer only seems to show messages when the cat field is left empty (In the shoutbox management available in the theme Miscellaneous.

    summarising:
    IE: the send button is greyed out, so not possible to send messages, the smiley list is not visible and only the messages with an empty cat field (theme Miscellaneous) are visible.

    Firefox: The send button and smiley list is working, but the messages send are placed in the automaticly created cat field -1 (theme -1)

  45. Eric dit :

    Pierre, i’ve upgraded the shoutbox from 3.9 to 4.0. Everything seems to be working fine, except voor IE users. From Firefox you can send messages but In IE7 and IE8 the send button is greyed out.

    Also tried switching the wordpress theme but still the same problem.

    What can I do to get this fixed ?

  46. Pierre dit :

    @Julie, the problem seems to be corrected now ;) .
    @Chris, this is really hard to search for/correct a problem without any URL :(

  47. Chris dit :

    Pierre,
    Just loaded WordPress 2.7 and your latest version of Shoutbox.

    All looks good but Shoutbox entries do not appear and all are counted as blocked spam. I have activated and deactivated the plugin after reloading the Wordspew folder on two occasions.

    Any suggestions?

  48. Julie dit :

    Hi Pierre, for some reason my ‘send’ button is not clickable. No messages can be sent. *lol* How odd. I’ve been using your version of wordspew for a long time and have not ever had any troubles really.
    I can’t figure out why the button won’t work though :(

  49. lalo dit :

    This and askimet are the best plugins that I ever seen. Thanks Pierre!!

  50. MrMan dit :

    Pierre: by standalone I mean shoutbox that doesn’t require WordPress to work… I mean shoutbox you can use on it’s own/ embed in other pages.

  51. Kostas dit :

    Many Thanks Pierre! One more question.

    Is it possible to change message order. for example last message goes down like normal chat , msn style , not like a shoutbox. (without of course scrolling down manually if messages get too many)

    cant find such an option to « Live ShoutBox » panel.

    =)

  52. Pierre dit :

    @Kostas, ok i’ll do my best to be as clear as possible ;)
    Anyway the beginning of the « procedure » will always be the same.
    I suggest you change in the admin console of the shoutbox the parameter Who can see the differents themes to « Administrator ». By the way regulars users will not be able to see your differents themes elsewhere than you permit it.
    Then create the themes (or categories, name them as you want ;) ) you need. To do that, select « New Theme » in the combo, name it and add a default sentence in your newly created theme (eg: « Welcome on my new created theme about Music ») do it for every theme you want.
    Now, you have two possibilities.

    1. the easier way : you create one template page for every needed theme based on the static template i write below. Don’t forget to change the parameter in the call of the function jal_get_shoutbox in each of your template page. Once done, create a new page, select the template « Shoutbox static » optionnaly enter a short description for your page and click « Publish ».
    2. the harder way you create only one template page with a querystring parameter (i called it « TheCat » in my example) based on this template. Once done, create a new page, select the template « Shoutbox with parameter » optionnaly enter a short description for your page and click « Publish ».
      The hard part here is the call to the created page… You’ll have to manually write the url to you dynamic page. Example somewhere you’ll have to write : <a href="the_url_to_my_shoutbox_page?TheCat=Theme_name">Link</a>

    Hopping that this explanation doesn’t seems to be too complicated, because in fact the process isn’t too much as it seems ;)

    Template with parameters


    <?php
    /*
    Template Name: Shoutbox with parameter
    */
    $MyCat=(isset($_GET['TheCat'])) ? $_GET['TheCat'] : "My default theme";
    ?>
    <?php get_header(); ?>

    <div id="content">
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <div class="post-title"><em><?php the_title(); ?> » <?php echo $MyCat; ?><?php edit_post_link('<small>Edit</small>'); ?></em> </div>
    <div class="post-content">
    <?php the_content(); ?>
    <?php if (function_exists('jal_get_shoutbox')) { jal_get_shoutbox($MyCat); } ?>
    </div>
    <?php endforeach; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    </div>

    <?php get_footer(); ?>

    Static template


    <?php
    /*
    Template Name: Shoutbox static
    */
    ?>
    <?php get_header(); ?>

    <div id="content">
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <div class="post-title"><em><?php the_title(); ?> <?php edit_post_link('<small>Edit</small>'); ?></em> </div>
    <div class="post-content">
    <?php the_content(); ?>
    <?php if (function_exists('jal_get_shoutbox')) { jal_get_shoutbox("My static theme"); } ?>
    </div>
    <?php endforeach; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    </div>

    <?php get_footer(); ?>

  53. ht dit :

    Thank you very much Pierre.

  54. Kostas dit :

    Nice work Pierre!

    I use Shoutbox at a page and not at the sidebar.

    Now a question:

    can i assosiate each page-link with a different chat « channel »?
    for examlpe

    General Chat
    Music Chat
    Games Chat
    etc?

    and if yes how? :) if not it’s ok! it still rocks!

  55. Pierre dit :

    @ht, you can change the width in « css.php » around the line 50 you’ll found #chatForm textarea { width: 150px; } adapt it to your need ;)

  56. ht dit :

    Hi Pierre,

    This is awesome! Thanks a lot.

    Btw, how can I modify the text area size?

  57. Pierre dit :

    @MrMan, i don’t understand what you’re meaning.
    @ciprian one it’s done, don’t forget to remove the added line or the $_SESSION['LoggedUsers'] will never be kept ;)

  58. MrMan dit :

    Looks nice, you should also make standalone version.

  59. Pierre dit :

    @ciprian, download Notepad++, edit « wordspew.php » in UTF-8 format (Menu -> Format -> Encoding in UTF-8 without BOM) and line 126 write unset($_SESSION['LoggedUsers']);
    It will « manually » unset the session variable and should, normally, correct your problem ;)

  60. ciprian dit :

    hey, i have the same problem as @Nosgoroth upgrading from 3.73 release to the 4..
    how do i “manually” unset this session variable

  61. Pierre dit :

    @Nosgoroth, we found the solution ;) .
    Nosgoroth used the 3.73 release and for weird reason the server kept sessions variables. But from the 3.73 release to the 4.0 release i didn’t use same type of variable in the session loggedusers variable. So i had to « manually » unset this session variable.
    The old one was a string the new one is an array. This explain the bug he had :)
    @thowi you can download Poedit here. Once it’s done, place « wordspew-de_DE.po » in the wordspew folder on your computer, load the file in Poedit, go to menu, click on « Catalog » -> « Update from sources » then you’ll can translate sentences ;)
    Once it’s done do not forget to translate me the files (PO and MO) i’ll make them available for everyone and link to your blog. Josef wanted to do the translation but he forget me :) .

  62. thowi dit :

    Hey! First of all, thanks for this very great plugin! I found some mistakes in the German language file. Is there a way to edit the text of box? Somewhere in the wordspew-de_DE.mo i assume?

  63. Nosgoroth dit :

    It didn’t work :(

    I’m using MySQL 5; I sent you a mail back.

  64. Pierre dit :

    Hi all,

    @Steffen, yes you can ;) you’ll see an example in the FAQ here http://www.monblogamoua.fr/forum/?forum=1&topic=1&page=1 and now favor to the new relase, you can add, eventually, a parameter to display a specific theme by calling the function like this :
    jal_get_shoutbox("name of your theme")

    @Nosgoroth, i sent you a mail to explain what i think been the problem. But for the information of all i giv you the answer here too ;) .
    So, i think you have a MySQL version under 4.1 so the array of users was not created correctly because i used a « SELECT LOWER » in my query. If the function LOWER wasn’t known by you MySQL release an error was return not an array. So i modify some code in common.php and wordspew.php to not use the LOWER function.
    I haven’t change the number of the release (still 4.0) but who will know :mrgreen:

  65. Nosgoroth dit :

    I’m seeing this error:

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/s06d7073/public_html/blog/wp-content/plugins/wordspew/common.php on line 75

    That’s for each comment in the shoutbox. Additionally, the shoutbox doesn’t refresh on its own (AJAX doesn’t work). I’m going to have to revert to 3.7x :(

  66. Nosgoroth dit :

    Wow, finally an update, and just when the old one was starting to act up!

  67. Steffen dit :

    Can I use the Shoutbox an a page not at the sidebar? If Yes how to do? Thanks

  68. dergringo dit :

    Sounds great! Thanks for the effort. Where can I download :)

Laisser une réponse