51

Re: Private Messaging (pun_pm)

With pun_pm installed and both "Navigation links" check boxes not checked I get the following message in topic view:

Notice: Undefined variable: lang_pun_pm in <...>\forum\viewtopic.php(413) : eval()'d code on line 12

If one or both are checked, the message does not appear.

Re: Private Messaging (pun_pm)

Fixed and 1.2.4 is released.

However it will be not easy for users without "New messages" link. They will not know they will have received a message.

53

Re: Private Messaging (pun_pm)

Yes, I understand that. Needed to check how it works with few people knowing before making "new feature added" announcement.

Re: Private Messaging (pun_pm)

Ok, I've got it. Then you have to comment some code in manifest.xml to hide pun_pm from other users, because there are a few features that can't be disabled via admin panel.

The hooks you have to comment are 'pf_change_details_settings_email_fieldset_end', 'aop_features_avatars_fieldset_end', 'vt_row_pre_post_contacts_merge', 'pf_view_details_pre_header_load,pf_change_details_about_pre_header_load'.

And if you going to test pun_pm, please, try to set inbox and outbox limits to a small number and see how the extension works when boxes are overfilled. We'd appreciate your help.

55 (edited by The_Fiddler 2008-12-09 08:54)

Re: Private Messaging (pun_pm)

I want to upgrade the forum I run to 1.3. I use the private message system in 1.2. I want to know how do you upgrade to the pm extension in 1.3 from 1.2.

Re: Private Messaging (pun_pm)

The_Fiddler wrote:

I want to know how do you upgrade to the pm extension in 1.3 from 1.2.

Sorry, but there is no tools for upgrading from 1.2 to 1.3. If you have experience in SQL, you can manually export the message data from mod table into pun_pm table.

Please, post the link to the mod you are using. We'll add the migration tool to the task list.

Re: Private Messaging (pun_pm)

parpalak wrote:

Please, post the link to the mod you are using. We'll add the migration tool to the task list.

It is the Private Message System that Connorhd did. It is on Punres,here is the link to it http://www.punres.org/desc.php?pid=52

Re: Private Messaging (pun_pm)

Is there a way to remove the quote (and its tags) from the preview in the subject table? It looks sloppy with it.

Re: Private Messaging (pun_pm)

mihalis wrote:

Is there a way to remove the quote (and its tags) from the preview in the subject table? It looks sloppy with it.

Or just find a neater way to do it.

> maybe the quoted text could
> appear in quote marks like this
> a bit like how gmail does it
> when you clickreply

Re: Private Messaging (pun_pm)

mihalis wrote:

Is there a way to remove the quote (and its tags) from the preview in the subject table? It looks sloppy with it.

Yes, it's a known issue. This task is a bit more complicated than it seems at first glance. We have to do something in the next major version of pun_pm.

61 (edited by 8k84 2009-01-28 22:10)

Re: Private Messaging (pun_pm)

Request for feature: those who are not allowed to post to forums should not be allowed to send PM.

62 (edited by Grant 2009-01-31 22:30)

Re: Private Messaging (pun_pm)

Is there a way to allow guests to send private messages to registered users without registering themselves and can the pun_antispam captcha be enabled in this case? If this becomes a feature it will be great if the users can disable it too.

63

Re: Private Messaging (pun_pm)

In Opera there's Alt+s shortcut instead Ctrl+s for submitting form. Is it Opera or extension bug?

64 (edited by Reactor 2009-02-07 10:22)

Re: Private Messaging (pun_pm)

Not instead. Ctrl+s worked for me too.
I've disabled the shortcuts, beacuse it was not possible to write in Polish language, due to problem with ś,ć,ą etc.

65

Re: Private Messaging (pun_pm)

New version 1.2.6 of pun_pm was released.
Latest changes:

  • XSS vulnerability via messages list was fixed.

  • Added Safari (and Google Chrome) support in keyboard shortcuts.

  • Added some hooks.

Re: Private Messaging (pun_pm)

I found a tiny little bug in this extension : I wrote a french language pack for it and the alt text for the enveloppe picture showing the PM status is hard-coded in English.

extensions/pun_pm/functions.php, line 986 should be :

                 echo "\t\t\t\t", '<table class="pun_pm_list">', "\n\t\t\t\t\t", '<thead><tr><th class="td1"><input onclick="return pun_pm_select_all(this.checked);" type="checkbox" name="pm_delete_all" value="" /></th><th class="td2"><img src="', $icons_path, '/sent.png" height="16" width="16" alt="', $lang_pun_pm['Status'], '" title="', $lang_pun_pm['Status'], '"/></th><th class="td3">', $forum_page['user_role'], '</th><th class="td4">', $lang_pun_pm['Subject'], '</th><th class="td5">', $lang_pun_pm['Edit date'], '</th></tr></thead>', "\n\t\t\t\t\t", '<tbody>', "\n";

