PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2007-06-23 18:17:11

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

Private Messaging System 1.2.x 1.2.3

Code:

##
##
##        Mod title:  Private Messaging System (PMS)
##
##      Mod version:  1.2.3
##   Works on PunBB:  1.2.x
##     Release date:  2005-10-05
##           Author:  Connorhd (connorhd@mypunbb.com) & Smartys
##  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:  There is no requirement to upgrade if 1.2.2 works.
##
##
##       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 2007-06-23 18:18:29

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

Re: Private Messaging System 1.2.x 1.2.3

Small release fixing some bugs, thanks to Smartys for sorting this out smile

Offline

 

#3 2007-06-23 19:51:14

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

Re: Private Messaging System 1.2.x 1.2.3

Connorhd wrote:

Small release fixing some bugs, thanks to Smartys for sorting this out smile

Any chance for a quick note of what bugs? cheers wink


Blog - Follow Me and FluxBB on Twitter

Offline

 

#4 2007-06-23 20:18:11

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

Re: Private Messaging System 1.2.x 1.2.3

Nothing serious afaik just stuff like <? instead of <?php and some dodgy queries that were causing errors on some peoples setup (i.e. sqlite i think).

Offline

 

#5 2007-06-23 21:18:03

Rich Pedley
Member
Registered: 2007-01-29
Posts: 17

Re: Private Messaging System 1.2.x 1.2.3

Connorhd wrote:

<? instead of <?php

you sure about that? shouldn't it be the other way around?


my mind is on a permanent tangent
byUsers forum

Offline

 

#6 2007-06-23 21:45:40

elbekko
Moderator
From: Leuven, Belgium
Registered: 2006-01-31
Posts: 1353

Re: Private Messaging System 1.2.x 1.2.3

Rich Pedley wrote:

Connorhd wrote:

<? instead of <?php

you sure about that? shouldn't it be the other way around?

Obviously not.


FluxBB
dictionary.com on programming: The most fun you can have with your clothes on (although clothes are not mandatory).

Offline

 

#7 2007-06-23 23:16:52

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

Re: Private Messaging System 1.2.x 1.2.3

well its been changed from <? to <?php which is why it was a bug.

Offline

 

#8 2007-06-24 02:35:03

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

Re: Private Messaging System 1.2.x 1.2.3

elbekko wrote:

Rich Pedley wrote:

Connorhd wrote:

<? instead of <?php

you sure about that? shouldn't it be the other way around?

Obviously not.

Reading the description, it did make it sound as if <?php had been altered to <? instead of vice versa. big_smile

Last edited by MattF (2007-06-24 02:35:28)

Offline

 

#9 2007-06-24 09:12:26

Rich Pedley
Member
Registered: 2007-01-29
Posts: 17

Re: Private Messaging System 1.2.x 1.2.3

somebody out there will always mis-interpret what you write smile

Last edited by Rich Pedley (2007-06-24 09:12:38)


my mind is on a permanent tangent
byUsers forum

Offline

 

#10 2007-06-25 01:14:05

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

Re: Private Messaging System 1.2.x 1.2.3

MattF wrote:

elbekko wrote:

Rich Pedley wrote:


you sure about that? shouldn't it be the other way around?

Obviously not.

Reading the description, it did make it sound as if <?php had been altered to <? instead of vice versa. big_smile

It wasn't a description it was a reply to "what bugs?" tongue either way, look at the files...

Offline

 

#11 2007-06-25 08:39:53

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

Re: Private Messaging System 1.2.x 1.2.3

Connorhd wrote:

It wasn't a description it was a reply to "what bugs?" tongue either way, look at the files...

Already have. Those 'bugs' were altered ages ago on mine. big_smile

Offline

 

#12 2007-06-25 10:18:10

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

Re: Private Messaging System 1.2.x 1.2.3

Hi, I installed the previews version (1.2.2) how can I can upgrade to 1.2.3? I dont see any upgrade instuctions to the readme.

Please advise. Thanks

Offline

 

#13 2007-06-25 15:01:31

Xoot
New member
Registered: 2007-06-20
Posts: 5

Re: Private Messaging System 1.2.x 1.2.3

readme-upgrade.txt ??? on the rar ? ^o)

Offline

 

#14 2007-07-01 16:32:28

Brainiac
Member
Registered: 2007-04-15
Posts: 56

Re: Private Messaging System 1.2.x 1.2.3

Xoot wrote:

readme-upgrade.txt ??? on the rar ? ^o)

It isn't there.. .


Here's to the crazy ones.. .

Offline

 

#15 2007-07-04 20:59:31

nickfzx
Member
From: Oxford, England
Registered: 2006-05-18
Posts: 69
Website

Re: Private Messaging System 1.2.x 1.2.3

I second the request for an upgrade readme smile

Offline

 

