Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Включил XML-RPC в настройках, создал нового пользователя API с правами на helloBoard. Создал в корне форума файл info.php с таким содержимым (myboard.com заменено на адрес форума, myapikey на API ключ):

<?php

define( 'IPS_XML_RPC_DEBUG_ON'  , 0 );
define( 'IPS_XML_RPC_DEBUG_FILE', '' );

require_once( "ips_kernel/classXmlRpc.php" );

$classXmlRpc	= new classXmlRpc();

print_r($classXmlRpc->sendXmlRpc( "__myboard.com/interface/board/index.php", "helloBoard", array( 'api_module' => 'ipb', 'api_key' => 'myapikey' ) ) );
exit;

Добавил в conf_global.php следующие строчки:

define( 'IPS_XML_RPC_DEBUG_ON'  , 0 );
define( 'IPS_XML_RPC_DEBUG_FILE', str_replace( "", "/", dirname( __FILE__ ) ) ."/" . 'cache/xmlrpc_debug_ipboard.cgi' );

Но при вызове myboard.com/info.php ответ совершенно не такой, как написано в документации:

Array
(
    
 => Array
        (
            [head] => Array
                (
                    [meta attr] => Array
                        (
                            [http-equiv] => content-type
                            [content] => text/html;charset=windows-1251
                        )

                    [meta] => 
                    [title] => Array
                        (
                        )

                )

        )

)

Тестировал также на проверку лицензионных ключей. Ответ такой же.

 

В чём может быть проблема?

 

Доки:

__www.invisionpower.com/support/guides/_/advanced-and-developers/api-methods/kernel-xml-rpc-classxmlrpcphp-r160
https://www.invisionpower.com/support/guides/_/advanced-and-developers/ipnexus/how-to-interact-with-license-keys-r97
  • Author

Проблему решил. Т.к это тестовый форум я его закрыл от посторонних, указав в .htaccess

Order Deny,Allow 
Deny from all
Allow from 178.120.128.16

Удалил эти строчки и всё стало нормально

Guest
This topic is now closed to further replies.

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.