The small Cedric tcpdf does not work. It generates an error:
XOOPS URL not defined
This message is defined in line 29 of the tcpdf_autoconfig.php of the Cedric package.
How can I get it working ?
SMEDrieben
XOOPS URL not defined
$content .= $myts->undoHtmlSpecialChars($itemObj->getSummary());
$content .= $myts->undoHtmlSpecialChars($itemObj->getBody());
<?php
class MytsRef extends MyTextSanitizerExtension
{
// The code parser
function load(&$ts)
{
$ts->patterns[] = "/[ref ([0-9]*)](.*)[/ref]/sU";
$ts->replacements[] = '<span class="refbal"> \1 <span><b>\1.</b> \2</span></span>';
$ts->patterns[] = "/[ref ([0-9]*) news=([0-9]*)](.*)[/ref]/sU";
$ts->replacements[] = '<a href="' . XOOPS_URL . '/modules/news/article.php?storyid=\2" target="_top"><span class="refbal pointer"> \1 <span><b>\1.</b> \3</span></span></a>';
$ts->patterns[] = "/[ref ([0-9]*) smeb=([0-9]*)](.*)[/ref]/sU";
$ts->replacements[] = '<a href="' . XOOPS_URL . '/modules/publisher/category.php?categoryid=\2" target="_top"><span class="refbal pointer"> \1 <span><b>\1.</b> \3</span></span></a>';
$ts->patterns[] = "/[ref ([0-9]*) smehf=([0-9]*)](.*)[/ref]/sU";
$ts->replacements[] = '<a href="' . XOOPS_URL . '/modules/publisher/item.php?itemid=\2" target="_top"><span class="refbal pointer"> \1 <span><b>\1.</b> \3</span></span></a>';
$ts->patterns[] = "/[ref ([0-9]*) url=(.*)](.*)[/ref]/sU";
$ts->replacements[] = '<a href="\2" target="_blank"><span class="refbal pointer"> \1 <span><b>\1.</b> \3</span></span></a>';
}
// Processing the text
static function decode($text)
{
// Load config data if any
$config = parent::loadConfig( dirname(__FILE__) );
if ( empty($text) || empty($config['enabled']) ) return $text;
$ret = someFunctionToConvertTheTextToDefinedFormat($text);
return $ret;
}
}
?>
Onbekend: Declaration of MytsRef::decode() should be compatible with MyTextSanitizerExtension::decode($url, $width, $height) in bestand /class/textsanitizer/ref/ref.php regel 28
$content = str_replace('[pagebreak]','',$content);
Onbekend: Only variables should be assigned by reference in bestand /class/tree.php regel 130
Melding: Use of undefined constant _MI_EXTCAL_SUBMIT_EVENT - assumed '_MI_EXTCAL_SUBMIT_EVENT' in bestand /modules/extcal/view_new-event.php regel 22
Fatal error: Call to undefined function eclaircirCouleur() in C:wampwwwhttpdocsmodulesextcalclassevent.php on line 398
Call Stack
# Time Memory Function Location
1 0.0008 268408 {main}( ) ...index.php:0
2 0.0628 3962096 include( 'C:wampwwwhttpdocsheader.php' ) ...index.php:82
3 0.0694 4813904 xos_opal_ThemeFactory->createInstance( ) ...header.php:58
4 0.0694 4818072 xos_opal_Theme->xoInit( ) ...theme.php:81
5 0.0728 4969384 xos_logos_PageBuilder->xoInit( ) ...theme.php:331
6 0.0728 4969968 xos_logos_PageBuilder->retrieveBlocks( ) ...theme_blocks.php:49
7 0.1149 6146848 xos_logos_PageBuilder->buildBlock( ) ...theme_blocks.php:131
8 0.1151 6148704 XoopsBlock->buildBlock( ) ...theme_blocks.php:197
9 0.1290 6467648 bExtcalUpcomingShow( ) ...xoopsblock.php:218
10 0.1384 7491848 ExtcalEventHandler->getEventsOnPeriode( ) ...upcoming.php:71