DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • May 18, 2013, 05:41:55 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: 1 2 3 [4]   Go Down
  Print  
Author Topic: Content Download (Mails, Commentary) as PDF  (Read 3027 times)
0 Members and 1 Guest are viewing this topic.
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #45 on: August 01, 2012, 01:05:55 AM »

I finally got this working xD (Attached. Simply extract and dump into modules folder.)

YOU NEED FPDF FOR THIS MODULE TO WORK. You can find it here- download, extract and upload to your root.

Two small core edits required:

1: mail.php

FIND:
Code:
}else{
$sql = "DELETE FROM " . db_prefix("mail") . " WHERE msgto='".$session['user']['acctid']."' AND messageid IN ('".join("','",$msg)."')";
ADD DIRECTLY BEFORE:
Code:
}elseif (httppost('pdf_mail')>''){
modulehook('pdfmail',array());

2: lib/mail/case_default.php


FIND:
Code:
rawoutput("<input type='submit' class='button' value=\"$delchecked\">");
ADD DIRECTLY AFTER:
Code:
modulehook('mailform',array());

And you're all set! (Make sure to set the necessary module settings beforehand- several of them are extremely important to the functioning of this module.)
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Pages: 1 2 3 [4]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
22 Guests, 2 Users
Lana, supermingo
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search