1931
luciorota
Re: Display multiple modules inside a list page
  • 2019/8/23 13:58

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


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 ...



1932
Lupin
Re: NewBB 5.0 Final and 4.34 Final are released
  • 2019/8/23 12:29

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


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



1933
dummy1111111
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.



1934
goffy
newbb and html
  • 2019/8/22 16:12

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


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?



1935
luciorota
Re: Database: How do I set a column value to NULL
  • 2019/8/21 12:49

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


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;
    }
}



1936
Lupin
Re: Adslight 2.2 error after upgrade 2.5.8
  • 2019/8/20 14:04

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


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



1937
bioskop
Re: NewBB 5.0 Final and 4.34 Final are released
  • 2019/8/20 6:23

  • bioskop

  • Just popping in

  • Posts: 4

  • Since: 2004/10/11


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



1938
Mamba
Re: Adslight 2.2 error after upgrade 2.5.8
  • 2019/8/20 1:09

  • Mamba

  • Moderator

  • Posts: 11377

  • Since: 2004/4/23


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



1939
Lupin
Re: Adslight 2.2 error after upgrade 2.5.8
  • 2019/8/19 13:15

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


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



1940
Mamba
Re: Latestnews : No categories in selection panel ...
  • 2019/8/13 23:59

  • Mamba

  • Moderator

  • Posts: 11377

  • Since: 2004/4/23


mastop-go and soapbox will not be maintained in the future.

The main focus is on Publisher, and that's what we recommend to use....
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs




TopTop
« 1 ... 191 192 193 (194) 195 196 197 ... 29425 »



Login

Who's Online

420 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 420


more...

Donat-O-Meter

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

Latest GitHub Commits