Your ultimate PunBB resource!
You are not logged in.
## ## ## Mod title: Private Messaging System (PMS) ## ## Mod version: 1.2.2 ## Works on PunBB: 1.2.x ## Release date: 2005-10-05 ## Author: Connorhd (connorhd@mypunbb.com) ## Original Author: David 'Chacmool' Djurbäck (chacmool@spray.se) ## ## Description: Private Messaging System for PunBB ## ## Affected files: viewtopic.php ## footer.php ## header.php ## include/functions.php ## profile.php ## ## Affects DB: New table: ## 'messages' ## New options: ## 'o_pms_enabled' ## 'o_pms_mess_per_page' ## New permissions: ## 'g_pm' ## 'g_pm_limit' ## ## ## Upgrading: Do not use this readme, follow readme-upgrade.txt ## ## ## DISCLAIMER: Please note that "mods" are not officially supported by ## PunBB. Installation of this modification is done at your ## own risk. Backup your forum database and any and all ## applicable files before proceeding. ## ##
Offline
1.2.8 support would rock ;-)
Offline
Which this has...
Offline
I have upgrade my PMS, it's ok ! The "presentation" is better ! Thanks ![]()
Edit : i have found a mistake in the plugin, line 105 (approximatively): numebr instead of number.
I m translating the plugin in french, does it interess you ?
Last edited by Omnisilver (2005-10-08 03:47:53)
Offline
Looks great, one suggestion; maybe you could make it show how much space they have left in the inbox. I figure you would just need to get the info from the database, do some simply math, then print it out. Seems pretty easy.
Offline
The database already got the info for you, its in $pun_user. This snippet does what you need Frank:
You have $num_messages out of the allocated {$pun_user['g_pm_limit']}Both variables are already assigned, so thats all you need!
Of course, that needs to be echoed out. ![]()
Last edited by mck9235 (2005-10-09 12:33:31)
Offline
Frank0051 wrote:
Looks great, one suggestion; maybe you could make it show how much space they have left in the inbox. I figure you would just need to get the info from the database, do some simply math, then print it out. Seems pretty easy.
It already says that in both the inbox and outbox.
Offline
Cool thanks for the code; yeah I thought it would have been an easy feature to build in but the private message system at my site doesn't seem to have that. I will add the little line now, so cool!
Offline
It IS built in, and if you used this mod then it DOES have it.
Offline
Well maybe I skipped a line of coding or something because it wasn't on mine...no need to get hostile, everything is alright; it is a great mod.
Offline
and mail announcements if you get a new pn, is ist possible?
Offline
That is not added yeh,
Frank, that is impossible unless you edited the code in the included files.
Offline
Is it planned or easye to add?
Offline
i think i'll add it to the next version
Offline
lang/French/pms.php
<?php
// Language definitions used by the Private Message System-mod
$lang_pms = array(
// Common
'Messages' => 'Messages',
'Message' => 'Message',
'Save message' => 'Enregistrer le message',
'Send' => 'Envoyer',
// Messages
'Inbox' => 'Boîte de réception',
'Outbox' => 'Envoyés',
'Box0' => 'Aller aux éléments envoyés',
'Box1' => 'Aller à la boîte de réception',
'Action' => 'Action',
'Reply' => 'Répondre',
'Delete' => 'Effacer',
'Quote' => 'Citer',
'Date' => 'Date',
'Status' => 'Capacité de votre BAL:',
'Subject' => 'Suject',
'Sender' => 'Expéditeur',
'Receiver' => 'Destinataire',
'Private Messages'=> 'Messages privés',
'New message' => 'Envoyer un message',
'Multidelete' => 'Effacer plusieurs messages',
'Delete messages comply' => 'Etes-vous sûr de vouloir effacer les messages sélectionnés ?',
'Deleted redirect' => 'Messages effacés. Redirection ...',
'Read redirect' => 'Tous les messages ont été marqués comme lu. Redirection ...',
'Mark all' => 'Marquer tous les messages comme lu',
// Viewtopic
'PM' => 'PM',
// Profile
'Quick message' => 'Envoyer un message privé',
'Show smilies' => 'Afficher les émoticones',
// Send or delete message
'Send to' => 'Destinataire',
'Send a message' => 'Envoyer un message privé',
'Delete message' => 'Supprimer un message',
'Del redirect' => 'Message supprimé, redirection...',
'Sent redirect' => 'Message envoyé à l\'utilisateur, redirection...',
// Errors and messages
'No messages' => 'Aucun message',
'New messages' => 'Vous avez reçu un nouveau message privé',
'No user' => 'Nom d\'utilisateur inconnu.',
'Full inbox' => 'Votre boîte de réception est pleine!',
'Inbox full' => 'La boîte de réception de cet utilisateur est pleine, il ne peut reçevoir de messages.',
'Sent full' => 'Impossible d\'enregistrer votre message, votre boîte est pleine !',
'Flood start' => 'Patientez au moins',
'Flood end' => 'secondes entre deux envois. Merci de patienter et de réessayer un peu plus tard.'
);Based on the 1.2.1 version and the jdurand's trick.
Offline
I had PMS 1.2.1 and for some reason the messages wouldn't send. I just upgraded and everything seems to work fine ![]()
Last edited by Metsuo (2005-10-15 15:16:50)
Offline
hi everybody
i've just finish to install this mod and all seems to be right ...
but ... ^^
when I want to send a PM, i'get this : "Erreur : Unable to get user id" .
Does anyone have already got this bug ? And fixed it ? ;-)
thank you
Offline
Hi,
I've got this Notice on top of the board :
Notice: Undefined index: o_pms_messages in /home/www/akilons/www/pun/include/pms/header_new_messages.php on line 11
What would be the problem ?
Thanks
Last edited by XIV (2005-10-17 05:49:10)
Offline
It's suppose to be a field in the database under : "punbb_messages" ?
Because in the "install_mod.php", there's nothing on "o_pms_messages"
Offline
Hi Aurthor/Pros, I need a little help here.
This is my forum : http://www.klsu.fm/forum/
I updated as per the Readme text, but why I'm getting this error?
However, I haven't touched this portion of Readme that says :
Affects DB: New table:
## 'messages'
## New options:
## 'o_pms_enabled'
## 'o_pms_mess_per_page'
## New permissions:
## 'g_pm'
## 'g_pm_limit'
... because I don't know what it means! Should I've to create a new table or update one existing table? If so, then how..
TIA ya'll! ![]()
Offline
you just need to run install_mod.php to update the database
Offline
seva wrote:
it's field in table pun_config
in pun_messages there is messages themselfs
Where is it created ? Because there's no "o_pms_messages" in install_mod.php
Offline
query for PostrgeSQL
INSERT INTO "pun_config" ("conf_name", "conf_value") VALUES ('o_pms_messages'::character varying, '50');
query for MySQL
INSERT INTO `pun_config` ( `conf_name` , `conf_value` ) VALUES ('o_pms_messages', '50');
Offline