51
SMEDrieben
Re: Publisher 1.02 Final and pdf: second problem
  • 2016/1/31 20:46

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


A second error:

I can get makepdf.php (Publisher 1.02) working with my old tcpdf installation. It works fine with Xoops 2.5.7.2 and Publisher 1 Final.

However, with 2.5.7.2 and Publisher 1.02 Final the xoops-codes (such as [i], [b]) are not interpreted and are given as text in the pdf. This is the (1.02) code of the text of the article in makepdf.php

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


What is happening ? Is $myts (the textsanitizer) or the undoHtmlSpecialChars not working ?

Thanks !

SMEDrieben



52
SMEDrieben
Publisher 1.02 Final and pdf
  • 2016/1/31 20:02

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


I installed Publisher 1.02 (on the wamp test system) and copied the tcpdf directory to the xoops_lib/vendor directory. If I press the pdf button below a Publisher article, an error is generated:

XOOPS URL not defined


It seems that this error is defined in tcpdf_autoconfig.php line 34. I don't know if it is associated with IIS ? IIS is uninstalled on my system.

How can it be corrected ? Thanks !

Xoops 2.5.7.2
Php: 5.6.16

SMEDrieben



53
SMEDrieben
Re: PHP 7 coming soon! And XOOPS will be ready! Is it now ?
  • 2016/1/26 21:32

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


I installed Wampserver 3.0 with php 5.6.16, php 7.0.0 and php 7.0.2 and copied my 2.5.7.2 website to this server.

5.6.16: works well

7.0.0 and 7.0.2 generate errors: first a Xoops message with the Xoops logo:

Error mysql extension not loaded


Second: 4 deprecations:

( ! ) DeprecatedMethods with the same name as their class will not be constructors in a future version of PHPXoopsPreload has a deprecated constructor in C:wampwwwhttpdocsclasspreload.php on line 40

( ! ) DeprecatedMethods with the same name as their class will not be constructors in a future version of PHPXoopsPreloadItem has a deprecated constructor in C:wampwwwhttpdocsclasspreload.php on line 158

( ! ) DeprecatedMethods with the same name as their class will not be constructors in a future version of PHPxos_kernel_Xoops2 has a deprecated constructor in C:wampwwwhttpdocsclassxoopskernel.php on line 27

( ! ) DeprecatedMethods with the same name as their class will not be constructors in a future version of PHPXoopsSecurity has a deprecated constructor in C:wampwwwhttpdocsclassxoopssecurity.php on line 24


Can this easily be solved or should I wait for a future Xoops-release ? My provider wants to switch to php 7 !

SMEDrieben



54
SMEDrieben
Re: Bug in custom code in class textsanitizer
  • 2015/10/17 11:43

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


Thanks Mamba ! This solves the problem.

The php-code I used was copied from the class/texsanitizer/readme.txt. It should be changed there as well.

SMEDrieben



55
SMEDrieben
Bug in custom code in class textsanitizer
  • 2015/10/16 19:14

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


I have made a custom code in class textsanitizer. It worked fine till recently. I don't know if it went wrong after moving tot 2.5.7.1 of to php 5.4 (tested on 5.4.12 and 5.4.45-0+deb7u1).

This is the error:
Fatal errorCannot make static method MyTextSanitizerExtension::decode() non static in class MytsBldwz in C:wampwwwhttpdocsclasstextsanitizerbldwzbldwz.php on line 64


This is my custom code (bldwz.php) that is a modification of the readme.txt that is found in class/textsanitizer

