DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • October 19, 2018, 02:11:59 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Ye Olde Mail Mod  (Read 4629 times)
0 Members and 1 Guest are viewing this topic.
Eliwood
Member
Codemeister
****
Offline Offline

Posts: 275


View Profile WWW
« on: June 10, 2005, 10:14:34 AM »

With this Mod, Users can delete Systemmails, unreaded or readed with a Button...

Search:
Code:
require_once "common.php";
Add After:
Code:
if ($_GET[op]=="del2")
  {
    if ($_POST['delart']=="sys")
      {
        $sql = "DELETE FROM mail WHERE msgto='".$session['user']['acctid']."' AND msgfrom=0";
        db_query($sql);
        header("Location: mail.php");
        exit();
      }
    elseif ($_POST['delart']=="ugdel")
      {
        $sql = "DELETE FROM mail WHERE msgto='".$session['user']['acctid']."' AND seen=0";
        db_query($sql);
        header("Location: mail.php");
        exit();
      }
    else
      {
        $sql = "DELETE FROM mail WHERE msgto='".$session['user']['acctid']."' AND seen=1";
        db_query($sql);
        header("Location: mail.php");
        exit();
      }
  }
Search:
Code:
for ($i=$i-1;$i>=0;$i--){
         $out.="document.getElementById(\"checkbox$i\").checked=true;";
      }
      $out.="'>";
      output($out,true);
      output("<input type='submit' class='button' value='Delete Marked'>",true);
      output("</form>",true);
Add After:
Code:
// Readed/Unreaded/Systemmails delete, based on a Idea from Amerilion, Code by Eliwood
      // Version 1.1
    output("<br><form action='mail.php?op=del2' method='POST'>"
          ."<select name='delart'>"
          ."<option value='sys'>Delete systemmails"
          ."<option value='ugdel'>Delete unreaded"
          ."<option value='gdel'>Delete Readed"
          ."</select>"
          ."<input type='submit' class='button' value='Submit'>"
          ,true);
Logged

Daenerys LotGD-Remake using PHP7 and a modern, headless approach.
Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #1 on: June 10, 2005, 05:31:53 PM »

Nice addiction Eliwood.
Already installed Wink
Logged

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
Copyright
Guest
« Reply #2 on: August 09, 2005, 07:25:09 AM »

Yeah, really nice, i like it!

I made a German translation if you like (i hope i'm allowed to post):

search:
Code:
// Readed/Unreaded/Systemmails delete, based on a Idea from Amerilion, Code by Eliwood
      // Version 1.1
    output("<br><form action='mail.php?op=del2' method='POST'>"
          ."<select name='delart'>"
          ."<option value='sys'>Delete systemmails"
          ."<option value='ugdel'>Delete unreaded"
          ."<option value='gdel'>Delete Readed"
          ."</select>"
          ."<input type='submit' class='button' value='Submit'>"
          ,true);

replace with:

Code:
// Readed/Unreaded/Systemmails delete, based on a Idea from Amerilion, Code by Eliwood
      // Version 1.1
    output("<form action='mail.php?op=del2' method='POST'>"
          ."<select name='delart'>"
          ."<option value='sys'>Alle Systemnachrichten"
          ."<option value='ugdel'>Alle ungelesenen Nachrichten"
          ."<option value='gdel'>Alle geffneten Nachrichten"
          ."</select>"
          ."&nbsp;<input type='submit' class='button' value='lschen'>"
          ,true);
Logged
Eliwood
Member
Codemeister
****
Offline Offline

Posts: 275


View Profile WWW
« Reply #3 on: August 17, 2005, 10:14:34 AM »

Its allways exists e German translation, my post is an English Translation form German  Grin

But you can in 0.9.7 posts tranlations whenever you would, if  don't written somthing else
Logged

Daenerys LotGD-Remake using PHP7 and a modern, headless approach.
Copyright
Guest
« Reply #4 on: August 24, 2005, 02:44:48 AM »

Its allways exists e German translation, my post is an English Translation form German  Grin

But you can in 0.9.7 posts tranlations whenever you would, if  don't written somthing else

sry, havent known this  Roll Eyes

yeah, i like to translate evrything, because evrything's not in German  Cheesy

i will post soon a couple of translations/mods from mine in the German area Wink
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
36 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search