PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#76 2008-03-21 01:02:57

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 415

Re: Private Messaging System 1.2.x 1.2.3

dilauro wrote:

1) Ability for PM to send to multiple members?  There was a post here indicating that I could search on this and find a mod.. So far I have not found anything for this.

It isn't a separate mod. It is merely modified code which has been posted in one of the threads for the PM mod, either on here or over on PunBB. Can't remember which, offhand.

Offline

 

#77 2008-03-23 19:20:25

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 415

Re: Private Messaging System 1.2.x 1.2.3

Jesse wrote:

Only downside is that it alerts you of PM's even if you are in your inbox, due to the fact that the script is in the header (meaning, the mp3 plays a few times).  If someone comes up with a fix for that, let me know.

You could try:

Code:

if (basename($_SERVER['PHP_SELF']) != 'message_list.php')
{
    $tpl_temp .= "\n\t\t\t\t".'<li class="pmlink"><strong><a href="message_list.php">'.$lang_pms['New messages'].' <img src="http://your.domain/img/new.gif" border="0"></a></strong><embed src="http://your.domain/img/mediaplayer.swf" width="0" height="0" allowscriptaccess="always" allowfullscreen="true" flashvars="height=0&width=0&file=http://your.domain/img/new.mp3&autostart=true" /></li>';
}

Offline

 

#78 2008-03-30 19:17:23

IBTB
New member
Registered: 2008-03-30
Posts: 4

Re: Private Messaging System 1.2.x 1.2.3

Hello,
I'm pretty new to all of this (php & mysql etc.) so I have been reading abit around on theese forums for fixes to my problems. Been trying out some of the addons for PunBB on a forum just for fun.

When I installed this PM addon, I end up with the same error as vauxtigra2005 and got my hopes up for a solution.

vauxtigra2005 wrote:

Thanks, sorry but not worked, but it's still there showing no errors... but when you click on the private messaging in the admin it comes up with error Unable to fetch user group list?

As lament, I wonder if you could please write what you did to fix it.


Thanks

Offline

 

#79 2008-04-13 14:35:13

IBTB
New member
Registered: 2008-03-30
Posts: 4

Re: Private Messaging System 1.2.x 1.2.3

I've been trying and trying quite a few times now yikes
Now I end up with a error when running install_mod.php:

Code:

An error was encountered
File: /share/HDA_DATA/Qweb/forum/install_mod.php
Line: 109

PunBB reported: Unable to add columns to table 

Database reported: SQL logic error or missing database (Errno: 1)

As I said, I'm not experienced within SQL/php, but I guess this has something to do with that the forum don't get access to create anything in my SQL database ? I have not done anything with the database tbh, I just followed a guide how to install SQL and PunBB. So my question now is then: How to hand out permission for PunBB to the database ?

Hope anyone have time to give me an answer smile

Thanks

edit: What could help me as well: What is PunBB calling it's database ?

Last edited by IBTB (2008-04-13 15:05:09)

Offline

 

#80 2008-04-21 10:34:44

StevenBullen
Moderator
Registered: 2005-09-13
Posts: 300
Website

Re: Private Messaging System 1.2.x 1.2.3

Fix for readme. If you install a fresh 1.2.17 and use this mod...

Code:

include/functions.php

#
#---------[ 11. FIND (line: 250) ]-------------------------------------------------
#

        if ($pun_user['g_id'] > PUN_MOD) 
        { 
            if ($pun_user['g_search'] == '1') 
                $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; 

            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; 
            $links[] = '<li id="navlogout"><a href="login.php?action=out&amp;id='.$pun_user['id'].'&amp;csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a>'; 
        } 
        else 
        { 
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; 
            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; 
            $links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>'; 
            $links[] = '<li id="navlogout"><a href="login.php?action=out&amp;id='.$pun_user['id'].'&amp;csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a>'; 
        }
    
