xoops forums

Forum Index


Board index » All Posts (SMEDrieben)




SMEDrieben

Not too shy to talk
Posted on: 1/7 13:45
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#1

Re: PUBLISHER 1.05 FINAL RELEASED

Thanks Mamba ! With the dejavusans font the Greek characters are given correctly in the pdf !

This is the beginning of the tcpdf.php (full version, not the special Xoops-version):

//============================================================+
// File name   : tcpdf.php
// Version     : 6.2.13
// Begin       : 2002-08-03
// Last Update : 2015-06-18
// Author      : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License     : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------


The main feautures state:

//  * UTF-8 Unicode and Right-To-Left languages;


The remaining problem is the mixing up of the html-table in the pdf.

SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 1/6 11:50
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#2

Re: PUBLISHER 1.05 FINAL RELEASED

Thanks !

I agree that the print.php works correctly, but the makepdf.php doesn't. I use as pdf-generator:

require_once XOOPS_ROOT_PATH '/class/libraries/vendor/tecnickcom/tcpdf/tcpdf.php';


Publisher's makepdf.php has at least two problems:

1. html-tables are mixed up
2. Greek characters are given as question marks (???)

Both are correct with the print.php. I suggest that it is in de tcpdf itself or how the data are deliverd at the tcpdf. I use the saem tcpdf with the latest release of the news modle. using that module the same problem occures. Both with the html-tables and teh Greek characters.

Furhter suggestions ?

SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 1/3 14:34
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#3

Re: PUBLISHER 1.05 FINAL RELEASED

Page with html-table

PDF with mixed up table

SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 1/2 11:41
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#4

Re: PUBLISHER 1.05 FINAL RELEASED

Concerning my first point:

I found the publisher_pagenav class. Adapting that class finally solved the page number size issue. The main problem was Chrome's caching routine: changens in css-files are not immediately shown in the web page after refreshing. i read something about CTRL+F5. Is that a solution ?

html-table in pdf: I didn't find any solution till now.

SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 12/31 8:07
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#5

Re: PUBLISHER 1.05 FINAL RELEASED

Thanks for this version !

I have two questions / remarks:

1.
Throughout several publisher (and even Smartsection) versions, I have tried to increase the size of the page numbers in the page navigator of articles. I mean, if you add a [pagebreak] within an article, a page navigator appears showing page numbers. I would like to increase the size of these numbers.

Is there a CSS style defining this size ? I couldn't find; I failed to adjust the size in my theme specific templates. Defined somewhere else ?

2.
I added an html-table in a publisher article. It is shown correctly. However, when I use the makepdf.php of publisher 1.05, the table is mixed up. The table has 3 columns and 9 rows. The first (left) column has 3 td's with a rowspan=3 each. In the pdf-version, some td's of the second and third column move to the first and the rowspan=3 appears in the third column (not in the first). How can this be adjusted so that it it given correctly in the pdf ?

Thanks !

SMEdrieben


SMEDrieben

Not too shy to talk
Posted on: 2017/11/24 21:58
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#6

Re: Addtional textsanitizer extensions do not work

But.... I switched "ref" => to 0, reloaded the page, switched back to 1, saved config,php again, reloaded the page and then ... it worked properly without the &

Cookie or cache problem ?

SMEDrieben


SMEDrieben

Not too shy to talk
Posted on: 2017/11/24 21:41
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#7

Re: Addtional textsanitizer extensions do not work

That's even worse ! It generates both a parse error and a fatal error:

Parse errorsyntax errorunexpected '<' in C:wamp64wwwhttpdocsclassmodule.textsanitizer.php(445) : regexp code on line 1


Fatal errorpreg_replace(): Failed evaluating code: <a href="http://www.ntvg.nl/publicatie/vaststellen-van-hersendood-bij-orgaandonatie" target="_blank"><span class="refbal pointer">&nbsp;1&nbsp;<span><b>1.</b>&nbsp;E.J.OKompanjeJ.LEpkerY.Jde GrootE.F.MWijdicksMvan der JagtVaststellen van hersendood bij orgaandonatie. <em>Ned Tijdschr Geneeskd.</em2013;157:A6444</span></span></ain C:wamp64wwwhttpdocsclassmodule.textsanitizer.php on line 445
Call Stack


Other suggestion ?

SMEDRieben


SMEDrieben

Not too shy to talk
Posted on: 2017/11/24 19:53
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#8

Re: Addtional textsanitizer extensions do not work

This solution worked in 2.5.7.1. Now I am on 2.5.9. and the additional extensions don't work anymore.

I added the extensions to class/textsanitizer/config.php or config-custom.php

"ref"  => 1,
"bldwz"    => 1)


Thereafter, [ref] appears in the text, it is not interpreted. This is ref.php
<?php
class MytsRef extends MyTextSanitizerExtension
{
    
// The code parser
    
public 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
    
public static function decode($text$width$height)
    {
        
// Load config data if any
        
$config parent::loadConfigdirname(__FILE__) );
        if ( empty(
$text) || empty($config['enabled']) ) return $text;
        
$ret someFunctionToConvertTheTextToDefinedFormat($text);
        return 
$ret;
    }
}
?>


refbal is defined as class in style.css of my theme.

In the debug, there is one warning (many times repeated):
WaarschuwingParameter 1 to MytsRef::load() expected to be a referencevalue given in bestand /class/module.textsanitizer.php regel 770


How can I get my extensions working ?

Thanks !

SMEDrieben


SMEDrieben

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

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: 2017/2/25 13:17
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#10

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



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