And line 993 should be :

                                '<img src="'.$icons_path.'/'.($message['status'] == 'delivered' ? $forum_page['type'].'_' : '').$message['status'].'.png" height="16" width="16" alt="'.$lang_pun_pm[$message['status']].'" title="'.$lang_pun_pm[$message['status']].'" />',

67

Re: Private Messaging (pun_pm)

I made a french translation of this extension. There is the code:

<?php

// Language definitions used in pun_pm
$lang_pun_pm = array(
    'Private messages'        => 'Messagerie privée',
    'New message'            => 'Nouveau message privé',
    'Edit message'            => 'Éditer le message',
    'Delete message'        => 'Effacer le message',
    'Compose message'        => 'Composer un message',
    'Delete draft'            => 'Effacer le brouillon',
    'Inbox'                    => 'Boite de réception',
    'Outbox'                => 'Boite d\'envois',
    'Write'                    => 'Écrire',
    'Message'                => 'Message',
    'Send button'            => 'Envoyer',
    'Save draft'            => 'Sauver comme brouillon',
    'To'                    => 'À',
    'Receiver\'s username'    => 'Entrer le nom du destinataire',
    'Subject'                => 'Sujet',
    'Preview'                => 'Prévisualiser',
    'Empty body'            => 'Le corps du message ne devrait pas être vide.',
    'Empty receiver'        => 'Le nom du destinataire ne devrait pas être vide.',
    'Non-existent username' => 'Le destinataire «%s» n\'existe pas. Veuillez vérifier son nom d\'utilisateur.',
    'Empty all fields'        => 'Les messages vides ne peuvent pas être sauvé comme brouillon.',
    'Empty'                    => '&lt;Vide&gt;',
    'Receiver'                => 'À',
    'Edit date'                => 'Dernière édition',
    'Sender'                => 'De',
    'Not sent'                => '&lt;Pas envoyé&gt;',
    'Messsage send errors'    => '<strong>Attention!</strong> Les erreurs suivantes doivent être corrigé avant que votre message puisse être sauvé ou envoyé:',
    'Messsage edit errors'    => '<strong>Attention!</strong> Le message ne peut pas être édité à cause des erreurs suivantes:',
    'Delivered message'        => 'Un message envoyé ne peut pas être édité.',
    'Non-existent message'    => 'Le message spécifié n\'existe pas.',
    'Select all'            => 'Selectionner tout',
    'Delete selected'        => 'Supprimer la selection',
    'Selected messages'        => 'Messages selectionnés:',
    'Delete confirmation'    => 'Êtes-vous certain de vouloir effacer ces messages ?',
    'Delete confirmation 1'    => 'Êtes-vous certain de vouloir effacer ce message ?',
    'Confirm delete draft'    => 'Êtes-vous certain de vouloir effacer ce brouillon ?',
    'Not selected'            => 'Pas de message selectionné. Vous devez selectionner le(s) message(s) à effacer.',
    'Too long message'        => 'Le poids de votre message est de %s octets. La limite autorisée est de %s octets.',
    'Sent'                    => 'Envoyé',
    'Read'                    => 'Lire',
    'Not sent'                => 'Non-envoyé (brouillon)',
    'Not read'                => 'Pas lu',
    'Status'                => 'État',
    'sent'                    => 'envoyé',
    'draft'                    => 'brouillon',
    'read'                    => 'lire',
    'delivered'                => 'Livré',
    'Quick reply'            => 'Répondre',
    'Incoming message'        => 'Message entrant',
    'Outgoing message'        => 'Message sortant',
    'Sent -> draft'            => '<strong>Note!</strong> L\'état du message est passé de «envoyé» à «brouillon». Il ne sera pas livré avant que vous ne l\'envoyiez une nouvelle fois.',
    'Message to yourself'    => 'Vous ne pouvez pas vous écrire à vous-même.',
    'Inbox limit'            => 'Limite de la boite de réception',
    'Outbox limit'            => 'Limite de la boite d\'envois',
    'Features title'        => 'Messages privés',
    'Outbox full'            => 'La boite d\'envois totalise un nombre de messages dépassant la limite des %s autorisés. Veuillez, s\'il vous plait, effectuer un tri dans vos messages et supprimer les plus inutiles.',
    'Inbox almost full'        => '<strong>Notice!</strong> La boite de réception totalise un nombre de messages approchant la limite des %s autorisés. Veuillez, s\'il vous plait, effectuer un tri dans vos messages et supprimer les plus inutiles. Cette situation vous empèchera de recevoir de nouveaux messages.',
    'Inbox overflow'        => '<strong>Warning!</strong> La boite de réception totalise un nombre de messages à la limite des %s autorisés. Veuillez, s\'il vous plait, effectuer un tri dans vos messages et supprimer les plus inutiles. <em>Cette situation vous empèche de recevoir de nouveaux messages</em>.',
    'Outbox almost full'    => '<strong>Notice!</strong> La boite d\'envois totalise un nombre de messages approchant la limite des %s autorisés. Veuillez, s\'il vous plait, effectuer un tri dans vos messages et supprimer les plus inutiles. Cette situation vous empèchera d\'envoyer de nouveaux messages.',
    'Inbox limit info'        => 'Quantité maximum de messages dans la boite de réception. 0 = sans limite.',
    'Outbox limit info'        => 'Quantité maximum de messages dans la boite d\'envois. 0 = sans limite.',
    'Empty box'                => 'Cette boite est vide.',
    'Preview message'        => 'Voici comment votre message apparaîtra:',
    'Invalid message save'    => 'Vous avez tenté d\'éditer un message inexistant. Enregistrez le une nouvelle fois.',
    'Invalid message send'    => 'Vous avez tenté d\'éditer un message inexistant. Envoyez le une nouvelle fois',
    'Message saved'            => 'Votre message a été sauvegardé. Redirection...',
    'Message sent'            => 'Votre message a été envoyé. Redirection...',
    'Message deleted'        => 'Effacement effectué. Redirection...',
    'New link'                => 'Nouveaux messages',
    'New link active'        => '<strong>Nouveaux messages (%d)</strong>',
    'New link full'            => '<strong>Nouveaux messages (!)</strong>',
    'Sent -> draft note'    => 'Si vous appuyez sur le bouton «Éditer le message», l\'état du message deviendra «brouillon» et il ne sera pas livré.',
    'PM'                    => 'MP',
    'Snow new count'        => 'Afficher «Nouveaux messages (N)» au sommet de toutes les pages.',
    'Show global link'        => 'Lien vers la boite de réception dans la barre de navigation principale.',
    'Navigation links'        => 'Barre de navigation',
    'Send PM'                => 'Envoyer un message privé',
    'Sent note'                => 'L\'état  du message est «envoyé». Cela signifie que le message n\'a pas pas encore été livré car votre correspondant n\'a pas visité le forum depuis l\'envois ou que sa boite de réception est pleine.',
    'Begin message quote'    => 'Citer le début du message dans la liste de messages.',
    'PM settings'            => 'Configuration des messages privés',
);

