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

нужно сделать пару страниц с дизайном форума (ipb 3.4.6)

easy pages не работает (тупо открывает список форумов)

 

есть ли аналог простых страниц?

Можно:

 

создать файл имя_файла.php в корне сайта или в отдельной директории

<?php
define( 'IPB_THIS_SCRIPT', 'public' );
require_once( 'initdata.php' );
require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );
require_once( IPS_ROOT_PATH . 'sources/base/darkLAE.php' );
 
$content        = <<<BLK

Ваш контент 

BLK;
$registry = ipsRegistry::instance();
$registry->init();
$registry->output->setTitle('тайтл страницы');
$registry->output->addContent($content); 
$registry->output->sendOutput();
?>

при этом надо учитывать условный путь до initdata.php, например:

 

если файл в корне сайта, то
 require_once( 'initdata.php' );

 

если в папке, то
 require_once( '../initdata.php' );

 

Примечание:

Если размещаете файл в отдельной созданной директории (например сайт / папка / файл.php ), то обзовите его index.php. В папке должен обязательно присутствовать файл index, можно просто пустой index.html, для защиты директории от посторонних глаз. Или в .htaccess прописать Options -Indexes - запрет на просмотр содержимого каталогов сайта (если нет индексного файла)

 

Недостатки:

- Править и набирать содержание придется ручками в блокноте и каждый раз при этом лазить через фтп

- Будут отсутствовать боковые блоки

- Набирать тест придется с учетом тегов html, если хотите как-то оформить текст

Т.е. способ подходит для 1-2 совсем уж простеньких страниц

 

ПС:

Если не работает EasyPages есть еще приложение Pages (  _ipbmafia.ru/topic/810-dp34-pages-203/  )

 

ППС: может стоит задать вопрос в теме поддержки EasyPages и удастся решить проблему?

Edited by Viktar83

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.