PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#76 2006-02-04 09:04:57

SDTux
Member
From: Russia, Ekaterinburg
Registered: 2006-01-25
Posts: 23
Website

Re: Private Messaging System 1.2.x 1.2.2

Gargouille wrote:

Would it be possible to have a way to send PM to all users? or to chose to who sending the PM?
Thanks

I think it's better to create new topic in such situation wink

Offline

 

#77 2006-02-05 23:39:11

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

Re: Private Messaging System 1.2.x 1.2.2

How to add a preview button in send_message.php ?
Pleeeaaaase smile


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

Offline

 

#78 2006-02-06 18:42:49

uT)Dev1L
New member
Registered: 2006-01-26
Posts: 7

Re: Private Messaging System 1.2.x 1.2.2

Pandark
go to edit.php or post.php and search text 'Preview', and paste this code to send_message.php... i think it's work, but not tested wink

Offline

 

#79 2006-02-06 21:16:42

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

Re: Private Messaging System 1.2.x 1.2.2

I tried this before posting.. but I'll try again since I may have made mistakes smile


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

Offline

 

#80 2006-02-08 21:56:50

wenzlerpaul
Guest

Re: Private Messaging System 1.2.x 1.2.2

Hi,

Showing Message count when you have private messages.

I would like to say this is a nice Mod, but I was looking for an option to count how many messages I have in my box but did not find any so I did play around and found the solution.  It is quite nice (in my own opinion) to show how many messages you have in your box.

First step is backup your files.

1. Locate and open header_new_messages.php inside include\pms

find (approx line 8)

Code:

            $tpl_temp .= "\n\t\t\t\t".'<li class="pmlink"><strong><a href="message_list.php">'.$lang_pms['New messages'].'</a></strong></li>';

and replce with

Code:

            $tpl_temp .= "\n\t\t\t\t".'<li class="pmlink"><strong><a href="message_list.php">You have '.$db->result($result_messages, 0).' '.$lang_pms['New messages'].'</a></strong></li>';

then Save and upload.

2. open pms.php inside \lang\English

find (approx line 49)

Code:

    'New messages'        =>        'There are new messages',

and replace with

Code:

    'New messages'        =>        'new message(s)',

You may need to play around with the code to get it right for other languages... I have tried this with this new mod release and it worked fine.

I hope this helps

Paul

 

#81 2006-02-11 12:05:02

Gargouille
Member
Registered: 2006-01-13
Posts: 35

Re: Private Messaging System 1.2.x 1.2.2

SDTux wrote:

Gargouille wrote:

Would it be possible to have a way to send PM to all users? or to chose to who sending the PM?
Thanks

I think it's better to create new topic in such situation wink

Well, in fact the idea was to send a message to everyone but one or two...as a secret mail you see wink
I use PunBB to manage a roleplaying game so It would be nice to be able to send multiple PM.

Offline

 

#82 2006-02-11 12:56:07

SDTux
Member
From: Russia, Ekaterinburg
Registered: 2006-01-25
Posts: 23
Website

Re: Private Messaging System 1.2.x 1.2.2

Gargouille wrote:

It would be nice to be able to send multiple PM.

A kind of team? wink
Well, I think, it's easy to realize such function, I'll make it soon.

Offline

 

#83 2006-02-11 20:33:19

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

Re: Private Messaging System 1.2.x 1.2.2

[OPEN] message_send.php

[FIND] (on line 87)

Code:

    if (isset($errors))
        message($errors[0]);

[ADD, AFTER]

Code:

    $multiuser = explode(", ", $_POST['req_username']);
    if(count($multiuser) > 10) { message($lang_pms['Too Many Users']); exit(); }
    for($ju=0; $ju<count($multiuser); $ju++) {
        $_POST['req_username'] = $multiuser[$ju];

[FIND] (on line 147)

Code:

    message($_POST['req_username'].', '.$lang_pms['No user']);
    }

[REPLACE WITH]

