Warning: preg_replace_callback(): Requires argument 2, '$func['entity_fix']('\2')', to be a valid callback in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3

Warning: preg_replace_callback(): Requires argument 2, '$func['entity_fix']('\2')', to be a valid callback in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3
Print Page - Ye Olde Mail Mod

DragonPrime - LoGD Resource Community

Modules, Themes and other customizations for your game => v0.9.7 Modification Discussions => Topic started by: Eliwood on June 10, 2005, 10:14:34 AM



Title: Ye Olde Mail Mod
Post by: Eliwood 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);


Title: Re:Ye Olde Mail Mod
Post by: Excalibur on June 10, 2005, 05:31:53 PM
Nice addiction Eliwood.
Already installed ;)


Title: Re:Ye Olde Mail Mod
Post by: Copyright 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);


Title: Re:Ye Olde Mail Mod
Post by: Eliwood on August 17, 2005, 10:14:34 AM
Its allways exists e German translation, my post is an English Translation form German  ;D

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


Title: Re:Ye Olde Mail Mod
Post by: Copyright on August 24, 2005, 02:44:48 AM
Its allways exists e German translation, my post is an English Translation form German  ;D

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

sry, havent known this  ::)

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

i will post soon a couple of translations/mods from mine in the German area ;)

© 2019 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines