Topic: Private Messaging for 1.2.x BETA

##
##
##        Mod title:  Private Messaging System (PMS)
##
##      Mod version:  1.2.0
##   Works on PunBB:  1.2, 1.2.1
##     Release date:  2005-02-14
##  Original Author:  David 'Chacmool' Djurbäck (chacmool@spray.se)
##           Author:  Connorhd (connorhd@mypunbb.com)
##
##      Description:  Private Messaging System for PunBB
##
##   Affected files:  admin_options.php
##                    footer.php
##                    header.php
##                    include/functions.php
##                    profile.php
##                    viewtopic.php
##
##       Affects DB:  New table:
##                       'messages'
##                    New options:
##                       'o_pms_enabled'
##                       'o_pms_messages'
##                       'o_pms_mess_per_page'
##
##            Notes:  Written with minimum changes to the original PunBB-files.
##                    When upgrading to newer versions of PMS you should only
##                    need to replace the old PMS-files (unless something else
##                    is stated in the download).
##
##       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.
##
##

i think it all works but there could be some bugs with either the install or the actual script, please post them here, i have also included a .diff file for all you lazy people (thx ulph), oh and it doesn't seem to work at all in postgresql so i'll look at that soon

THIS IS A BETA!!! MAKE BACKUPS!!! DO NOT USE ON A LIVE SITE!!!!!

You will need to delete your cache files after installing this mod for it to work, i'll add this to the install when i release it in full

Download

if all goes well i hope to release a proper version this weekend big_smile

ulph wrote:

how to apply the diff
1. Enter your punbb-directory
2. patch -p2 < /location/to/PM-1.2.0.diff

Re: Private Messaging for 1.2.x BETA

huh, man thanks, i waited really for a long time for releasing of this mod... great job!


PS: sorry for my bad english

Re: Private Messaging for 1.2.x BETA

Play a live role in Connorhd's hard struggles to f*ck up every single installation of PunBB worldwide.
Sow the rotten seedling into the holy soil of the sacred spheres of PunBB!


Heh, just kidding. Rock on mate!

One of the lessons of history is that nothing is often a good thing to do and always a clever thing to say.
~ Will Durant (1885 - 1981)

4 (edited by exorcist 2005-02-14 22:07)

Re: Private Messaging for 1.2.x BETA

hm, get this error on winxp under apache:

Notice: Undefined index: o_pms_enabled in C:\intranet\Apache2\htdocs\board\include\pms\functions_navlinks.php on line 4

Notice: Undefined index: o_pms_messages in C:\intranet\Apache2\htdocs\board\include\pms\header_new_messages.php on line 11

Re: Private Messaging for 1.2.x BETA

yeh sorry delete your cache files (i've fixed it in the install.php for the full release)

Re: Private Messaging for 1.2.x BETA

If i send messages loged as Administrator to some member, he (sometimes) dont get displayed "There are new messages " - Othervise (reverse) - if a member send me a message when i was logged as Admin, i get "There are new messages " anouncment.

Re: Private Messaging for 1.2.x BETA

Can someone confirm that this works on 1.2.1 bug-free?

Also, when can we expect the full release?

-Gh()sT

8

Re: Private Messaging for 1.2.x BETA

Gh()sT wrote:

Can someone confirm that this works on 1.2.1 bug-free?

Also, when can we expect the full release?

-Gh()sT

THIS IS A BETA!!! MAKE BACKUPS!!! DO NOT USE ON A LIVE SITE!!!!!

That actually means that it works on 1.2.1 bug-free, it's just a new way of saying it smile

Re: Private Messaging for 1.2.x BETA

exorcist wrote:

If i send messages loged as Administrator to some member, he (sometimes) dont get displayed "There are new messages " - Othervise (reverse) - if a member send me a message when i was logged as Admin, i get "There are new messages " anouncment.

does he actually have new messages though when he goes into messages, e.g. does at least one of the messages have a blue square next to it?

Gh()sT wrote:

Can someone confirm that this works on 1.2.1 bug-free?

Also, when can we expect the full release?

-Gh()sT

read my first post

Re: Private Messaging for 1.2.x BETA

does he actually have new messages though when he goes into messages, e.g. does at least one of the messages have a blue square next to it?

Yes, the messages come thru in my inbox, but i dont get this:

http://www.novaknet.com/~zmenki/pm.jpg

Re: Private Messaging for 1.2.x BETA

Yup, that's because the if statement you put that within when you edit the code is one only mods and admins can see...
Try moving it out of that block of code?

Re: Private Messaging for 1.2.x BETA

yeh what smartys said it has to be after the } not before

has anyone else tried this mod and if so has it worked?

Re: Private Messaging for 1.2.x BETA

In the instructions, perhaps take the line after it and say "BEFORE, ADD" to reduce confusion?

Re: Private Messaging for 1.2.x BETA

yeh probably better

Re: Private Messaging for 1.2.x BETA

hi im tryin out this mod at the moment...and im not gettin very far..... when i go to run install_mod.php it gives me this error

Notice: Undefined variable: db_prefix in <pathname>/install_mod.php on line 73
Unable to insert into table config. Please check your configuration and try again

i know its probably a stupid mistake but ive been trying to work it out for a while now. any ideas?

16 (edited by Smartys 2005-02-15 16:59)

Re: Private Messaging for 1.2.x BETA

Mmm
You can manually run that SQL (replace prefix_ with the prefix of your install, or delete it if you don't have one):

INSERT INTO prefix_config (conf_name, conf_value) VALUES('o_pms_enabled', '1')
INSERT INTO prefix_config (conf_name, conf_value) VALUES('o_pms_messages', '50')
INSERT INTO prefix_config (conf_name, conf_value) VALUES('o_pms_mess_per_page', '10')

Re: Private Messaging for 1.2.x BETA

lol that doesn't solve the problem smartys thats just a quick fix

ellmang did you upload it into your punbb folder? it has to be in the same folder as config.php

Re: Private Messaging for 1.2.x BETA

i followed the readme.txt so its install_mod.php is in the punbb dir yeah

Re: Private Messaging for 1.2.x BETA

what is $db_prefix set to in config.php? is a blank by any chance?

Re: Private Messaging for 1.2.x BETA

its punbb_

Re: Private Messaging for 1.2.x BETA

ok i've changed the package try redownloading it and installing it, it now also works on postgresql and deletes your cache files automatically (i hope)

Re: Private Messaging for 1.2.x BETA

just re-downloaded it and re-tried....still no joy :S .....

Re: Private Messaging for 1.2.x BETA

what error?

Re: Private Messaging for 1.2.x BETA

Notice: Undefined variable: db_prefix in /u3/maths/2006/ellmang/www/canoebb115/install_mod.php on line 73
Unable to insert into table config. Please check your configuration and try again. Go back.

Re: Private Messaging for 1.2.x BETA

you can't have downloaded it again since $db_prefix is no longer in it