Code:

    message($_POST['req_username'].', '.$lang_pms['No user']);
        }
    }

[FIND] (on line 221)

Code:

                <label class="conl"><strong><?php echo $lang_pms['Send to'] ?></strong><br /><?php echo '<input type="text" name="req_username" size="25" maxlength="25" value="'.pun_htmlspecialchars($username).'" tabindex="'.($cur_index++).'" />'; ?><br /></label>

[REPLACE WITH]

Code:

               <label class="conl"><strong><?php echo $lang_pms['Send to'] ?></strong><br /><?php echo '<input type="text" name="req_username" size="25" value="'.pun_htmlspecialchars($username).'" tabindex="'.($cur_index++).'" />'; ?><br /></label>

[OPEN] lang/English/pms.php
[FIND] (at the end)

Code:

     'Flood end'                 =>        'Flood end'            =>        'seconds have to pass between sends. Please wait a little while and try send the message again.'

[REPLACE WITH]

Code:

        'Flood end'            =>        'seconds have to pass between sends. Please wait a little while and try send the message again.',
     'Too Many Users'                 =>        'Your message has too many recipients.'

[OPEN] lang/French/pms.php
[FIND] (at the end)

Code:

     'Flood end'                 =>        'secondes entre deux envois. Merci de patienter et de réessayer un peu plus tard.'

[REPLACE WITH]

Code:

     'Flood end'                 =>        'secondes entre deux envois. Merci de patienter et de réessayer un peu plus tard.',
     'Too many Users'                 =>        'Votre message est destiné à trop de personnes à la fois.'

[SAVE AND UPLOAD ALL FILES]

Syntax:

Code:

user1, user2, user3

There cannot be more than ten (10) recipients (to avoid the flood).

Tips created by JSAND for this topic on punBB.fr and translated by myself


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

Offline

 

#84 2006-02-12 08:39:13

SDTux
Member
From: Russia, Ekaterinburg
Registered: 2006-01-25
Posts: 23
Website

Re: Private Messaging System 1.2.x 1.2.2

Good ^_^ But I want to make entering of recipients more visual, so some modifications needed any way wink

Offline

 

#85 2006-02-12 17:25:54

lapse
New member
Registered: 2006-02-12
Posts: 2

Re: Private Messaging System 1.2.x 1.2.2

Heya
this works for 1.2.10 right?

I get this when trying to run install_mod.php

Code:

An error was encountered
File: C:\web\forum\install_mod.php
Line: 62

PunBB reported: Unable to create table messages.

Database reported: Invalid default value for 'owner' (Errno: 1067)

Last edited by lapse (2006-02-12 18:02:42)

Offline

 

#86 2006-02-14 17:51:06

JeffAdams
Guest

Re: Private Messaging System 1.2.x 1.2.2

Is there a way to allow members of the forum to turn off private messaging for themselves so that they do not receive any?

 

#87 2006-02-14 20:18:26

SDTux
Member
From: Russia, Ekaterinburg
Registered: 2006-01-25
Posts: 23
Website

Re: Private Messaging System 1.2.x 1.2.2

lapse wrote:

PunBB reported: Unable to create table messages.

Database reported: Invalid default value for 'owner' (Errno: 1067)

Something with rights or smth else with database...

Offline

 

#88 2006-02-14 20:19:29

SDTux
Member
From: Russia, Ekaterinburg
Registered: 2006-01-25
Posts: 23
Website

Re: Private Messaging System 1.2.x 1.2.2

JeffAdams wrote:

Is there a way to allow members of the forum to turn off private messaging for themselves so that they do not receive any?

No there is not yet. But I didn't see such option earlier realised in other forums.

Last edited by SDTux (2006-02-14 20:20:14)

Offline

 

#89 2006-02-14 20:27:37

lapse
New member
Registered: 2006-02-12
Posts: 2

Re: Private Messaging System 1.2.x 1.2.2

SDTux wrote:

lapse wrote:

