Re: Private Message System

Rickard wrote:

Nice to see a mod that works for three different versions of PunBB :D

Yepp! It's not that much changes in the forum-code for this mod, which makes it much easier :)

And the hdiff-file made it MUCH easier to find out if I needed to change anything! I noticed the "(changed)" (or something like that) at the bottom of the file, what did you change from the original version?

52

Re: Private Message System

Ey , thanks alot for fixing that so quickly!
Really nice of you!

Thanks again!

53

Re: Private Message System

Found out how to change the version thing on my own now.
Thanks to you and your new version i looked at what u changed in the install_mod.php.
And to be honest.. It was easy..

Anyways , thanks now i was able to install several other mods.

Re: Private Message System

Great :)

But do remember that it can be problems it you do like this in all mods, if they "collide" with the PunBB-code. In the update from Punbb v1.1.1 to PunBB v1.1.2 there was quite few changes though, so its probably okay this time :)

55

Re: Private Message System

I can't download mod sad...
there's always message that file is missing sad

Re: Private Message System

The URL in the first post was wrong. I've updated the post. Here's the new URL for those of you who are lazy :D

http://punres.cactuz.nu/?p=projects/desc&id=9

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Private Message System

I'd like to see a function so that you can delete multiple messages at once, like the delete multiple posts function.

If you've got a lot of messages it's a pain if you want to delete all of them.

Re: Private Message System

Falconey wrote:

I'd like to see a function so that you can delete multiple messages at once, like the delete multiple posts function.

If you've got a lot of messages it's a pain if you want to delete all of them.

Yes, I've thought about iot too... there haven't been much modding lately though =/ (Working on a webserver instead :D)

59 (edited by ConnyT 2004-03-14 21:59)

Re: Private Message System

Think I found something: When a message is sent containing a " in the 'Subject' line, the subject will be truncated after the first " when replying to it.

I e 'Just a "test" post' will be 'RE: Just' when I click Reply (or Quote).

I fixed it on my forum by replacing the " with ' on line 217 in message_send.php.

<input type="text" name="req_subject" value="<?php echo $subject ?>" 
maxlength="100" style="width: 500px" tabindex="<?php echo $cur_index++ ?>">

to

<input type='text' name='req_subject' value='<?php echo $subject ?>' 
maxlength='100' style='width: 500px' tabindex='<?php echo $cur_index++ ?>'>

Let me know if there is anything else that you see should be changed..
( PunBB version 1.1.2 / PMS version 1.0 (1.0.2 according to .zip file) )

60

Re: Private Message System

Private_Message_System_v1.0.2 works on 1.1.2 without troubles.
just change line 12 in install_mod.php
from
$punbb_versions    = array('1.1');
to
$punbb_versions    = array('1.1.2');

and I have a question, what about notification to users about new PMs avaivable in their message boxes? unlike IPB pop-up script`s etc...
I think that it would be great if new messages will be appear after forums   topic.

Re: Private Message System

I've uploaded Private_Message_System_v1.0.4.zip now. Don't know why last ver. on PunRes was 1.0.2, I think I've at least uploaded 1.0.3 before (and maybe 1.0.4 too). Well, hope it didn't cause too much problems for you. Thanx for the help :)

Re: Private Message System

Thank you, the mod is great.  It was a decisive factor in my decision to use punBB.

Re: Private Message System

anatman wrote:

Thank you, the mod is great.  It was a decisive factor in my decision to use punBB.

Oh, thanks :)

64

Re: Private Message System

Your mod is super!

Everything works great, but when I reply on a message and click send, I get a javascript error that says:

Object expected
Source:http://../message_send.php?id=xx&reply=xx
Line 205

It still posts the message after the error, but its not really nice to see that everytime.. Any ideas? Thanks in advance!

Re: Private Message System

one q: does the pms work on postgresql also? if not, will there be a version for it?

Im Jacks Broken Heart

Re: Private Message System

Netfeed wrote:

one q: does the pms work on postgresql also? if not, will there be a version for it?

Actually, I don't know. I've not tested it on PostgreSQL :(

Re: Private Message System

too bad, it would be really nice to have such a system that works with postgresql too

Im Jacks Broken Heart

Re: Private Message System

Netfeed wrote:

too bad, it would be really nice to have such a system that works with postgresql too

Well, it might work. I didn't say it would'nt work :)

Can't you just test and see if it works?

Re: Private Message System

dont think that it will work at all, i belive that its a wrong create-statement when the db is created, like int(10) wont work at all

Im Jacks Broken Heart

Re: Private Message System

Converting the CREATE statement shouldn't be too difficult. Just have a look at install.php from PunBB to get an idea of what types to use for PostgreSQL.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Private Message System

okey, but will it work then or does i need to change the queries aswell?

Im Jacks Broken Heart

Re: Private Message System

I'm not sure as I haven't really checked out the code for the mod in any detail myself. It will most likely work.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Private Message System

i can try it and tell wheter it will work or not

Im Jacks Broken Heart

Re: Private Message System

i belive that i done it now,  but i need to test it first before i post any code

Im Jacks Broken Heart

75 (edited by Netfeed 2004-04-17 21:32)

Re: Private Message System

        $sql = 'CREATE TABLE '.$db->prefix."messages (
                        id serial,
                        owner INT NOT NULL DEFAULT 0,
                        subject VARCHAR(120) NOT NULL DEFAULT 0,
                        message TEXT,
                        sender VARCHAR(120) NOT NULL DEFAULT '',
                        sender_id INT NOT NULL DEFAULT 0,
                        posted INT NOT NULL DEFAULT 0,
                        sender_ip VARCHAR(120),
                        smileys SMALLINT DEFAULT 1,
                        status SMALLINT DEFAULT 0,
                        showed SMALLINT DEFAULT 0,
                        PRIMARY KEY (id)
                        ) ";

heres the code for postgresql and it seems to work as it shall

Im Jacks Broken Heart