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.

IPB 3.4 как в globalTemplate подключить php файл?

Featured Replies

Posted

Хочу подключить меню сайта к форуму ,подключаю способом <?php include("nav.php"); ?> , но нечего не отображается,помогите

nav.php  находится в /public_html ,а скрипт ipb в /public_html/forum 

admin/applications/forums/extensions открываем файл "furlTemplates.php" ищем:

'act=idx'       => array( 'app'		      => 'forums',							  'allowRedirect' => 0,							  'out'           => array( '#act=idx(&|$)#i', 'index$1' ),							  'in'            => array( 'regex'   => '#^/index(/|$|\?)#i',												        'matches' => array( array( 'act', 'idx' ) ) ) ),);	 

меняем на это

'act=idx'       => array( 'app'		      => 'forums',							  'allowRedirect' => 0,							  'out'           => array( '#act=idx(&|$)#i', 'forum$1' ),							  'in'            => array( 'regex'   => '#^/forum(/|$|\?)#i',												        'matches' => array( array( 'act', 'idx' ) ) ) ),);

После всего этого обновляем furl кеш в админке форума Система>Инструменты>Управление кешем>Обновить furl кеш.

В 21.3.2016 в 23:14, usergeuv1 сказал:

После нажатия  Обновить furl кеш.

Parse error: syntax error, unexpected ')' in forum/admin/applications/forums/extensions/furlTemplates.php on line 77

и у меня 

Есть как то по другому это сделать?

подключить php файл

 

 

 

 

Цитата

<?php include("nav.php"); ?>

 

В шаблоне IPB 3.x логика raw-php работать не будет. Используйте теги "<php>", "</php>".


 

Цитата

Есть как то по другому это сделать?

 

Если скрипт лежит в корневой папке IP.Board:

{parse include="file.php"}


 

  • Author
7 часов назад, Dmitriy427 сказал:

 

 

 

 

В шаблоне IPB 3.x логика raw-php работать не будет. Используйте теги "<php>", "</php>".


 

Если скрипт лежит в корневой папке IP.Board:


{parse include="file.php"}


 

Красавчик,спаибо тебе:D

Тему можно закрыть 

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
Ответить в этой теме...

Последние посетители 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.