Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.1.x Mods

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-25-2011, 07:21 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 28,057
Bloodrun
Send a message via Yahoo to Bloodrun
Default Enhanced PM

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 Code:
$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 Code:
$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:



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.
Attached Files
File Type: php messages.php (9.5 KB, 6 views)
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!

Last edited by Bloodrun; 01-25-2011 at 07:23 PM.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A Enhanced PM System. Bloodrun Addons/Mods Graveyard 19 05-26-2009 07:30 PM


All times are GMT -5. The time now is 05:45 AM.

Currently Active Users: 671 (0 members and 671 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636