Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-02-2011, 02:30 AM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 31,890
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default Delete All Messages in Inbox Mod [by Kae]

Delete All Messages in Inbox Mod
By Kaeliah


Modification TOS
**Note that there is no viewable credit required for this mod**

RoconzaArt requested this mod and it was an easy enough one to do so here we are! This mod adds a link at the bottom of your inbox that allows you to delete ALL the messages in your inbox, even unread one so be careful!

Installing: Open messages.php and find this at about line 78:

PHP Code:
$article_content $article_content."<tr>
    <td><b><a href='messages.php?act=read&id="
.$nid."'>".$messagetitle."</a></b></td>
    <td>"
.$fromuser."</td>
    <td><center>"
.$status."</center></td>
    <td><center>"
.$datesent."</center></td>
    <td><center><a href='messages.php?act=delete&id="
.$nid."'><img src='templates/icons/delete.gif' border=0></a></center></td>
  </tr>"
;

$i++;
}

$article_content $article_content."</table><br> 
Add after(BUT BEFORE THE ";)

PHP Code:

<a href='messages.php?act=deleteallinbox'><img src='templates/icons/delete.gif' border=0Delete All</a><br><br
Scroll down and find this at about line 212:

PHP Code:
else if($act == "delete"){

// We are deleting a message...

$query "DELETE FROM ".$prefix."messages WHERE touser='".$loggedinname."' and id='".$id."'";
runquery($query);

$article_title $lang_delete_successful_t;
$article_content $lang_delete_successful;


Add after:
PHP Code:
else if($act == "deleteallinbox"){

$article_title "Delete All Messages In Inbox";
$article_content "Are you sure you want to delete all the messages in your inbox?<br><br>

<a href='messages.php?act=deleteallconfirm'>Confirm</a> - <a href='messages.php'>Nevermind</a>"
;

}
else if(
$act == "deleteallconfirm"){
$query "DELETE FROM ".$prefix."messages WHERE touser='".$loggedinname."'";
runquery($query);

$article_title $lang_delete_successful_t;
$article_content $lang_delete_successful;


And that's it! Enjoy!
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
Reply

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
Warning Messages (more) Abronsyth Questions and Supports 4 10-04-2014 06:40 PM
Error messages~ Pear Questions and Supports 15 09-05-2014 12:45 PM
Better Messages Buttons Inf3rnal Mys v1.2.x Mods 2 10-28-2011 11:11 AM
Help: messages and email Isura Questions and Supports 1 07-24-2011 02:09 PM
Modding Suggestion: Error Messages HIddenPanda Suggestions and Feature Requests 2 02-05-2011 09:46 PM


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

Currently Active Users: 673 (0 members and 673 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