xoops forums

Forum Index


Board index » All Posts (SMEDrieben)




SMEDrieben

Not too shy to talk
Posted on: 3/19 12:44
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 148
Since: 2009/6/17
#1

Re: XOOPS News 1.71 FINAL available for testing before official release

I experience two other problems, possibly bugs.

Problem 1:
In the admin there is a tab "Newsletter". The date selection does not work. I tried to export news items from nov 2016 till now and entered the dates using the calendar. The result: all news items in de database were expeorted !

Problem 2:
I tried to download the file created in step 1. It generates an error. The link contains "uploads/news/newsletter.txt", whereas the file is stored as "letter.txt".

SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 2/25 13:17
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 148
Since: 2009/6/17
#2

Re: Publisher and xoops 2.5.8.1: category description

In the category description field of categories, html codes cannot be entered. They are even stored in the database !

It would be pleasant to have some possibilities to influence text layout in this area.

SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 2/25 12:58
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 148
Since: 2009/6/17
#3

2.5.8.1. and SmartFaq

Xoops 2.5.8.1
php 5.6

SmartFaq 1.1 Final generates a fatal error in the category.php. Therefore, I upgraded to 1.12 RC1. There are problems with this version as well:

Updating the module in the module admin area generates a fatl error:

Fatal errorCannot access private property SmartDbTable::$_flagForDrop in C:wamp64wwwhttpdocsmodulessmartfaqclasssmartdbupdater.php on line 649


The fatal error in category.php in 1.1 does not disappear. It is now:

Fatal errorCall to a member function setVar() on null in C:wamp64wwwhttpdocsmodulessmartfaqcategory.php on line 120


Are there any simple solutions ? I cannot upgrade to 2.5.8 because of problems with this module.

SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 2/25 11:37
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 148
Since: 2009/6/17
#4

Re: 2.5.8 Upgrade

I'am now on 2.5.8.1. On opening the admin, the tab section at the right does not start default with the rescue ring. I read the suggestion to upgrade to Tabs 1.2.7, but I don not know how to do.

What file should be replaced ? How can I upgrade tot Tab 1.2.7 ?

SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 2/25 11:14
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 148
Since: 2009/6/17
#5

Re: XOOPS News 1.71 FINAL available for testing before official release

In general, this version is working correctly. Thanks !

I experience several problems with the makepdf.php.

The first problem is that the path to the tcpdf library is wrong. E.g. line 35 of make.pdf:

if (!is_file(XOOPS_PATH '/vendor/tcpdf/tcpdf.php')) {


This should be:
if (!is_file(XOOPS_ROOT_PATH '/class/libraries/vendor/tecnickcom/tcpdf/tcpdf.php')) {


There are several similar problems in the makepdf.php.

The, there is an error message:
XOOPS URL not defined


This can be solved by deleting all lines such as:
SetFont(PDF_FONT_NAME_SUBSUBPDF_FONT_STYLE_SUBSUBPDF_FONT_SIZE_SUBSUB);


I don't know what is wrong, but this code is a few time in the make.pdf and generates the error.

Subtitle is not displayed on the index page. I added after line 207 in index.php:

$story['subtitle'] = $thisstory->subtitle();


Furthermore, I did several adjustments on the layout.

SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 2/24 20:23
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 148
Since: 2009/6/17
#6

Re: Publisher and xoops 2.5.8.1 and tcpdf (Xoops-Cedric package)

I'am now on 2.5.8.1 and Publisher 1.04.

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


SMEDrieben

Not too shy to talk
Posted on: 2016/8/27 12:46
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 148
Since: 2009/6/17
#7

Re: Publisher and xoops 2.5.8, and tcpdf

Similarly, if you want to show only the summary in the pdf, you can use

$content .= $myts->undoHtmlSpecialChars($itemObj->getSummary());


in makepdf.php in stead of

$content .= $myts->undoHtmlSpecialChars($itemObj->getBody());


SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 2016/8/22 13:13
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 148
Since: 2009/6/17
#8

Re: extCal 2.39 Beta-1 available for testing (XOOPS 2.5.8, PHP 7)

Thanks ! When can we use this module on production sites ? The previous version does not work in 2.5.8 and, therefore, this version is needed to upgrade tot 2.5.8.

SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 2016/8/22 13:09
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 148
Since: 2009/6/17
#9

Re: 2.5.8 Upgrade: textsanitizer

In previous Xoops-version, I made an additonal TextSanitizer extension according to the readme.txt:

<?php
class MytsRef extends MyTextSanitizerExtension
{
    
// The code parser
    
function load(&$ts
    {
        
$ts->patterns[] = "/[ref ([0-9]*)](.*)[/ref]/sU";
        
$ts->replacements[] = '<span class="refbal">&nbsp;\1&nbsp;<span><b>\1.</b>&nbsp;\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">&nbsp;\1&nbsp;<span><b>\1.</b>&nbsp;\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">&nbsp;\1&nbsp;<span><b>\1.</b>&nbsp;\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">&nbsp;\1&nbsp;<span><b>\1.</b>&nbsp;\3</span></span></a>';
        
$ts->patterns[] = "/[ref ([0-9]*) url=(.*)](.*)[/ref]/sU";
        
$ts->replacements[] = '<a href="\2" target="_blank"><span class="refbal pointer">&nbsp;\1&nbsp;<span><b>\1.</b>&nbsp;\3</span></span></a>';        
    }
    
    
// Processing the text
    
static function decode($text)
    {
        
// Load config data if any
        
$config parent::loadConfigdirname(__FILE__) );
        if ( empty(
$text) || empty($config['enabled']) ) return $text;
        
$ret someFunctionToConvertTheTextToDefinedFormat($text);
        return 
$ret;
    }
}
?>


It now generates an message:

OnbekendDeclaration of MytsRef::decode() should be compatible with MyTextSanitizerExtension::decode($url$width$heightin bestand /class/textsanitizer/ref/ref.php regel 28


How can I solve this message ?

SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 2016/8/22 12:58
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 148
Since: 2009/6/17
#10

Re: Publisher and xoops 2.5.8, and tcpdf

Sorry for the late response: I was on holiday.

This is a good solution ! Thanks ! I added an additional line after your line to remove the pagebreak-codes:

$content str_replace('[pagebreak]','',$content);


SMEDrieben



TopTop
(1) 2 3 4 ... 14 »