PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2013-04-16 18:55:37

Koos
Administrator
Registered: 2007-01-14
Posts: 525
Website

Private Messaging System 1.2.x 1.3.0

Code:

##
##
##        Mod title:  Private Messaging System (PMS)
##
##      Mod version:  1.3.0
##   Works on PunBB:  1.2.x
##     Release date:  2013-04-16
##           Author:  Connorhd (connorhd@mypunbb.com) & Smartys
##  Original Author:  David 'Chacmool' Djurbäck (chacmool@spray.se)
##       Updated by:  Koos (pampoen10@yahoo.com)
##
##      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 in 'config' table:
##                       'o_pms_enabled'
##                       'o_pms_mess_per_page'
##                       'o_pms_email'
##                    New columns in 'groups' table:
##                       'g_pm'
##                       'g_pm_limit'
##                    New column in 'users' table:
##                       'email_pm'
##
##
##        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 2013-04-16 18:58:03

Koos
Administrator
Registered: 2007-01-14
Posts: 525
Website

Re: Private Messaging System 1.2.x 1.3.0

This release adds a "email notification of new private messages received" feature. This can be enabled/disabled by the user. (Enabled by default for all users).

Offline

 

#3 2014-12-20 13:04:00

doki
Member
Registered: 2007-04-30
Posts: 225

Re: Private Messaging System 1.2.x 1.3.0

hi koos,

how can we change the "you have new messagess" to something like " you have 8 unread messages" . I found this post but seems not working.

http://www.punres.net/viewtopic.php?pid=4734#p4734

Thanks!

Offline

 

#4 2014-12-22 23:05:38

Koos
Administrator
Registered: 2007-01-14
Posts: 525
Website

Re: Private Messaging System 1.2.x 1.3.0

Hi doki, you can try the following:

Code:

#
#---------[ 1. OPEN ]---------------------------------------------
#

include/pms/header_new_messages.php

#
#---------[ 2. FIND ]---------------------------------------------
#

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

#
#---------[ 3. REPLACE WITH ]-------------------------------------
#

    $num_messages = $db->result($result_messages);

    if ($num_messages == 1)
        $tpl_temp .= "\n\t\t\t\t".'<li class="pmlink"><strong><a href="message_list.php">'.'You have '.$num_messages.' unread message'.'</a></strong></li>';
    else if ($num_messages > 1)
        $tpl_temp .= "\n\t\t\t\t".'<li class="pmlink"><strong><a href="message_list.php">'.'You have '.$num_messages.' unread messages'.'</a></strong></li>';

Offline

 

#5 2015-01-04 02:34:41

doki
Member
Registered: 2007-04-30
Posts: 225

Re: Private Messaging System 1.2.x 1.3.0

It works! thanks a lot koos

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.