#
#---------[ 12. REPLACE WITH ]---------------------------------------------------------
#

        if ($pun_user['g_id'] > PUN_MOD) 
        { 
            if ($pun_user['g_search'] == '1') 
                $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; 

            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; 
            require(PUN_ROOT.'include/pms/functions_navlinks.php');
            $links[] = '<li id="navlogout"><a href="login.php?action=out&amp;id='.$pun_user['id'].'&amp;csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a>'; 
        } 
        else 
        { 
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; 
            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; 
            $links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>'; 
            require(PUN_ROOT.'include/pms/functions_navlinks.php');
            $links[] = '<li id="navlogout"><a href="login.php?action=out&amp;id='.$pun_user['id'].'&amp;csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a>'; 
        }

Blog - Follow Me and FluxBB on Twitter

Offline

 

#81 2008-05-25 22:40:29

Scripter
Member
Registered: 2006-06-11
Posts: 171
Website

Re: Private Messaging System 1.2.x 1.2.3

StevenBullen wrote:

Fix for readme. If you install a fresh 1.2.17 and use this mod...

Code:

include/functions.php

#
#---------[ 11. FIND (line: 250) ]-------------------------------------------------
#

        if ($pun_user['g_id'] > PUN_MOD) 
        { 
            if ($pun_user['g_search'] == '1') 
                $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; 

            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; 
            $links[] = '<li id="navlogout"><a href="login.php?action=out&amp;id='.$pun_user['id'].'&amp;csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a>'; 
        } 
        else 
        { 
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; 
            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; 
            $links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>'; 
            $links[] = '<li id="navlogout"><a href="login.php?action=out&amp;id='.$pun_user['id'].'&amp;csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a>'; 
        }
    
#
#---------[ 12. REPLACE WITH ]---------------------------------------------------------
#

        if ($pun_user['g_id'] > PUN_MOD) 
        { 
            if ($pun_user['g_search'] == '1') 
                $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; 

            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; 
            require(PUN_ROOT.'include/pms/functions_navlinks.php');
            $links[] = '<li id="navlogout"><a href="login.php?action=out&amp;id='.$pun_user['id'].'&amp;csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a>'; 
        } 
        else 
        { 
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>'; 
            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>'; 
            $links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>'; 
            require(PUN_ROOT.'include/pms/functions_navlinks.php');
            $links[] = '<li id="navlogout"><a href="login.php?action=out&amp;id='.$pun_user['id'].'&amp;csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a>'; 
        }

I encountered that problem a while ago. Thanks for the fix.

Offline

 

#82 2008-07-14 22:24:15

Ememone
Member
Registered: 2008-03-16
Posts: 18

Re: Private Messaging System 1.2.x 1.2.3

This is my idea - when my box is full then i have a message "Your box is full!". I think this is easy change - how can I do it in this mod? Please help me...

Offline

 

#83 2008-07-16 08:17:15

elroy
New member
Registered: 2008-06-22
Posts: 8

Re: Private Messaging System 1.2.x 1.2.3

Open
include/pms/header_new_messages.php

Find:

Code:

// Check if the inbox is full
        if($pun_config['o_pms_messages'] != 0 && $pun_user['g_id'] > PUN_GUEST){
            $result = $db->query('SELECT count(*) FROM '.$db->prefix.'messages WHERE owner='.$pun_user['id']) or error('Unable to test if the message-box is full', __FILE__, __LINE__, $db->error());
            list($count) = $db->fetch_row($result);
    
            // Display error message
            if($count >= $pun_user['g_pm_limit'])
                $tpl_temp .= "\n\t\t\t\t".'<li class="pmlink"><strong><a href="message_list.php">'.$lang_pms['Full inbox'].'</a></strong></li>';
        }
    }

Replace:

Code:

    // Check if the inbox is full
    
            $result = $db->query('SELECT count(*) FROM '.$db->prefix.'messages WHERE owner='.$pun_user['id']) or error('Unable to test if the message-box is full', __FILE__, __LINE__, $db->error());
            list($count) = $db->fetch_row($result);
    
            // Display error message
            if($count >= $pun_user['g_pm_limit'])
                $tpl_temp .= "\n\t\t\t\t".'<li class="pmlink"><strong><a href="message_list.php">'.$lang_pms['Full inbox'].'</a></strong></li>';
        
    }

