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

Reply
 
Thread Tools Display Modes
  #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: 35,537
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
  #2  
Old 01-25-2011, 08:23 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 38,238
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

Ooh, very nice Bloodrun. :) I like the presentation of the message and notification too.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #3  
Old 01-25-2011, 08:25 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 35,537
Bloodrun
Send a message via Yahoo to Bloodrun
Default

Thanks, its just a couple table edits Lol =P
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
Reply With Quote
  #4  
Old 01-25-2011, 09:31 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 481,454
Hall of Famer is on a distinguished road
Default

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


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 01-25-2011, 09:35 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 35,537
Bloodrun
Send a message via Yahoo to Bloodrun
Default

I don't see why it wouldnt be compatible, its on my test site which is the current version of the script.
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
Reply With Quote
  #6  
Old 01-25-2011, 09:38 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 481,454
Hall of Famer is on a distinguished road
Default

I see. Oh btw what's with the 'report this member' button? Is it one of your other mods?
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #7  
Old 01-25-2011, 09:40 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 35,537
Bloodrun
Send a message via Yahoo to Bloodrun
Default

Quote:
Originally Posted by Hall of Famer View Post
I see. Oh btw what's with the 'report this member' button? Is it one of your other mods?
I had to make a Report a post/member feature for the Forum, so I figured why not add one for nasty PMs?
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
Reply With Quote
  #8  
Old 02-15-2011, 06:04 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 481,454
Hall of Famer is on a distinguished road
Default

Well it seems that you defined a new function but somehow forgot to attach a function.php file:

Quote:
Fatal error: Call to undefined function getpostbar() in
I personally have no idea what getpostbar() does, would you please explain a little bit?
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply


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 11:17 AM.

Currently Active Users: 828 (0 members and 828 guests)
Threads: 4,081, Posts: 32,029, 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