PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.


Login to move these ads to the bottom of the page

#1 2005-10-05 13:48:52

Connorhd
Member
Registered: 2005-01-15
Posts: 202

Private Messaging System 1.2.x 1.2.2

Code:

##
##
##        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.
##
##

Download here

Offline

 

#2 2005-10-06 15:27:04

terje
New member
Registered: 2005-10-04
Posts: 8

Re: Private Messaging System 1.2.x 1.2.2

1.2.8 support would rock ;-)

Offline

 

#3 2005-10-06 16:28:06

Smartys
Member
Registered: 2005-03-17
Posts: 332
Website

Re: Private Messaging System 1.2.x 1.2.2

Which this has...


Free PunBB Hosting - lots of mods, easy to customize

Offline

 

#4 2005-10-08 03:38:52

Omnisilver
New member
Registered: 2005-09-17
Posts: 3

Re: Private Messaging System 1.2.x 1.2.2

I have upgrade my PMS, it's ok ! The "presentation" is better ! Thanks big_smile

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

 

#5 2005-10-08 20:36:34

Frank0051
New member
Registered: 2005-09-30
Posts: 9

Re: Private Messaging System 1.2.x 1.2.2

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

 

#6 2005-10-09 12:33:09

mck9235
Member
Registered: 2005-10-08
Posts: 17

Re: Private Messaging System 1.2.x 1.2.2

The database already got the info for you, its in $pun_user.  This snippet does what you need Frank:

Code:

You have $num_messages out of the allocated {$pun_user['g_pm_limit']}

Both variables are already assigned, so thats all you need! smile  Of course, that needs to be echoed out. wink

Last edited by mck9235 (2005-10-09 12:33:31)

Offline

 

#7 2005-10-09 12:34:24

Connorhd
Member
Registered: 2005-01-15
Posts: 202

Re: Private Messaging System 1.2.x 1.2.2

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

 

#8 2005-10-09 14:28:36

Frank0051
New member
Registered: 2005-09-30
Posts: 9

Re: Private Messaging System 1.2.x 1.2.2

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

 

#9 2005-10-09 23:23:25

Connorhd
Member
Registered: 2005-01-15
Posts: 202

Re: Private Messaging System 1.2.x 1.2.2

It IS built in, and if you used this mod then it DOES have it.

Offline

 

#10 2005-10-10 02:59:22

Frank0051
New member
Registered: 2005-09-30
Posts: 9

Re: Private Messaging System 1.2.x 1.2.2

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

 

#11 2005-10-10 09:10:07

ronizzel
New member
Registered: 2005-06-21
Posts: 6

Re: Private Messaging System 1.2.x 1.2.2

and mail announcements if you get a new pn, is ist possible?

Offline

 

#12 2005-10-10 09:15:22

Connorhd
Member
Registered: 2005-01-15
Posts: 202

Re: Private Messaging System 1.2.x 1.2.2

That is not added yeh,

Frank, that is impossible unless you edited the code in the included files.

Offline

 

#13 2005-10-10 09:16:43

ronizzel
New member
Registered: 2005-06-21
Posts: 6

Re: Private Messaging System 1.2.x 1.2.2

Is it planned or easye to add?

Offline

 

#14 2005-10-10 10:25:18

Connorhd
Member
Registered: 2005-01-15
Posts: 202

Re: Private Messaging System 1.2.x 1.2.2

i think i'll add it to the next version

Offline

 

#15 2005-10-15 05:25:14

Pandark
Member
From: France
Registered: 2005-08-28
Posts: 62
Website

Re: Private Messaging System 1.2.x 1.2.2

lang/French/pms.php

Code:

<?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.


.        .._ -Pandark- _..        .
         Serial Dreamer

Offline

 

#16 2005-10-15 11:57:23

Metsuo
Member
Registered: 2005-02-02
Posts: 154
Website

Re: Private Messaging System 1.2.x 1.2.2

I had PMS 1.2.1 and for some reason the messages wouldn't send. I just upgraded and everything seems to work fine smile

Last edited by Metsuo (2005-10-15 15:16:50)


chown -R us ./base
Archtype-K

Offline

 

#17 2005-10-15 13:59:44

denis64
New member
Registered: 2005-10-15
Posts: 3

Re: Private Messaging System 1.2.x 1.2.2

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

 

#18 2005-10-17 05:48:47

XIV
New member
Registered: 2005-10-17
Posts: 3

Re: Private Messaging System 1.2.x 1.2.2

Hi,

I've got this Notice on top of the board :

Code:

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

 

#19 2005-10-17 06:16:38

seva
New member
From: Russia::Novosibirsk
Registered: 2005-10-13
Posts: 9
Website

Re: Private Messaging System 1.2.x 1.2.2

o_pms_messages response to PM limit
you don't get it from DB, or just haven't such field in DB


~Every pixel has it's own destiny

Offline

 

#20 2005-10-17 06:49:44

XIV
New member
Registered: 2005-10-17
Posts: 3

Re: Private Messaging System 1.2.x 1.2.2

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

 

#21 2005-10-17 07:15:09

seva
New member
From: Russia::Novosibirsk
Registered: 2005-10-13
Posts: 9
Website

Re: Private Messaging System 1.2.x 1.2.2

it's field in table pun_config
in pun_messages there is messages themselfs


~Every pixel has it's own destiny

Offline

 

#22 2005-10-17 09:31:37

wickerman
New member
Registered: 2005-10-17
Posts: 4

Re: Private Messaging System 1.2.x 1.2.2

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! tongue

Offline

 

#23 2005-10-17 10:39:49

Connorhd
Member
Registered: 2005-01-15
Posts: 202

Re: Private Messaging System 1.2.x 1.2.2

you just need to run install_mod.php to update the database

Offline

 

#24 2005-10-18 09:57:19

XIV
New member
Registered: 2005-10-17
Posts: 3

Re: Private Messaging System 1.2.x 1.2.2

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

 

#25 2005-10-20 02:58:28

seva
New member
From: Russia::Novosibirsk
Registered: 2005-10-13
Posts: 9
Website

Re: Private Messaging System 1.2.x 1.2.2

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');


~Every pixel has it's own destiny

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.