Version 4.3.6

This commit is contained in:
Neo committed 2025-12-19 05:49:12 -08:00
1 parent fe1acf984a
commit 1a0c7fd3c2
609 files changed
+14707 -5726

No files matched your search

@@ -26,7 +26,28 @@ class _profilecompletion extends \IPS\Node\Controller
* Node Class
*/
protected $nodeClass = '\IPS\Member\ProfileStep';
/**
* Get Root Buttons
*
* @return array
*/
public function _getRootButtons()
{
$return = parent::_getRootButtons();
if ( isset( \IPS\Output::i()->sidebar['actions']['add'] ) )
{
$class = new \IPS\Member\ProfileStep;
if ( ! $class->canAdd() )
{
unset( \IPS\Output::i()->sidebar['actions']['add'] );
}
}
return $return;
}
/**
* Execute
*
@@ -45,7 +66,8 @@ class _profilecompletion extends \IPS\Node\Controller
*/
public function manage()
{
\IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'members' )->profileCompleteBlurb();
$class = new \IPS\Member\ProfileStep;
\IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'members' )->profileCompleteBlurb( $class->canAdd() );
parent::manage();
}
@@ -35,7 +35,7 @@ class _profiles extends \IPS\Dispatcher\Controller
$tabs = array();
/* Add a tab for fields and completion */
if ( \IPS\Member::loggedIn()->hasAcpRestriction( 'core', 'membersettings', 'profilesfields_manage' ) )
if ( \IPS\Member::loggedIn()->hasAcpRestriction( 'core', 'membersettings', 'profilefields_manage' ) )
{
$tabs['profilefields'] = 'profile_fields';
$tabs['profilecompletion'] = 'profile_completion';
@@ -0,0 +1,39 @@
<?php
/**
* @brief spam
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
* @copyright (c) Invision Power Services, Inc.
* @license https://www.invisioncommunity.com/legal/standards/
* @package Invision Community
* @since 18 Apr 2018
*/
namespace IPS\core\modules\admin\membersettings;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* spam
* @deprecated
*/
class _spam extends \IPS\Dispatcher\Controller
{
/**
* Execute
*
* @return void
*/
public function execute()
{
\IPS\Output::i()->redirect(\IPS\Http\Url::internal( 'app=core&module=moderation&controller=spam&tab=' . \IPS\Request::i()->tab ) );
}
// Create new methods with the same name as the 'do' parameter which should execute it
}