Question:

Why:

Code:

if($pun_config['o_pms_messages'] != 0 && $pun_user['g_id'] > PUN_GUEST){
}

does not work well ?

Offline

 

#84 2008-07-18 01:03:23

mello757
New member
Registered: 2008-05-06
Posts: 5

Re: Private Messaging System 1.2.x 1.2.3

I just installed 1.3 and add this on to it. Works fine as far as I can tell. Only thing I would be interested in knowing is how to change some text. In a thread created with posts in it....under a users avatars...it has E-mail E-mail Website links. The first being internet mail addy the second being the Forum mail system. Any way I can change the text to PM instead of E-mail??

Offline

 

#85 2008-07-21 18:34:24

mello757
New member
Registered: 2008-05-06
Posts: 5

Re: Private Messaging System 1.2.x 1.2.3

mello757 wrote:

I just installed 1.3 and add this on to it. Works fine as far as I can tell. Only thing I would be interested in knowing is how to change some text. In a thread created with posts in it....under a users avatars...it has E-mail E-mail Website links. The first being internet mail addy the second being the Forum mail system. Any way I can change the text to PM instead of E-mail??

Well I spoke too soon. If a person clicks the link under an avatar in a viewtopic it brings up the send message page and says sending message but never shows up in the inbox or the persons sent. Any ideas?

Also I did figure out how to change the text to pm but changed it back thinking it might of been the problem..not the case.

NVM...figured it out. the links where pointing to misc.php instead of message_send.php.

Last edited by mello757 (2008-07-21 18:59:26)

Offline

 

#86 2008-08-09 10:00:15

eykal
New member
Registered: 2008-07-19
Posts: 3

Re: Private Messaging System 1.2.x 1.2.3

I wnna add an alert to my PM system..
i mean like a javascript alert when user receive a new msg..
how can i do dat? anybody?

Offline

 

#87 2008-08-14 21:38:14

shifuimam
New member
Registered: 2008-08-14
Posts: 1

Re: Private Messaging System 1.2.x 1.2.3

I added this mod as soon as I installed punBB. It works perfectly. I did, however, notice that the "Send Private Message" link doesn't display if you're viewing a user's profile as an admin. I figured out how to add it:

In profile.php, look for:

Code:

<div class="infldset">
<?php echo $email_field ?>

Directly below that, add:

Code:

<div class="adminpm">
<?php require(PUN_ROOT.'include/pms/profile_send.php'); ?>
</div>

Then add this to whatever CSS file is used to style your forum:

Code:

.adminpm DT {display: none;}

This will put a "Send private message" link directly below the "Send e-mail" link on any user's Essentials profile view.

Offline

 

#88 2008-08-24 03:54:03

no_memes
New member
Registered: 2008-08-24
Posts: 2

Re: Private Messaging System 1.2.x 1.2.3

Worked great on first attempt at installing. Good mod overall but could really use preview and quote features.

Offline

 

#89 2008-08-27 00:28:23

crusader
Member
From: Canada
Registered: 2006-10-26
Posts: 219
Website

Re: Private Messaging System 1.2.x 1.2.3

I do not have this issue and never had and I have used all versions.

Offline

 

#90 2008-10-05 18:38:54

Ememone
Member
Registered: 2008-03-16
Posts: 18

Re: Private Messaging System 1.2.x 1.2.3

Hey, one of users from my forum would like to delete his messages and have an error: "Bad referer". He have that error when he would like to multiple delete messages and when he would like to delete one of his messages. His inbox is full. What is wrong? Please help me...

Offline

 

#91 2008-10-05 18:58:19

nifty-stuff.com
Member
Registered: 2006-12-09
Posts: 59
Website

Re: Private Messaging System 1.2.x 1.2.3

That's usually due to them having a firewall or internet security system turned on.  Well, that's been the case with all my members with that error.   Only fix I know is to have them turn off the software / system.

Offline

 

#92 2008-10-05 22:39:17

Ememone
Member
Registered: 2008-03-16
Posts: 18

