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

непрочитаные прочитаные сообщения?

Recommended Posts

непрочитанное прочитаное сообщение - когда на главной показывается что непрочитаные сообщения, хотя на самом деле они прочитанные.

 

 

unreade read post is know bug of IPB 2.3.x.

 

There is an article in the KB of IPS Customer Area to fix it.

 

кто то может скачать и выложить fix?

Edited by newbigmir

Share this post


Link to post

А зачем вам это надо, если у вас IP.Board 1.x?

Share this post


Link to post

2.3.1 а в профиле по умолчанию 1,3 пишется

 

Сейчас посмотрю...

 

sources/classes/class_session.php

найти

$this->ipsclass->vars['session_expiration'] = $this->ipsclass->vars['session_expiration'] ? (time() - $this->ipsclass->vars['session_expiration']) : (time() - 3600);

заменить

//$this->ipsclass->vars['session_expiration'] = $this->ipsclass->vars['session_expiration'] ? (time() - $this->ipsclass->vars['session_expiration']) : (time() - 3600);

sources/action_public/search.php

найти

$topic = $this->forums->parse_data( $topic, 0 );

заменить

$topic = $this->forums->parse_data( $topic, 1 );

sources/action_public/forums.php

найти

		if( $this->ipsclass->forum_read[ $topic['forum_id'] ] > $last_time ) 
	{ 
		 $last_time = $this->ipsclass->forum_read[ $topic['forum_id'] ]; 

	}

добавить после

		if( $this->ipsclass->member['members_markers']['board'] > $last_time ) 
	{ 
		 $last_time = $this->ipsclass->member['members_markers']['board']; 
	}

найти

$save_array['marker_unread']		 = intval($count['cnt']);

добавить после

$save_array['marker_last_cleared']	= $this->db_row['marker_last_cleared'];

sources/action_public/topics.php

найти

$save_array['marker_unread']		 = $this->db_row['marker_unread'] - 1;

добавить после

$save_array['marker_last_cleared']	= $this->db_row['marker_last_cleared']; 

$read_topics_tid[]							 = $this->topic['tid'];

найти

				if ( $this->ipsclass->vars['db_topic_read_cutoff'] and $this->ipsclass->member['id'] ) 
			{ 
				 $last_time = (isset($this->my_topics_read[ $this->topic['tid'] ]) AND intval( $this->my_topics_read[ $this->topic['tid'] ] )) ? intval( $this->my_topics_read[ $this->topic['tid'] ] ) : ( (isset($this->db_row['marker_last_cleared']) AND intval( $this->db_row['marker_last_cleared'] )) ? intval( $this->db_row['marker_last_cleared'] ) : 0); 
			}

заметь на

				if ( $this->ipsclass->vars['db_topic_read_cutoff'] and $this->ipsclass->member['id'] ) 
			{ 
				 $last_time = (isset($this->my_topics_read[ $this->topic['tid'] ]) AND intval( $this->my_topics_read[ $this->topic['tid'] ] )) ? intval( $this->my_topics_read[ $this->topic['tid'] ] ) : 
					 ( (isset($this->db_row['marker_last_cleared']) AND intval($this->db_row['marker_last_cleared']) ) ? intval( $this->db_row['marker_last_cleared'] ) : 
						 ( (isset( $this->ipsclass->member['members_markers']['board']) AND intval($this->ipsclass->member['members_markers']['board']) ) ? intval($this->ipsclass->member['members_markers']['board']) : 0 ) ); 
			 }

 

сделал все что написано в инструкции.

все равно некоторые разделы отмечаются как непрочитанные несмотря на то что они прочитаны.(то есть непрочитаными отмечены не все разделы.)

удалил куки и перезашел на форум. все равно этот глюк.

также не находятся новые сообщения.

 

what to do?

Share this post


Link to post

при проверке бд:

Problems with indexes of table `ibf_cal_events`

Warning More than one INDEX key was created for column `event_calendar_id`

Problems with indexes of table `ibf_dnames_change`

Warning More than one INDEX key was created for column `dname_member_id`

Problems with indexes of table `ibf_profile_friends`

Warning More than one INDEX key was created for column `friends_member_id`

Problems with indexes of table `ibf_topics`

Warning More than one INDEX key was created for column `forum_id`

 

в этом может быть причина?

Share this post


Link to post

иногда темы не отмечаются прочитанными... Просто прочитанность достигается с помощью кукисов и бд... И иногда не сохраняется. Потестируйте немного, а потом если что напишите...

 

А насчет бд... Это нормально.

Share this post


Link to post
иногда темы не отмечаются прочитанными... Просто прочитанность достигается с помощью кукисов и бд... И иногда не сохраняется. Потестируйте немного, а потом если что напишите...

 

А насчет бд... Это нормально.

 

я могу специально кликнуть что б все темы на форуме стали прочитанными и все равно эти несколько тем останутся непрочитанными.

причины могут быть две:

1. в пятницу был переезд с хостинга на котором были php4 и бныйд 4, на хостинг с php5 и mysql5

2. Вчера была смена времени на GMT-1, у меня все вчерашние темы запощеные 27.10.07 имеют дату 28.10.07

 

посмотрим что будет завтра 29.10.07

Share this post


Link to post

Столкнулся с такой же проблемкой – горят как не прочитанные отмечаешь как прочитанные – перезагружаешь страницу опять загораются как не прочитанные.

Share this post


Link to post

не yжели никто не знает :)

Share this post


Link to post

неа...

Share this post


Link to post
Столкнулся с такой же проблемкой – горят как не прочитанные отмечаешь как прочитанные – перезагружаешь страницу опять загораются как не прочитанные.

Ошибка в яваскриптах или настройках форума. Без ссылки на него обсуждать это не результативно, потому никто и не отвечает.

Share this post


Link to post
Ошибка в яваскриптах или настройках форума. Без ссылки на него обсуждать это не результативно, потому никто и не отвечает.

вот ссылка

http://www.forumpro.mobi

Edited by Vlast

Share this post


Link to post
вот ссылка

http://www.forumpro.mobi

Нужно как минимум настроить куки. Читайте пост.

 

Если это не поможет, можно посмотреть настройку хранения данных о прочитанных сообщениях в группе "Оптимизация нагрузки на форум".

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...