Fork me on GitHub

Search

Donat-O-Meter

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

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

- 2 2.5 2.6 4 6 admin adslight Android AntiHarvesting AntiSpam API Apple Battlefield billige Blocks Bootstrap Captcha cell cent chronolabs Clicks Cloud content CĂN demo download Dresses facebook Fat floor Gateway giải Google Guide herre Home Honeypot html5 Human HỘ IP iPhone jQuery Language Law Legal List Loss module modules Monster new newbb news nhiệt NHÀ online PARK Payment phone PHP Plugin Prevention profile project Protector publisher RESIDENCE responsive review Rights rmcommon Room security Sentry Signed site Smartphone Smarty Smoking Solution Spam stem Studio support tag tdmcreate The Theme themes User userlog weight xoops Xortify XPayment ZendFramework

New Users

Registering user

# 139109

antivirusnum

Welcome to XOOPS!

Forum Index


Board index » All Posts

Bottom   Previous Topic   Next Topic

(1) 2 3 4 ... 29973 »


#1 Posted on: Yesterday 12:24 Re: Fresh install 2.5.9 beta1
It is good to hear that it is working now. Thanks for letting us know!

Top

geekwright
Joined:
2010/10/15 17:27
From Keokuk, IA
Group:
Webmaster
Registered Users
Posts: 117
(Show More) (Show Less)
Topic | Forum


#2 Posted on: Yesterday 6:29 Re: Fresh install 2.5.9 beta1
sorry i was in hollidays. I have all reinstalled and work fine

Top

lolothom
Joined:
2002/5/10 10:18
From FRANCE HTE LOIRE
Group:
Registered Users
Posts: 24
(Show More) (Show Less)
Topic | Forum


#3 Posted on: 8/22 17:56 Re: 2.5.8 Upgrade: textsanitizer
I've opened an issue on GitHub to make sure we get that readme.txt updated. Thanks for pointing that out!

In the mean time, changing the two function declarations as follows should clear up any errors that might show up.

...
     
// The code parser
    
public function load($ts
    {

...

    
// Processing the text
    
public static function decode($text$width$height)
    {
...


You don't have to do anything with the extra parameters to decode, they just have to be there to satisfy the inheritance rules set from the parent class.

Quote:

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

...

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


Top

geekwright
Joined:
2010/10/15 17:27
From Keokuk, IA
Group:
Webmaster
Registered Users
Posts: 117
(Show More) (Show Less)
Topic | Forum


#4 Posted on: 8/22 9:13 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

Top

SMEDrieben
Joined:
2009/6/17 3:10
Group:
Registered Users
Posts: 141
(Show More) (Show Less)
Topic | Forum


#5 Posted on: 8/22 9:09 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

Top

SMEDrieben
Joined:
2009/6/17 3:10
Group:
Registered Users
Posts: 141
(Show More) (Show Less)
Topic | Forum


#6 Posted on: 8/22 8:58 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

Top

SMEDrieben
Joined:
2009/6/17 3:10
Group:
Registered Users
Posts: 141
(Show More) (Show Less)
Topic | Forum


#7 Posted on: 8/21 12:07 Re: 2.5.8 :: Update Error : ParseError: syntax error, unexpected
There is a tool, php7cc, that we've used a lot when adapting code to PHP7. You might find it helpful.

It is available here: https://github.com/sstalle/php7cc

Top

geekwright
Joined:
2010/10/15 17:27
From Keokuk, IA
Group:
Webmaster
Registered Users
Posts: 117
(Show More) (Show Less)
Topic | Forum


#8 Posted on: 8/21 11:47 Re: 2.5.8 :: Update Error : ParseError: syntax error, unexpected
Quote:

wishcraft wrote:
When i got it up and running I got the following error: Error : ParseError: syntax error, unexpected 'new' (T_NEW)


The most likely cause is a line like this:
$variable =& new SomeObject();


The problem is the & by reference operator.

Objects are always references now, and PHP7 complains if you use the by reference assignments with them. But when you add new in one of those assignments, it becomes a parse error -- it can't use it in that context.

Finding and fixing any occurrences like that example should fix it.

Top

geekwright
Joined:
2010/10/15 17:27
From Keokuk, IA
Group:
Webmaster
Registered Users
Posts: 117
(Show More) (Show Less)
Topic | Forum


#9 Posted on: 8/21 6:23 2.5.8 :: Update Error : ParseError: syntax error, unexpected 'new' (T_NEW)
Hey all how are you? I have recently been updating renderments.org from PHP5 earlier version of XOOPS 2.5 to XOOPS 2.5 with PHP7; now with the following error I was making some adjustments to this module and puting in __construct() calls instead of XoopsClassFunction() but that is the only change..

When i got it up and running I got the following error: Error : ParseError: syntax error, unexpected 'new' (T_NEW) - You can see it here on the following URLs:-



I have in the contact us module for solicitors and the likes (Isn't that the greatest thing in self consumption I can't have any sort of which way anything in the page with header and forms lawsuit on my arse - anyway!!) I have grep'd the word 'new' recursively in the /modules/lawsuit and buffered it to a text file and gone line by line checking all the new statements and they are all right...

If you need me to package this one geekwrite; let me know so you can have it the same box operating to debug on...

Debugging Resources



Top

wishcraft
Joined:
2007/5/18 16:56
From Marrickville South, NSW, Australia
Group:
Registered Users
Posts: 2194
(Show More) (Show Less)
Topic | Forum


#10 Posted on: 8/20 12:27 Re: MyAlbum 3.07 pre-RC3 available for testing
Thanks Richard... I hate auto-correct, doesn't fix stuff you want it to (like above) and then changes things that you don't want - I just can't win.

Top

zyspec
Joined:
2004/9/21 9:28
From USA
Group:
Registered Users
Posts: 950
(Show More) (Show Less)
Topic | Forum



Top
(1) 2 3 4 ... 29973 »



[Advanced Search]