Re: Private Messaging System 1.2.x 1.2.3

Many users have firewalls or internet security systems installed on their computers. What exactly you mean? Firewall directed to "site" or something like this? I don't understand main idea of this. It is logical that if someone has the internet connection has also turned on a firewall or security system...

Please, explain that idea...

EDIT: OK, it is working. Thanks!

Last edited by Ememone (2008-10-08 08:35:43)

Offline

 

#93 2008-12-05 11:47:19

vixcious
New member
Registered: 2008-12-03
Posts: 1

Re: Private Messaging System 1.2.x 1.2.3

How i can add text alert when member get a private message?

Offline

 

#94 2008-12-31 15:35:09

Union1
New member
Registered: 2008-10-20
Posts: 1

Re: Private Messaging System 1.2.x 1.2.3

When ppl try to log out after I installed the PMS mod they cannot.
Is this possible to fix?

Last edited by Union1 (2008-12-31 15:35:38)

Offline

 

#95 2009-01-01 19:35:00

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 415

Re: Private Messaging System 1.2.x 1.2.3

Look at post 80 above. smile The logout link was changed after this mod was released. You've overwritten the correct logout link with the old style link shown in the mods install file.

Offline

 

#96 2009-01-16 17:53:06

Widell
Member
Registered: 2005-01-27
Posts: 20

Re: Private Messaging System 1.2.x 1.2.3

How can i add one button to mark all messages in inbox?

Offline

 

#97 2009-03-26 19:48:31

Pame
Member
Registered: 2009-03-26
Posts: 19

Re: Private Messaging System 1.2.x 1.2.3

Hi, somebody had fix this "exploit" seen at Milworn (November 2008) ?

Many thank in advance for your help

but I would like be sure before use this Mod that no "exploit" is available ?

Offline

 

#98 2009-03-30 13:49:26

natebeaty
New member
Registered: 2005-10-16
Posts: 5

Re: Private Messaging System 1.2.x 1.2.3

mman wrote:

mman wrote:

I have one question regarding the fresh install of this mod... Are the probs mentioned in previous replys also in previous version 1.2.2 ??  Is for me better for fresh install now to instal previous 1.2.2 version or the new one??? If has someone worked on the new version and fixed the bugs please reply it with solution or fixed code. tnx

anybody ?

just make sure you add:

// Make sure no one attempts to run this script "directly"
if (!defined('PUN'))
    exit;

to the top of any file in include/pms/ that have require() commands.

Offline

 

#99 2009-04-15 11:32:40

robert.szucs
New member
Registered: 2009-04-15
Posts: 2

Re: Private Messaging System 1.2.x 1.2.3

There is a serious bug in the messages_send.php:

Code:

            if($count >= $pun_user['g_pm_limit'])
                message($lang_pms['Inbox full']);

This inhibits the user to send a message in some cases because it compares the actual count of messages of the receiver to the limit of messages of the sender (it cause problem if the receiver have higher limit and higher actual count than the limit of sender).

Last edited by robert.szucs (2009-04-15 11:39:30)

Offline

 

#100 2009-04-15 11:38:20

robert.szucs
New member
Registered: 2009-04-15
Posts: 2

Re: Private Messaging System 1.2.x 1.2.3

There is a serious bug in the messages_send.php:

Code:

    // Flood protection
    if($pun_user['g_id'] > PUN_GUEST){
        $result = $db->query('SELECT posted FROM '.$db->prefix.'messages ORDER BY id DESC LIMIT 1') or error('Unable to fetch message time for flood protection', __FILE__, __LINE__, $db->error());
        if(list($last) = $db->fetch_row($result)){
            if((time() - $last) < $pun_user['g_post_flood'])
                message($lang_pms['Flood start'].' '.$pun_user['g_post_flood'].' '.$lang_pms['Flood end']);
        }
    }

This inhibits the user to send a message in some cases because it compares the actual time to the time of the last message in the system (not the actual users last message but the system wide last message - so sometime the user get false flood warning).

Last edited by robert.szucs (2009-04-15 11:39:48)

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.