<?php
class MytsBldwz extends MyTextSanitizerExtension
{
// The encode function for dhtml editor
    
function encode($textarea_id)
    {
        
// If the extension has config data, load it
        
$config parent::loadConfig(dirname(__FILE__));
        
// Make sure that the icon is available /images/form/mycode.gif
        
$code "<img src='{$this->image_path}/bldwz.gif' alt='Bladwijzer' title='Bladwijzer' onclick='xoopsCodeBldwz("{$textarea_id}","" . htmlspecialchars("Voer de term met bladwijzer in", ENT_QUOTES) . "");'  onmouseover='style.cursor="hand"'/>&nbsp;";
        
$javascript = <<<EOH
            function xoopsCodeBldwz(id, enterBldwzPhrase){
                if (enterBldwzPhrase == null) {
                    enterBldwzPhrase = "Enter the content for the code.";
                }
                var selection = xoopsGetSelect(id);
                if (selection.length > 0) {
                    var text = selection;
                }else {
                    var text = prompt(enterBldwzPhrase, "");
                }
                var domobj = xoopsGetElementById(id);
                if ( text != null && text != "" ) {
                    var result = "[bldwz]" + text + "[/bldwz]";
                    xoopsInsertText(domobj, result);
                }
                domobj.focus();
            }
EOH;
        
// Return the scripts to be displayed in editor form and the javascript for relevant actions
        
return array($code$javascript);
    }
    
    
// The code parser
    
function load(&$ts
    {
        
$ts->patterns[] = "/[bldwz](.*)[/bldwz]/sU";
        
$ts->replacements[] = '<a href="' XOOPS_URL '/search.php?query=\1&action=results" target="_top">\1</a>';
        
$ts->patterns[] = "/[bldwz def](.*)[/bldwz]/sU";
        
$ts->replacements[] = '<a href="' XOOPS_URL '/search.php?query=\1+Begrip:&andor=AND&mids%5B%5D=28&action=results" target="_top">\1</a>';
        
$ts->patterns[] = "/[bldwz stp](.*)[/bldwz]/sU";
        
$ts->replacements[] = '<a href="' XOOPS_URL '/search.php?query=\1&mids%5B%5D=28&action=results" target="_top">\1</a>';
        
$ts->patterns[] = "/[bldwz ([0-9]*)](.*)[/bldwz]/sU";
        
$ts->replacements[] = '<a href="' XOOPS_URL '/modules/smartfaq/faq.php?faqid=\1" target="_top">\2</a>';
        
$ts->patterns[] = "/[bldwz KKK=([0-9]*)](.*)[/bldwz]/sU";
        
$ts->replacements[] = '<a href="http://www.katholieknederland.nl/katholicisme/katechismus-van-de-katholieke-kerk/blok_FBlokNo\1.html" target="_blank">\2</a>';
        
$ts->patterns[] = "/[news ([0-9]*)](.*)[/news]/sU";
        
$ts->replacements[] = '<a href="' XOOPS_URL '/modules/news/article.php?storyid=\1" target="_top">\2</a>';
        
$ts->patterns[] = "/[smeb ([0-9]*)](.*)[/smeb]/sU";
        
$ts->replacements[] = '<a href="' XOOPS_URL '/modules/publisher/category.php?categoryid=\1" target="_top">\2</a>';
        
$ts->patterns[] = "/[smehf ([0-9]*)](.*)[/smehf]/sU";
        
$ts->replacements[] = '<a href="' XOOPS_URL '/modules/publisher/item.php?itemid=\1" target="_top">\2</a>';
    }
    
    
// Processing the text
    
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;
    }
}
?>


Line 64 is almost the latest with only "}".

Any idea what is wrong ?

Thanks !

SMEDrieben



56
SMEDrieben
How are the modifo.php files loaded ?
  • 2015/2/7 12:43

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


I wonder how the modinfo.php language files are loaded. If I switch off the main menu block, the modinfo.php from the simplenewsletter module isn't loaded any more; if I switch on the main menu block, it again is. I can repair this problem by adding

require_once XOOPS_ROOT_PATH.'/modules/simplenewsletter/language/'.$xoopsConfig['language'].'/modinfo.php';


to several php-files of simplenewsletter, but I expect there is an easier way. E.g. the other modules don't have this problem after switching off the main menu. Are not all modinfo.php files loaded by function loadInfo in kernel/module.php ??

What is the appropriate way to load modinfo.php in the simplenewsletter module ?

Kind regards !

SMEDrieben



57
SMEDrieben
Extcal Fatal error
  • 2015/1/11 15:09

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


I changed my theme and experienced a strange fatal error in Extcal:

Fatal error: Call to undefined function eclaircirCouleur() in /home/mymap/mydomain/public_html/modules/extcal/class/event.php on line 323

It doesn't happen with my current theme, it doesn't happen in my test situation with the new theme. It happen if the extcal_block_upcoming.html is activated.

Xoops 2.5.7.2
Extcal 2.37 Final

Thanks !

SMEDrieben



58
SMEDrieben
Re: nav menu xbootstrap
  • 2014/12/14 15:10

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


Thanks ! Very instructive answer. I will use this suggestion.

SMEDrieben



59
SMEDrieben
Re: nav menu xbootstrap
  • 2014/12/12 19:06

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


I love the bootstrap theme as well. I tried to change the background color of the menu bar. I changed several background colors in the /css/bootstrp.min.css but I didn't succeed.

At this moment I'am using the navbar-inverse class in the nav-menu.html.

How can I change the background-color of the menu bar ?

Thanks !

SMEDrieben



60
SMEDrieben
Re: Publisher 1.02 Beta 3 for XOOPS 2.5.7 ready for testing
  • 2014/7/2 20:37

  • SMEDrieben

  • Not too shy to talk

  • Posts: 173

  • Since: 2009/6/17


Thanks ! The global.php changes (d-m-Y instead of d/m/Y) have solved the date issues in my case !

SMEDrieben




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 17 »



Login

Who's Online

215 user(s) are online (142 user(s) are browsing Support Forums)


Members: 0


Guests: 215


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