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.

После обновления внутренние ссылки ведут на страницу 404

Featured Replies

Posted

Здравствуйте. Обновил форум с 3.4.7 до 4.0.11. Полет нормальный. Единственная проблема в ссылках на разные темы и сообщения форума, которые пользователи оставляли в своих сообщениях. Дело в том, что я несколько лет пользовался версией 3.1.2 в которой ссылки тем форума имели вид: .../forum/index.php?/topic/840/ и после обновления до версии 3.4.7 они перестали работать (открывалась страница 404). Оказалось, что у меня был нестандартный вид ссылок. На одном из форумов мне посоветовали изменить содержимое файла ../admin/applications/forums/extensions/furlTemplates.php на это:

<?php
/**
 * <pre>
 * Invision Power Services
 * IP.Board v3.4.5
 * Sets up SEO templates
 * Last Updated: $Date: 2012-07-31 09:39:50 -0400 (Tue, 31 Jul 2012) $
 * </pre>
 *
 * @author 		$Author: mmecham $
 * @copyright	(c) 2001 - 2009 Invision Power Services, Inc.
 * @license		http://www.invisionpower.com/company/standards.php#license
 * @package		IP.Board
 * @subpackage	Forums
 * @link		http://www.invisionpower.com
 * @since		20th February 2002
 * @version		$Rev: 11159 $
 *
 */

if ( ! defined( 'IN_IPB' ) )
{
	print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
	exit();
}

/**
 * SEO templates
 *
 * 'allowRedirect' is a flag to tell IP.Board whether to check the incoming link and if not formatted correctly, redirect the correct one
 *
 * OUT FORMAT REGEX:
 * First array element is a regex to run to see if we've a match for the URL
 * The second array element is the template to use the results of the parenthesis capture
 *
 * Special variable #{__title__} is replaced with the $title data passed to output->formatUrl( $url, $title)
 *
 * IMPORTANT: Remember that when these regex are used, the output has not been fully parsed so you will get:
 * showuser={$data['member_id']} NOT showuser=1 so do not try and match numerics only!
 *
 * IN FORMAT REGEX
 *
 * This allows the registry to piece back together a URL based on the template regex
 * So, for example: "/user/(\d+?)/", 'matches' => array(  array( 'showuser' => '$1' ) )tells IP.Board to populate 'showuser' with the result
 * of the parenthesis capture #1
 */
$_SEOTEMPLATES = array(
	
	'showannouncement'     => array( 'app'		     => 'forums',
									 'allowRedirect' => 1,
									 'out'           => array( '#showannouncement=(.+?)((?:&|&amp;)f=(.+?))?(&|$)#i', 'forum-$3/announcement-$1/$4' ),
							  		 'in'            => array( 'regex'   => '#/forum-(\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/$2' ),
							  'in'            => array( 'regex'   => '#^/forum/(\d+?)(?:-|/|$)#i',
													    'matches' => array( array( 'showforum', '$1' ) ) ) ),


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

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

это помогло и все ссылки оставленные в сообщениях в версии 3.4.7 заработали и стали правильно переходить.

Теперь я обновил форум до последней версии 4.0.11 и также изменил содержимое файла ../admin/applications/forums/extensions/furlTemplates.php но чуда на этот раз не произошло. Помогите решить проблему.

З.Ы. все обновления я делал на копии форума по ссылке 313news.net/forum2 , а оригинал все еще работает на версии 3.1.2 и доступен по ссылке 313news.net/forum

Для наглядности вот ссылка на одну из тем 313news.net/forum2/topic/5461-siələrə-suallar-ii-hissə/ в первом посте которого есть ссылка на другую тему форума, при клике на которую происходит переход на стр.404

Предупреждение! Ссылки на новом/обновленном форуме старые и ведут на страницы оригинального форума. В этих ссылках нужно изменять название папки /forum на /forum2 .
тоесть ссылка в первом посте этой темы будет такого вида: 313news.net/forum2/index.php?/topic/70/

Тут есть уже такая тема, зачем 10 раз создавать, могли бы там опубликовать 

http://ipbmafia.ru/topic/11964-perenos-s-hostinga-na-vps/

попробуйте выполнить запрос в phpmyadmin 

UPDATE core_members SET members_seo_name='';
UPDATE forums_forums SET name_seo='', seo_last_title='', seo_last_name='';
UPDATE forums_topics SET title_seo='';

 

  • Author

Тут есть уже такая тема, зачем 10 раз создавать, могли бы там опубликовать 

http://ipbmafia.ru/topic/11964-perenos-s-hostinga-na-vps/

попробуйте выполнить запрос в phpmyadmin 

UPDATE core_members SET members_seo_name='';
UPDATE forums_forums SET name_seo='', seo_last_title='', seo_last_name='';
UPDATE forums_topics SET title_seo='';

 

Извините не знал что такая тема есть.

Сделал запросы. Не помогло.

 

Для наглядности вот ссылка на одну из тем 313news.net/forum2/topic/5461-siələrə-suallar-ii-hissə/ в первом посте которого есть ссылка на другую тему форума, при клике на которую происходит переход на стр.404

 

Нет ни какой ошибки с 404 попробуйте поставить плагин  

http://ipbmafia.ru/topic/10597-ru4-urls-transliteration/

А вот ваша странца

1.png

  • Author

Нет ни какой ошибки с 404 попробуйте поставить плагин  

http://ipbmafia.ru/topic/10597-ru4-urls-transliteration/

А вот ваша странца

1.png

как нет ошибки 404?

Вам нужно было перейти по ссылке в первом сообщении. Там вот эта ссылка 313news.net/forum2/index.php?/topic/70/ при переходе на которую открывается страница 404.

 

  • Author

Да теперь вижу! Поставьте плагин, и выполните опять запрос в бд, потом скажете

Поставил и сделал запросы. Кириллица в ссылках изменилась на латиницу, но проблемы 404 осталась.

АЦ - Система - Продвижение - Поисковая оптимизация. Установите все галочки, загрузите предлагаемый файл на сервер и сохраните.

P.S. Хватит просить о помощи в ЛС, достали

  • Author

АЦ - Система - Продвижение - Поисковая оптимизация. Установите все галочки, загрузите предлагаемый файл на сервер и сохраните.

Не помогло. Галочки все были. Загрузил файл и взял оттуда одну строку (остальные были).

заменил эту

RewriteRule \.(jpeg|jpg|gif|png)$ /forum2/public/404.php [NC,L]

на эту (из файла)

RewriteRule \.(js|css|jpeg|jpg|gif|png|ico)(\?|$) - [L,NC,R=404]

_________________________________

На 3.4.7 все так легко получилось, а в этой версии никак не хочет работать.

Вид ссылок уже никак нельзя вернуть к первоначальному (оригинальному) виду, чтобы в будущем при обновлениях не было проблем?

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.