CodeCanyon

Simple Private Message System

  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
andrewoc15 says

Also, is there any notification system if you get a message? I don’t see one on the demo.

Posted 11 months ago
Author
dilab dilab replied

Currently, there is no email notification.

Posted 11 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
andrewoc15 says

Not even email though ,something that just alerts the user that they have a message on the website.

Posted 11 months ago
Author
dilab dilab replied

Because currently, Simple Private Message does not have an email field in database, if you need a notification method, you will have to integrate it with your current system which must have an email field of each user, in order to send email.

Posted 11 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
runninglamp says
Purchased

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.

Posted 11 months ago
Author
dilab dilab replied

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.

Posted 11 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
runninglamp says
Purchased

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.

Posted 11 months ago
Author
dilab dilab replied

Your login function should set a session variable to check user access.

Then you define the session variable in integration.php(INT_ACCESS_SESSION)

This is how you can use your own login function.

Posted 11 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
runninglamp says
Purchased

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.

Posted 11 months ago
Author
dilab dilab replied

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.

Posted 11 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
runninglamp says
Purchased

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!

Posted 11 months ago
Author
dilab dilab replied

can comment out line 5 of index.php: //ini_set(‘display_errors’, ‘1’);

and try again

Posted 11 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
runninglamp says
Purchased

<?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

Posted 11 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
runninglamp says
Purchased

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.

Posted 11 months ago
Author
dilab dilab replied

Please look into line 22 of message_send.php

it may be the problem of $usr‘User’

Posted 11 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
runninglamp says
Purchased

i thought so. so then what should i replace ‘User’ with?

Posted 11 months ago
Author
dilab dilab replied

You should place primary key name of table members for INT _USER_ID

Posted 11 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
fastfactorydeals says
Purchased

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…

Posted 9 months ago
Author
dilab dilab replied

Hi, can you be more specific. which file have you tried to edit and it is not working?

Posted 9 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
barbuser01 says
Purchased

This is working fine in IE8 but not rendering properly in IE7

Posted 8 months ago
Author
dilab dilab replied

Hi

Which part is not rendering properly?

It seems perfectly fine on my IE7 ,8 and 9.

Posted 8 months ago
  • Has been a member for 0-1 years
  • Exclusive Author
  • Bought between 1 and 9 items
rileypriddle says
Purchased

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

Posted 5 months ago
Author
dilab dilab replied

What kind of web server is it running on?

Posted 5 months ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
civgroup says
Purchased

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?

Posted 4 months ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
civgroup says
Purchased

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).

Posted 4 months ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
civgroup says
Purchased

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.

Posted 4 months ago
Author
dilab dilab replied

Hi, I hope you get it work.

But normally if you want to do integration, I would not suggest to include ‘index.php’. This application should be stand alone.

Posted 4 months ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
civgroup says
Purchased

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?

Posted 4 months ago
Author
dilab dilab replied

Did you click on the reply button…

Posted 4 months ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
civgroup says
Purchased

:) There is no Reply button – that’s the problem.

Posted 4 months ago
Author
dilab dilab replied

Oh, yes.

Currently you will have to compose a message using “Send a message”, then the message will be auto threaded into one conversation.

Posted 4 months ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
civgroup says
Purchased

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?

Posted 4 months ago
Author
dilab dilab replied

I do not think that will work.

You can either compose a new message or reply a conversation.

Posted 4 months ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
civgroup says
Purchased

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…

Posted 4 months ago
Author
dilab dilab replied

Great it worked.

Thanks for feedback.

Posted 4 months ago

You must sign in or sign up to purchase this item.

$10Regular Licence

$10

Regular Licence a website (commercial, personal, client), or intranet site project - Details

$50Extended Licence

$50

Extended Licence a website template for sale (including on ThemeForest or ActiveDen) - Details

85 Purchases 39 Comments

Buyer Rating
12345 ( 12 ratings )
dilab

dilab

  • Has been a member for 1-2 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 1 and 9 items
  • Singapore
  • Referred between 1 and 9 users
View Portfolio
Created 23 May 10
Compatible Browsers IE8, IE9, Firefox 2, Firefox 3
Software Version PHP 5.x, MySQL 5.x
Files Included JavaScript JS, HTML, CSS, PHP, SQL
by
by
by
by
by