#16 2007-07-16 21:42:44

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

Re: Private Messaging System 1.2.x 1.2.3

Just noted one problem with the subject line in the PM mod. If there is a subject line of, for example:

It's a test message

anything after the ' gets chopped from the subject line when replying to or quoting the message. Have downloaded and tested using a fresh copy of message_send.php, (just incase it was due to any customisations), but the truncation is still there, and for the life of me I can't find where the truncation is happening in message_send.php. big_smile Anyone have an idea?


Cheers,

Matt

Last edited by MattF (2007-07-16 21:43:25)

Offline

 

#17 2007-07-16 23:24:13

Chronotrigga
Member
Registered: 2007-06-15
Posts: 10

Re: Private Messaging System 1.2.x 1.2.3

EDIT: Edited myself after messing around for about a few minutes. Edited message_list.php

I have a problem also (although small). As you see in the image below, the Navigation Bar that has "Inbox" and "Sent" is not lined up with the other bar. I want to be able to make them even, but I dont know which page to edit. Also would like to get rid of the words Worthyposts>>Private Messages>>Inbox on the top.

If anyone can help me out, definently appreciated. Sorry for the bad quality, too lazy to do stuff so I just put it in paint and saved asap. tongue

http://img122.imageshack.us/img122/1136/pmmodyl5.gif

Last edited by Chronotrigga (2007-07-17 01:43:02)

Offline

 

#18 2007-07-20 11:39:01

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

Re: Private Messaging System 1.2.x 1.2.3

Another slight problem. smile It's not correctly checking the receiving users message box limit when a message is sent. Have a user in a non default group, but even though their message quota is higher, when a message was sent from a standard Member group user, it appears to be reading the sending Member group quota instead of the recipients group quota. smile

Offline

 

#19 2007-07-20 16:38:15

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

Re: Private Messaging System 1.2.x 1.2.3

Can't get the old brain into gear on this one, big_smile but I take it that this section of the code is causing the quirk:

Code:

        // Send message
        if(list($id,$user,$status) = $db->fetch_row($result)){
 
                // Check inbox status
                if($pun_user['g_pm_limit'] != 0 && $pun_user['g_id'] > PUN_GUEST && $status > PUN_GUEST)
                {
                        $result = $db->query('SELECT count(*) FROM '.$db->prefix.'messages WHERE owner='.$id) or error('Unable to get message count for the receiver', __FILE__, __LINE__, $db->error());
                        list($count) = $db->fetch_row($result);
                        if($count >= $pun_user['g_pm_limit'])
                                message($lang_pms['Inbox full']);

Unless I'm mistaken, that is checking the recipient message count against the senders quota limit, rather than the recipients limit? Might anyone suggest the best way of getting that bit working as expected? smile


Cheers.

Offline

 

#20 2007-07-25 11:51:49

forty
New member
Registered: 2007-07-24
Posts: 5

Re: Private Messaging System 1.2.x 1.2.3

iam also having same prob of users exceeding mailbox. when will it be fix?

Offline

 

#21 2007-08-05 23:45:34

Broodhill
New member
Registered: 2007-08-05
Posts: 1

Re: Private Messaging System 1.2.x 1.2.3

I've tried to install Private Messaging System but it doesn't appear in the menu or anything. I did everything as it said in install.txt, I checked many times, but it still doesn't work.
I have added plugin for captcha and easy poll, but those should not interfere with pms?

If i goto http://www.meridian59.net/forum2/message_list.php I can see the inbox and send messages, but it appears not in profile, not in menu or anything. anyone has a solution?
it is like nothing is being included for private message system

thx

Last edited by Broodhill (2007-08-05 23:51:49)

Offline

 

#22 2007-08-06 07:39:59

FSX
Member
Registered: 2006-09-14
Posts: 593
Website

Re: Private Messaging System 1.2.x 1.2.3

You have to put a link in the menu by yourself. Go to Administration > Option and look for Additional menu items. There you can put the link.

Example: x = <a href="message_list.php">Messages</a>
instead of x there must be a number.

Offline

 

#23 2007-08-11 17:01:38

mman
Member
Registered: 2007-08-10
Posts: 16

Re: Private Messaging System 1.2.x 1.2.3

I have one q 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 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

Offline

 

#24 2007-08-12 01:39:30

quaker
Member
From: Bama,USA
Registered: 2006-02-23
Posts: 968
Website

Re: Private Messaging System 1.2.x 1.2.3

question how hard would it be to put the user name in a drop down menu when you are trying to send a private message from the messsage-send.php?
what is the code needed?
this is the area where it would be listed!
<option>userlist

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>

Q


My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Offline

 

#25 2007-08-14 14:04:20

mman
Member
Registered: 2007-08-10
Posts: 16

Re: Private Messaging System 1.2.x 1.2.3

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 ?

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.