Version 4.1.19
This commit is contained in:
1 parent
28bd025b35
commit
2bd5025018
2674 files changed
+233518
-77766
No files matched your search
@@ -2,9 +2,9 @@
|
||||
/**
|
||||
* @brief Members Widget
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Social Suite
|
||||
* @package IPS Community Suite
|
||||
* @since 10 July 2015
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
@@ -63,6 +63,8 @@ class _members extends \IPS\Widget\StaticCache
|
||||
NULL,
|
||||
'widget_member_groups'
|
||||
) );
|
||||
|
||||
$form->add( new \IPS\Helpers\Form\Checkbox( 'widget_member_secondary_groups', isset( $this->configuration['widget_member_secondary_groups'] ) ? $this->configuration['widget_member_secondary_groups'] : FALSE, FALSE ) );
|
||||
|
||||
$form->add( new \IPS\Helpers\Form\Number( 'widget_member_posts', isset( $this->configuration['widget_member_posts'] ) ? $this->configuration['widget_member_posts'] : 0, FALSE ) );
|
||||
$form->add( new \IPS\Helpers\Form\Number( 'widget_member_rep' , isset( $this->configuration['widget_member_rep'] ) ? $this->configuration['widget_member_rep'] : 0, FALSE ) );
|
||||
@@ -124,7 +126,14 @@ class _members extends \IPS\Widget\StaticCache
|
||||
|
||||
if ( ! empty( $this->configuration['widget_member_groups'] ) AND $this->configuration['widget_member_groups'] !== '*' )
|
||||
{
|
||||
$where[] = array( \IPS\Db::i()->in( 'member_group_id', $this->configuration['widget_member_groups'] ) );
|
||||
$groupWhere = \IPS\Db::i()->in( 'member_group_id', $this->configuration['widget_member_groups'] );
|
||||
|
||||
if ( ! empty( $this->configuration['widget_member_secondary_groups'] ) )
|
||||
{
|
||||
$groupWhere .= ' OR ' . \IPS\Db::i()->findInSet( 'mgroup_others', $this->configuration['widget_member_groups'] );
|
||||
}
|
||||
|
||||
$where[] = array( '(' . $groupWhere . ')' );
|
||||
}
|
||||
|
||||
if ( ! empty( $this->configuration['widget_member_posts'] ) )
|
||||
@@ -148,7 +157,7 @@ class _members extends \IPS\Widget\StaticCache
|
||||
$mon = $time->format('n');
|
||||
$mday = $time->format('j');
|
||||
$year = $time->format('Y');
|
||||
$where[] = array( 'bday_month=?', $time->mon );
|
||||
$where[] = array( 'bday_month=?', $mon );
|
||||
|
||||
if ( $mon == 2 AND $mday == 28 AND ! ( gmdate( 'L', $year ) ) )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user