Jump to content

(MDMX) Forums moderators


Recommended Posts

Такое пора бы и самому научится делать, надо добавить волшебную строку первой после названия класса и { во всех файлах modules/admin/manage/*.php

типа 

class _manage extends \IPS\Node\Controller
{
public static $csrfProtected = TRUE;

Ну и я бы добавил строчку в функции form() в manage.php последней в блок

if ( $values = $form->values() ) {
	...
	...
	\IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=forumsmoderators&module=manage&controller=manage', 'admin' ), 'saved' );
}

 

Link to comment
Share on other sites

1 час назад, Desti сказал:

Такое пора бы и самому научится делать, надо добавить волшебную строку первой после названия класса и { во всех файлах modules/admin/manage/*.php

типа 

class _manage extends \IPS\Node\Controller
{
public static $csrfProtected = TRUE;

Ну и я бы добавил строчку в функции form() в manage.php последней в блок

if ( $values = $form->values() ) {
	...
	...
	\IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=forumsmoderators&module=manage&controller=manage', 'admin' ), 'saved' );
}

 

Если бы умел не делал данную тему )

Link to comment
Share on other sites

1 час назад, Desti сказал:

Спасибо за помощь но я уже сам исправил по ответу выше )

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...