Jump to content
Дизайн и модификация Invision Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...

desti Блог

Sign in to follow this  
  • entries
    4
  • comments
    12
  • views
    21,897

Избавляемся от древовидного отображения форума

Sign in to follow this  
desti

390 views

На мой взгляд - совершенно бесполезная фича. Отображение попадает в поисковые системы, если человек придет на форум по такой ссылке, режим запоминается в куках, начинаются вопросы "А как вернуть всё взад??"

 

Избавление:

 

Файл sources/action_public/topics.php - даже по ссылке с threaded отображение всегда будет linear и не будет попадать в куки.

 

Найти:

	
//-----------------------------------------
// Process the topic
//-----------------------------------------

	$this->topic_set_up();

 

Вставить после:

	if($this->ipsclass->input['mode'] = 'threaded') {
	$this->ipsclass->input['mode'] = 'linear';
}

 

В скинах:

 

Topic_view -> topic_page_top

 

Удалить:

	 			 img_item + " {$data['TOPIC']['to_button_threaded']}",

 

Удаление строки меню в опциях. Поисковики больше не будут бродить по древовидной структуре.

Sign in to follow this  


2 Comments


Recommended Comments

В роботс txt добавить запреты

Disallow: /*mode=linear 
Disallow: /*mode=threaded 
Disallow: /*mode=linearplus

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

Share this comment


Link to comment

Это тоже метод, но мне больше нравится поломать код :)

 

А поисковики.. У меня стоит ловушка для ботов, куда попадают все роботы, не умеющие читать robots.txt. Их уже словилось штук 60 и они пополнили htaccess.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...