?>

Re: Private Messaging (pun_pm)

After upgrading this extension yesterday through the administrator page something is showing up in my footer that never used to be there.

This...Currently installed 6 official extensions. Copyright © 2003–2009 PunBB.

Can anyone tell me what I can change to make it be hidden again?

Re: Private Messaging (pun_pm)

mello757 wrote:

After upgrading this extension yesterday through the administrator page something is showing up in my footer that never used to be there.

This...Currently installed 6 official extensions. Copyright © 2003–2009 PunBB.

Can anyone tell me what I can change to make it be hidden again?

Nevermind. Went searching through stuff and found a difference in the old Manifest.xml file and the new one.

Old

        <hook id="ft_about_end" priority="10"><![CDATA[
if (!defined('PUN_EXTENSIONS_USED') && !empty($pun_extensions_used))
{
    define('PUN_EXTENSIONS_USED', 1);
    echo '<p id="extensions-used">Currently used extensions: '.implode(', ', $pun_extensions_used).'. Copyright &copy; 2008 <a href="http://punbb.informer.com/">PunBB</a></p>';
}
        ]]></hook>

New

        <hook id="ft_about_end" priority="9"><![CDATA[
if (!defined('PUN_EXTENSIONS_USED') && !empty($pun_extensions_used))
{
    define('PUN_EXTENSIONS_USED', 1);
    if (count($pun_extensions_used) == 1)
        echo '<p style="clear: both; ">The '.$pun_extensions_used[0].' official extension is installed. Copyright &copy; 2003&ndash;2009 <a href="http://punbb.informer.com/">PunBB</a>.</p>';
    else
        echo '<p style="clear: both; ">Currently installed <span id="extensions-used" title="'.implode(', ', $pun_extensions_used).'.">'.count($pun_extensions_used).' official extensions</span>. Copyright &copy; 2003&ndash;2009 <a href="http://punbb.informer.com/">PunBB</a>.</p>';
}
        ]]></hook>

Re: Private Messaging (pun_pm)

Is it possible to add a notification by mail ?

71

Re: Private Messaging (pun_pm)

achtungbaby wrote:

Is it possible to add a notification by mail ?

There is an addition for pun_pm, it is called pm_email. Try it.

Re: Private Messaging (pun_pm)

Ok, thanks.

73

Re: Private Messaging (pun_pm)

New version 1.2.6.1 of pun_pm was released.
Latest changes:

  • Fixed a possible SQL-injection on edit message page

  • Added some hooks.

74 (edited by KeyDog 2009-08-17 14:57)

Re: Private Messaging (pun_pm)

the german lang file for those interested (as it only comes in english...)
http://www.mediafire.com/file/coizvydf21y/German.zip
http://rapidshare.com/files/268394785/German.zip

just unzip then add to  Extensions>Pun_PM>lang> ....

also noticed when updating that ext, pun doesn't warn me that my language (german) will be lost when I download and install latest version...

75

Re: Private Messaging (pun_pm)

It is a problem of all extensions; we will add a corresponding notice when a user upgrades some extension.