Also, is there any notification system if you get a message? I don’t see one on the demo.
Not even email though ,something that just alerts the user that they have a message on the website.
hi, i downloaded this and it looks really awesome, but im having trouble with integration. I already have a user table set up called members and im using an email as field for my username and im storing the md5 hash in my database. how do i properly integrate this pms into my website? Sorry for the toruble, but ive been at it for over an hour and i keep running in to error messages.
Hi, thanks for purchasing this item.
Have you looked carefully at manual.pdf. It is written clearly how to integrate this script to your current system.
In your case, you should define
INT _USER_TBL as “memebers” INT _USER_USR as “email”
Please check file integration.php for more details.
also i already have a functional login system so if there is one that does not require login i could make use of that much easier.
Hi thanks for the reply!
I did set all of those things as you said. It is still not working.
for the int_access_session do i use ‘id’ or do i need to type $SESSION_ID or something like that. sorry, im kind of a novice.
Hi For example. in your login function. You set a session variable after user successfully login: if(loginSucceed){ $_SESSION[‘uid’] = $uid_value; }
so in integration.php, you do: define(‘INT_ACCESS_SESSION’,’uid’);
So you should have your own session variable(other value instead of ‘uid’) set in your login function.
shoot im sorry i feel like im doing this all right. heres my integration script:
<?php //session variable for checking access define(‘INT_ACCESS_SESSION’,’id’); //user table name define(‘INT_USER_TBL’,’members’); //user table primary key define(‘INT_USER_ID’,’id’); //user name field define(‘INT_USER_USR’,’email’); //user password field define(‘INT_USER_PWD’,’pass’); //hash function (md5/sha1) define(‘HASH_FUNCTION’,’md5’); ?>
heres the error messages im getting when i travel to index
Warning: ini_set() has been disabled for security reasons in /www/zzl.org/o/c/m/ocmt/htdocs/pms/index.php on line 5
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /www/zzl.org/o/c/m/ocmt/htdocs/pms/index.php:5) in /www/zzl.org/o/c/m/ocmt/htdocs/pms/index.php on line 15
Warning: Cannot modify header information – headers already sent by (output started at /www/zzl.org/o/c/m/ocmt/htdocs/pms/index.php:5) in /www/zzl.org/o/c/m/ocmt/htdocs/pms/index.php on line 110
thanks for the help!
<?php
//session variable for checking access
define(‘INT_ACCESS_SESSION’,’id’);
//user table name
define(‘INT_USER_TBL’,’members’);
//user table primary key
define(‘INT_USER_ID’,’id’);
//user name field
define(‘INT_USER_USR’,’email’);
//user password field
define(‘INT_USER_PWD’,’pass’);
//hash function (md5/sha1)
define(‘HASH_FUNCTION’,’md5’);
?>
heres a cleaner version sorry
sweet i got it working! thanks im sure that was a dumb problem for you. actually the sql script wouldnt run so i had to manually create the tables. once i did that though everything went smoothly until now i have this weird error message pop up in the place where i select a recipient for my message that says “undefined index on line 22 of message_send.php. I dont know what would cause this error, but when I try sending a message, it actually sends the message to my inbox.
Please look into line 22 of message_send.php
it may be the problem of $usr‘User’
i thought so. so then what should i replace ‘User’ with?
Hi there, We can’t change the username and password through .php file and phpmyadmin either way i can’t seem to edit them, i edit them and it comes up with an password error…
This is working fine in IE8 but not rendering properly in IE7
hi therei set it up all normally and it returns errors:
Notice: Undefined index: QUERY _STRING in /hermes/bosweb/web201/b2017/d5.kaikourayccom/public_html/new/member/messaging/index.php on line 7
Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /hermes/bosweb/web201/b2017/d5.kaikourayccom/public_html/new/member/messaging/index.php:7) in /hermes/bosweb/web201/b2017/d5.kaikourayccom/public_html/new/member/messaging/index.php on line 15
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /hermes/bosweb/web201/b2017/d5.kaikourayccom/public_html/new/member/messaging/index.php:7) in /hermes/bosweb/web201/b2017/d5.kaikourayccom/public_html/new/member/messaging/index.php on line 15
I am trying to integrate this into our existing site and everything works great until I try to include pms/index.php into my existing site with a php include(). I get all the expected errors about headers already sent and sessions already started.
Is there another way to do this that I am missing?
What I want is for PMS to recognize and use my existing user session so I don’t force my members to login twice to access PMS . I believe I setup the integration correctly since it works fine before I include() it, but maybe I did something wrong?
Ok I can suppress the header & session errors by commenting line 5 of index.php but I still have the session issue.
When it is NOT included in my existing site it works fine, but when I include() it all I see is the login form. The “Log Out” link is even active, which tells me that the session is being recognized, but I cannot get past the login form (which I don’t want to see anyway – I just want my existing session recognized when my logged-in users go their inboxes).
Wish I could edit or delete those messages so I don’t clutter up your thread here… Anyway, I just about have it working. I had to replace all mention of index.php with the name of the file where I am including the PMS script. Then there are a few other hacks/edits I’m having to make, but I think it’s going to work just fine.
It seems to be working, but the one thing I am missing is the ability to Reply. I see it there in the code, but it does not show up when viewing messages. Any ideas?
There is no Reply button – that’s the problem.
Okay I see now – the reply box is there when viewing a thread of messages, just not when viewing a single message. I copied the reply form (from to ) from message_view to message_read – will that work or will there be variables out of scope there?
Well so far that appears to have worked (just copying that Reply form from message_view to message_read). I was able to reply, and it went to the correct recipient.
It would be nice to be able to hide it when viewing a single Sent message and only show it when viewing a single Received message though…

Currently, there is no email notification.