PunBB reported: Unable to create table messages.

Database reported: Invalid default value for 'owner' (Errno: 1067)

Something with rights or smth else with database...

Hmh, all I have is the root one with all privi. , and other stuff worked to install just fine. yikes
hm

Offline

 

#90 2006-02-16 08:14:35

rapha...
New member
From: Brazil
Registered: 2006-02-16
Posts: 1

Re: Private Messaging System 1.2.x 1.2.2

The brazilian portuguese translation for the 'pms.php' file:

Code:

<?php

// Language definitions used by the Private Message System-mod
$lang_pms = array(
    // Common
    'Messages'                =>        'Mensagens',
    'Message'                =>        'Mensagem',
    'Save message'            =>        'Salvar mensagem',
    'Send'                    =>        'Enviar',

    // Mensaje
    'Inbox'                    =>        'Caixa de Entrada',
    'Outbox'                    =>        'Caixa de saída',
    'Box0'                    =>        'Mudar para caixa de saída',
    'Box1'                    =>        'Mudar para caixa de entrada',
    'Action'                    =>        'Ação',
    'Reply'                    =>        'Responder',
    'Delete'                    =>        'Apagar',
    'Quote'                    =>        'Citar',
    'Date'                    =>        'Data',
    'Status'                    =>        'Estado da mensagem:',
    'Subject'                =>        'Assunto',
    'Sender'                    =>        'Remetente',
    'Receiver'                =>        'Receptor',
    'Private Menssages'    =>     'Mensagens Privadas',
    'New message'            =>        'Enviar nova mensagem',
    'Multidelete'                    =>    'Deletar múltiplas mensagens',
    'Delete messages comply'    => 'Tem certeza que deseja deletar as mensagens selecionadas?',
    'Deleted redirect'            => 'Mensagem deletada. Redirecionando ...',
    'Read redirect'                => 'Todas as mensagens marcadas como lidas. Redirecionando...',
    'Mark all'            =>        'Marcar todas as mensagens como lidas',

    // Viewtopic
    'PM'                        =>        'MP',

    // Profile
    'Quick message'        =>     'Enviar mensagem privada',
    'Show smilies'            =>        'Mostrar smilies',

    // Enviar or delete message
    'Send to'                =>     'Enviar a',
    'Send a message'        =>        'Enviar uma mensagem',
    'Delete message'        =>        'Apagar mensagem',
    'Del redirect'            =>        'Mensagem apagada, redirecionando...',
    'Sent redirect'        =>        'Mensagem enviada ao usuário, redirecionando...',

    // Errors and Mensaje
    'No messages'            =>        'Sem mensagens',
    'New messages'            =>        'Existem novas mensagens',
    'No user'                =>        'Não existe usuário com este nick.',
    'Full inbox'            =>        'Sua caixa de mensagens está cheia!',
    'Inbox full'            =>        'A caixa de mensagens deste usuário está cheia. Não pode enviar uma MP para este usuário.',
    'Sent full'                =>        'Não pode salvar esta mensagem na caixa de enviados, ela está cheia.',
    'Flood start'            =>        'Menos de ',
    'Flood end'                =>        'segundos passaram desde a última MP. Por favor, espere um pouco para enviar outra.'
);

Offline

 

#91 2006-02-18 00:52:45

filipp
New member
Registered: 2006-02-17
Posts: 2

Re: Private Messaging System 1.2.x 1.2.2

Many thanks for the mod!
Please add <?php to the beginning of all files in include/pms, at least my PHP install just barfed the
contents of the files without the proper <?php beginning tag.

Offline

 

#92 2006-02-18 01:25:46

filipp
New member
Registered: 2006-02-17
Posts: 2

Re: Private Messaging System 1.2.x 1.2.2

Here's the Estonian translation:
http://mug.imo.ee/bazar/muu/Estonian.zip

Offline

 

#93 2006-02-19 15:30:48

