21
SMEDrieben
Re: PUBLISHER 1.05 FINAL RELEASED
  • 2018/1/2 11:41

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


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



22
SMEDrieben
Re: PUBLISHER 1.05 FINAL RELEASED
  • 2017/12/31 8:07

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


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



23
SMEDrieben
Re: Addtional textsanitizer extensions do not work
  • 2017/11/24 21:58

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


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



24
SMEDrieben
Re: Addtional textsanitizer extensions do not work
  • 2017/11/24 21:41

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


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



25
SMEDrieben
Re: Addtional textsanitizer extensions do not work
  • 2017/11/24 19:53

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


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



26
SMEDrieben
Re: XOOPS News 1.71 FINAL available for testing before official release
  • 2017/3/19 12:44

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


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



27
SMEDrieben
Re: Publisher and xoops 2.5.8.1: category description
  • 2017/2/25 13:17

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


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



28
SMEDrieben
2.5.8.1. and SmartFaq
  • 2017/2/25 12:58

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


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



29
SMEDrieben
Re: 2.5.8 Upgrade
  • 2017/2/25 11:37

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


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



30
SMEDrieben
Re: XOOPS News 1.71 FINAL available for testing before official release
  • 2017/2/25 11:14

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


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




TopTop
« 1 2 (3) 4 5 6 ... 17 »



Login

Who's Online

176 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits