xoops forums

Forum Index


Board index » All Posts




Lupin

Just popping in
Posted on: Yesterday 14:48
Lupin
Lupin (Show more)
Just popping in
Posts: 45
Since: 2007/6/1 2
#1

Re: Adslight 2.2 error after upgrade 2.5.8

OK, tried to reinstall and thumbs now are visible.

It seems something wrong happened during the upgrade from version 2.2 to 2.3

Pino


luciorota

Module Developer
Posted on: Yesterday 13:58
luciorota
luciorota (Show more)
Module Developer
Posts: 194
Since: 2007/4/20
#2

Re: Display multiple modules inside a list page

Welcome!
Which version of Xoops are you using?
Which modules are installed?

Is not possible to show multiple modules in a page but it's possible to show blocks from differents modules ...


Lupin

Just popping in
Posted on: Yesterday 12:29
Lupin
Lupin (Show more)
Just popping in
Posts: 45
Since: 2007/6/1 2
#3

Re: NewBB 5.0 Final and 4.34 Final are released

Hi there,

I installed newBB 5.0 final, released 2019/05/07 ( xoops 2.5.10 - PHP 7.2 - MySql 5.6.44 )

If I select "1" to allow users to read disclaimer at first visit , I read Error : Error: Call to a member function getHandler() on null

Is this a known error ? There are earlier versions of this forum ?

Ty

Pino


dummy1111111

Just popping in
Posted on: Yesterday 9:19
dummy1111111
dummy1111111 (Show more)
Just popping in
Posts: 1
Since: Yesterday
#4

Display multiple modules inside a list page

So I have news module page which consists of all the list of news. And on the home page I have a block which is a combination of (news, events, information, campaign) data. Now the client wants to do the same thing in the news list page. How can I achieve such thing? Is there a setting in the admin or in the source file.

Sorry for asking such amateur question. This project was just handed to me and I have no idea about XOOPS. Thank you very much.


goffy

Quite a regular
Posted on: 8/22 16:12
goffy
goffy (Show more)
Quite a regular
Posts: 367
Since: 2010/12/27
#5

newbb and html

Hi

I have a problem with proper displaying topics:
Resized Image


if I have edit the post text with "DHTML Form with xCode" the post text will be shown properly.
if I edit the post text with TinyMCE I see the html tags, not displayed as html

you can see it on myxoops.org, block "Aktuelles aus dem Forum"

xoops 2.5.10
newbb 5.0 final

how can I solve this?


luciorota

Module Developer
Posted on: 8/21 12:49
luciorota
luciorota (Show more)
Module Developer
Posts: 194
Since: 2007/4/20
#6

Re: Database: How do I set a column value to NULL

This is not a solution but a temporary patch.
Define your objects a subclass of ModuleXoopsObject class... this way it is possible to set a column value to NULL...

abstract class ModuleXoopsObject extends XoopsObject {
    
/**
     * @var moduleHelper
     * @access private
     */
    
private $moduleHelper null;

    
/**
     * constructor
     */
    
public function __construct()
    {
        
$this->moduleHelper XmfModuleHelper::getHelper('module');
        
$this->db XoopsDatabaseFactory::getDatabaseConnection();
        
//
        
parent::__construct();
    }
    
    
/**
     * assign a value to a variable (also null is allowed)
     *
     * @access public
     * @param string $key   name of the variable to assign
     * @param mixed  $value value to assign
     * @param bool   $not_gpc
     */
    
public function setVar($key$value$not_gpc false)
    {
        if (!empty(
$key) && isset($value) && isset($this->vars[$key])) {
            
$this->vars[$key]['value']   =& $value;
            
$this->vars[$key]['not_gpc'] = $not_gpc;
            
$this->vars[$key]['changed'] = true;
            
$this->setDirty();
        }
        if (!empty(
$key) && is_null($value) && isset($this->vars[$key])) {
            
$this->vars[$key]['value']   = null;
            
$this->vars[$key]['not_gpc'] = $not_gpc;
            
$this->vars[$key]['changed'] = false;
            
$this->setDirty();
        }
    }
}



abstract class 
ModuleXoopsObjectHandler extends XoopsPersistableObjectHandler
{
    
/**
     * @var moduleHelper
     * @access private
     */
    
private $moduleHelper null;

    
/**
     * @param null|object   $db
     */
    
public function __construct($db null$table ''$className ''$keyName ''$identifierName '')
    {
        
parent::__construct($db$table$className$keyName$identifierName);
        
$this->moduleHelper XmfModuleHelper::getHelper('module');
    }
    
    
/**
     * insert an object into the database
     *
     * @param  XoopsObject $object {@link XoopsObject} reference to object
     * @param  bool        $force  flag to force the query execution despite security settings
     * @return mixed       object ID
     */
    
public function insert(XoopsObject $object$force true)
    {
        
$ret parent::insert($object$force);
        
// handle null values
        
$queryFunc = empty($force) ? 'query' 'queryF';
        
$vars $object->getVars();
        foreach (
$vars as $key => $value) { 
            if (
is_null($value['value'])) {
                
$sql "UPDATE `{$this->table}` SET `{$key}` = NULL WHERE `{$this->keyName}` = {$this->db->quote($object->getVar($this->keyName))}";
                if (!
$result $this->db->{$queryFunc}($sql)) {
                    
//return false;
                

            }
        }
        return 
$ret;
    }
}


Lupin

Just popping in
Posted on: 8/20 14:04
Lupin
Lupin (Show more)
Just popping in
Posts: 45
Since: 2007/6/1 2
#7

Re: Adslight 2.2 error after upgrade 2.5.8

Here is where thumbs were visible before last version ( block name "Recent Listings w/Photo" )

[img width=300]http://www.cmfoto.eu/cm8/themes/xswatch/images/Screenshot (1).jpg[/img]

Here where could be useful too ( module front page )

[img width=300]http://www.cmfoto.eu/cm8/themes/xswatch/images/Screenshot (2).jpg[/img]

Maybe a selection like "show thumb yes/no" could be a problem or a useful solution ?

Ty

Pino


bioskop

Just popping in
Posted on: 8/20 6:23
bioskop
bioskop (Show more)
Just popping in
Posts: 3
Since: 2004/10/11
#8

Re: NewBB 5.0 Final and 4.34 Final are released

Perfect! The modification also works on my V4.34.
Thank you Mamba.


Mamba

Moderator
Posted on: 8/20 1:09
Mamba
Mamba (Show more)
Moderator
Posts: 10760
Since: 2004/4/23
#9

Re: Adslight 2.2 error after upgrade 2.5.8

You can add the Italian translation here:

https://github.com/XoopsLanguages/italian/tree/master/modules

or on Transifex:

https://www.transifex.com/xoops/

I'm not sure about the thumbs. Where were they, and do you have a screenshot of them?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


Lupin

Just popping in
Posted on: 8/19 13:15
Lupin
Lupin (Show more)
Just popping in
Posts: 45
Since: 2007/6/1 2
#10

Re: Adslight 2.2 error after upgrade 2.5.8

Hi there,

I installed the adslight module in my 2.5.10 installation ( official xswatch theme ) and really in module mainpage I can see categories and in the item view I can call the item editor as USER, but ...

thumbs ( before I could see in block ) disappeared ..
( it could depend on the upgrade from version 2.2 RC2 ? )

I have to say the thumbs could be useful both in block and in module mainpage.

Since I will use this module in the website I'm building , I ASAP will realise its "lang_ita" .... Can I post here the folders ?

Pino



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