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

Скачал этот релиз http://ipbmafia.ru/files/file/1265-invision-power-board-346-rusificirovannyy-vypusk-nulled-ipbmafiaru/, а в нём уже вшита транслитерация uri, которая мне не нужна, т.к. домен кириллический. Хотелось бы сделать все uri максимально кириллическими. Попробовал удалить транслит-функции из core.php, но форум начал выдавать 500. Где и что чистить и, возможно, добавить, чтобы добиться максимальной русскоязычности?

  • Author

Спасибо! Внимательно по файлику всё удалил и получилось! Теперь на русском!

Остались такие хвосты в адресе: index.php?/topic/

Есть способ убрать index.php?, а topic перевести в "тема"?

Как убрать  index.php? нашёл. Осталось только перевести topic и forum в адресе

benix, попробуй сделать по инструкции, но добавляй следующие коды:

Код для base/core.php:

static public function transliterate( $text )
{
return str_replace( array('а','б','в','г','д','е','є','ё','ж','з','и','і','ї','й','к','л','м','н','о','п','р','с','т','у','ф','х','ц','ч','ш','щ','э','ю','я','ы','ь','ъ'), array('a','b','v','g','d','e','ye','e','zh','z','i','i','yi','i','k','l','m','n','o','p','r','s','t','u','f','h','c','ch','sh','sh','a','ju','ja','i','',''), $text);
}

static public function makeSeoTransliterate( $text )
{
$text = urldecode($text);
$text = self::transliterate( $text );
$text = preg_replace('#[^a-z0-9-]#', '', $text);
$text = urlencode($text);
return $text;
}
$text = self::makeSeoTransliterate( $text );

Для output\publicOutput.php:

$seoTitle = IPSText::makeSeoTransliterate( $seoTitle );

 

@Jackky, копай файл applications/forums/extentions/furlTemplates.php

После нужно перестроить furl кэши

  • Author

Нашёл вручную Система > Инструменты  >  Управление кешем. Сейчас пробую

Нет, не получилось. После перестройки furl кеша. Кроме главной никакие форумы и темы не открываются.

Вот код с моими изменениями:

$_SEOTEMPLATES = array(

	'showannouncement'     => array( 'app'		     => 'forums',
									 'allowRedirect' => 1,
									 'out'           => array( '#showannouncement=(.+?)((?:&|&)f=(.+?))?(&|$)#i', 'forum-$3/announcement-$1-#{__title__}/$4' ),
							  		 'in'            => array( 'regex'   => '#/форум-(\d+?)?/announcement-(\d+?)(?:-|/|$)#i',
													 		   'matches' => array( array( 'showannouncement', '$2' ), array( 'f', '$1' ) ) ) ),

	'showforum'     => array( 'app'		      => 'forums',
							  'allowRedirect' => 1,
							  'isPagesMode'   => 1,
							  'out'           => array( '#showforum=(.+?)(&|$)#i', 'forum/$1-#{__title__}/$2' ),
							  'in'            => array( 'regex'   => '#^/форум/(\d+?)(?:-|/|$)#i',
													    'matches' => array( array( 'showforum', '$1' ) ) ) ),


	'showtopic'     => array( 'app'		      => 'forums',
							  'allowRedirect' => 1,
							  'isPagesMode'   => 1,
							  'out'           => array( '#showtopic=(.+?)(\#|&|$)#i', 'topic/$1-#{__title__}/$2' ),
							  'in'            => array( 'regex'   => '#^/тема/(\d+?)(?:-|/|$)#i',
												        'matches' => array( array( 'showtopic', '$1' ) ) ) ),

	'acteqst'       => array( 'app'		      => 'forums',
							  'allowRedirect' => 1,
							  'out'           => array( '#act=ST(.*?)&t=(.+?)(&|$)#i', 'topic/$2-#{__title__}/$3' ),
							  'in'            => array( 'regex'   => '#^notavalidrequest$#i',
												        'matches' => array( array( 'showtopic', '0' ) ) ) ),

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

 

13 часов назад, Respected сказал:

benix, попробуй сделать по инструкции, но добавляй следующие коды

Спасибо, попробую! А то перепробовал все вышеперечисленные способы, не заработало.

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.