Enhanced PM

Forum
Last Post
Threads / Messages

Bloodrun

I am, who I am.
Premium Member
Joined
Apr 20, 2009
Messages
532
Points
0
Age
33
Mysidian Dollar
15,756
I was asked to redo this so here it is, just replace your old Messages.php with the new.

For the notification, just place the following bit of code on any page you would like PM notification to show up:

Find this on any of the pages you want to notification to go:

PHP:
$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

// This page handles user profiles and shows the site members...

if($isloggedin == "yes") {

And place this right below it.

PHP:
$query = "SELECT * FROM ".$prefix."messages WHERE touser='".$loggedinname."' and status='unread'";
$result = mysql_query($query);
$num = mysql_numrows($result);

if($num > 0){
$msg = "

<table width='100%' border='1' cellpadding='3' cellspacing='1' bordercolor='1' bgcolor='#F9AE00' class='ftable'>
<td>
<table width='100%' border='1' cellpadding='3' cellspacing='1' bordercolor='1' bgcolor='#FECF61'>
<tr>
<td><center>You have a new message(s): <a href='messages.php'>Visit Message Center</a>(<b>".$num."</b>)<br /></center></td>
</tr>
</table>
</table><br />";
}

$article_content = $article_content."".$msg."<br />";


Here is how it looks:
idvw46.png

153o85k.png


You can change the designs and colors to anything you like.

To my knowledge this is suppose to be going into the next release, so you will notice that the Report function doesn't work, and you will probably notice that Postbar Function doesn't work (unless you have installed my forum modification) BUT, the next release will have these functions.
 

Attachments

  • messages.php
    9.5 KB · Views: 6
Last edited:
So this is the new version of PM enhancement system compatible with Mys v1.1.x series? Thank you for doing this Bloodrun, this is surely helpful.
 
I don't see why it wouldnt be compatible, its on my test site which is the current version of the script.
 
Well it seems that you defined a new function but somehow forgot to attach a function.php file:

Fatal error: Call to undefined function getpostbar() in

I personally have no idea what getpostbar() does, would you please explain a little bit?
 
Similar threads
Thread starter Title Forum Replies Date
Bloodrun A Enhanced PM System. Addons/Mods Graveyard 19

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,274
Messages
33,115
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top