http://dev.cmsmadesimple.org/projects/content2pdf/
I must dedicate time for rendering my codes more user-friendly

Sorry to all.
Enjoy this new integration

PS:
see in action here:
http://www.awakening.it/cmsms_dl/
{cms_module module='Content2Pdf'}MichaelK wrote: How can i insert this?
{pdf} ?
Why made a link directly to "create" and not insert {cms_module module='Content2Pdf'}Piratos wrote: I have made a link to create.php and it works (but the link settings of the fckeditor doesn't work - i must made the link in the sourcecode).
So it looks great - the go back link has no function or works it with the module - link ?
Very nice to listenwestis wrote: Roman has made some changes to the {print} tag that will be included soon, probably 0.11.1. That gives an option to not display the Go Back button. See http://forum.cmsmadesimple.org/index.ph ... l#msg12406
No help no readme, but i can read scripts.Why made a link directly to "create" and not insert {cms_module module='Content2Pdf'}
LolPiratos wrote:No help no readme, but i can read scripts.Why made a link directly to "create" and not insert {cms_module module='Content2Pdf'}
Code: Select all
<?php
require_once(dirname(dirname(dirname(__FILE__)))."/config.php");
require_once(dirname(__FILE__).'/html2fpdf/html2fpdf.php');
// activate Output-Buffer:
ob_start();
include($config['root_url']."/index.php?page=".$_GET["page_id"]."&print=false");
// Output-Buffer in variable:
$html=ob_get_contents();
// delete Output-Buffer
ob_end_clean();
$pdf = new HTML2FPDF();
$pdf->setBasePath("../../..");
$pdf->DisplayPreferences('HideWindowUI');
$pdf->AddPage();
$pdf->WriteHTML($html);
$pdf->Output($_GET["page_name"].'.pdf','I');
unset($pdf);
?>
Code: Select all
$t=$_GET["print"];
if ($t == "true")
{$tpl_source = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'."\n".'<__html><head><title>{title}</title><meta name="robots" content="noindex"></meta>{stylesheet}{literal}<style type="text/css" media="print">#back {display: none;}</style>{/literal}</head></__body style="background-color: white; color: black; background-image: none;"><form action="index.php?page='.$tpl_name.'" method="post"><input type="submit" value="Go Back"></form>{content}<__body></__html>';}
else
{$tpl_source = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'."\n".'<__html><head><title>{title}</title><meta name="robots" content="noindex"></meta>{stylesheet}{literal}<style type="text/css" media="print">#back {display: none;}</style>{/literal}</head></__body style="background-color: white; color: black; background-image: none;">{content}<__body></__html>';}
Code: Select all
<?php
$dir = dirname(__FILE__);
$inclfilename = $dir.'/config.php';
while(!@file_exists($inclfilename) && (strcmp($dir, dirname($dir)) != 0) ){
$dir = dirname($dir);
$inclfilename = $dir.'/config.php';
}
@require_once($inclfilename);
require(dirname(__FILE__).'/html2fpdf/html2fpdf.php');
// activate Output-Buffer:
ob_start();
include($config['root_url']."/index.php?page=".$_GET["page_id"]."&print=true");
// Output-Buffer in variable:
$html=ob_get_contents();
// delete Output-Buffer
ob_end_clean();
$pdf = new HTML2FPDF();
$pdf->setBasePath("../../..");
$pdf->DisplayPreferences('HideWindowUI');
$pdf->AddPage();
$pdf->WriteHTML($html);
$pdf->Output($_GET["page_name"].'.pdf','I');
unset($pdf);
?>
Please explain better what you wish do.Azrael wrote: hm, is there a possibility to use this mode without url-file-access?
Technically I should, if I'am not completly wrong.