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

Привет всем.

Раньше, на версии 3.3.4, использовал такую настройку - USE_ONLY_ID_FURL, соответственно ссылки были вида http://сайт/forum/forum/5

Сейчас я обновился на 3.4.8, и ссылки теперь - http://сайт/forum/forum/5-название-темы

Как в 3.4 сделать только id? Очень нужно, я потерял гиганскую часть посетителей, а автоматом он не редиректит(((

applications/forums/data/furl.json

 "forums_forum": {
		    "friendly": "forum/{#id}-{?}",
		    "real": "app=forums&module=forums&controller=forums",
		    "verify": "\\IPS\\forums\\Forum"
	    },
	    "forums_topic": {
		    "friendly": "topic/{#id}-{?}",
		    "real": "app=forums&module=forums&controller=topic",
		    "verify": "\\IPS\\forums\\Topic"
	    },

Заменить на:

 "forums_forum": {
		    "friendly": "forum/{#id}",
		    "real": "app=forums&module=forums&controller=forums",
		    "verify": "\\IPS\\forums\\Forum"
	    },
	    "forums_topic": {
		    "friendly": "topic/{#id}",
		    "real": "app=forums&module=forums&controller=topic",
		    "verify": "\\IPS\\forums\\Topic"
	    },

Перестроить кеш чпу:

  • Author

applications/forums/data/furl.json

у меня такой папки в корне нет, есть в admin, но там уже по пути нет папки data

заменить файлы, перестроить кеш,

в настройках SEO

ENvKdpM.png

 

пруфит

3.4.8 furl_id.rar

этот метод не пробовал еще.

а я сделал - '#/topic/(\d+)/?#i' (взял из старой версии своего движка)

пока методом сделал так, только в папке forum ссылки превел к виду

в этом архиве - '#^/topic/(\d+?)(?:-|/|$)#i'

  • Author

попробовал архив, тоже все работает, причем именно везде стали названия только с ID.

в моем же способе - на форуме ссылки были с тестом, но и по ссылке только с ID нормально открывались.

Как лучше - не знаю, оставил по привычке Ваш способ с только ID, чтоб не плодить варианты.

Всем спасибо.

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.