ContinuumXLS
New member
Registered: 2006-02-19
Posts: 2

Re: Private Messaging System 1.2.x 1.2.2

sorry for the post above
i forgot to change the install_mod to 1.2.9 but after i did and installed everything
there's one error that i'm getting which is this

Parse error:  parse error, unexpected $ in /home2/www/pro-hatch.net/public_html/forum/include/functions.php on line 1093

any help please? thanks

How did you fix this? I cannot seem to be able to fix it...

Offline

 

#94 2006-02-20 17:21:27

Damos
Guest

Re: Private Messaging System 1.2.x 1.2.2

lapse wrote:

SDTux wrote:

lapse wrote:

PunBB reported: Unable to create table messages.

Database reported: Invalid default value for 'owner' (Errno: 1067)

Something with rights or smth else with database...

Hmh, all I have is the root one with all privi. , and other stuff worked to install just fine. yikes
hm

In install_mod.php :

Code:

owner int(10) NOT NULL DEFAULT '',

Owner is an interger but default value isn't an integer value tongue ( i have mysql 5.0, maybe don't accept it :-/ )
I change it to :

Code:

owner int(10) NOT NULL DEFAULT '0',

4 & 5 lines after, sender_id and posted have same pb.
Add 0 to default value

 

#95 2006-02-25 17:20:12

Razmooze
Member
From: Sweden, Göteborg
Registered: 2005-11-21
Posts: 52
Website

Re: Private Messaging System 1.2.x 1.2.2

Hmm... if you want to say something out loud. Why not use the forum for that?

Offline

 

#96 2006-03-03 17:29:58

.g@sp.
Member
From: Belgium
Registered: 2005-12-22
Posts: 48

Re: Private Messaging System 1.2.x 1.2.2

hi
i just wanna change the color of the link "new message", but i can't act on the pmlink on mystyle_cs.css
Do you know how can i do it ?
(i tried something like that :

Code:

/* 4.2 This is the colour for links in header rows and the navigation bar */

.pun H2 A:link, .pun H2 A:visited, #brdmenu A:link, #brdmenu A:visited {COLOR: #ffffdd}
.pun H2 A:hover, #brdmenu A:hover {COLOR: #ffffdd}
#brdwelcome .pmlink A:link {color: yellow} /*added line*/

but it doesn't do anything)


It's solved  smile

Last edited by .g@sp. (2006-03-09 12:22:32)

Offline

 

#97 2006-03-09 01:10:51

dizzydoink
Member
Registered: 2005-12-01
Posts: 15

Re: Private Messaging System 1.2.x 1.2.2

Razmooze wrote:

One thing I'd like to see in PMS is a thing I think was fixed for the old PMS system one year ago. I.e. when replying, only one "RE:" will show in the subject, instead as one for each reply (which looks quite messy after a few replies back and forth). If memory serves, the solution was quite simple. Or is there perhaps an idea behind seeing all the "RE:" substrings on a row?

I would also like to see a solution to this. Would appreciate any help smile

Offline

 

#98 2006-03-10 07:04:23

forea_ch
New member
Registered: 2006-03-08
Posts: 1

Re: Private Messaging System 1.2.x 1.2.2

Hi, I just installed this mod and am having some trouble with the styling or something. Can anyone tell me what may be causing this? I looked in the css and didn't find anything..

http://forea.ch/other/punbb-pm.png

Thanks!

Offline

 

#99 2006-03-13 06:46:50

Gargouille
Member
Registered: 2006-01-13
Posts: 35

Re: Private Messaging System 1.2.x 1.2.2

Pandark, ton dernier post est pour moi?
Is last post from Pandark for my team PM?

Offline

 

#100 2006-03-13 15:56:10

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

Re: Private Messaging System 1.2.x 1.2.2

It answered to this:

Gargouille wrote:

It would be nice to be able to send multiple PM.

(The tips in french: http://www.punbb.fr/forums/viewtopic.php?pid=672#p672)


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

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.