JESUS
Новичок
Откуда: Минск Всего сообщений: 249 Рейтинг пользователя: 0 Дата регистрации на форуме: 10 сен. 2003
|
Профиль | Сообщить модератору | ИгнорироватьNEW! Сообщение отправлено: 22 декабря 2003 14:59
Есть при просмотре форума такая фигня: если ты написал только что сообщение и переходишь после этого в форум, видишь тему в которую только что запостил, помеченной, как непрочитанной... По-моему, это не есть гут... (то же перешло и в закладки).... Чтобы исправить этот маленький, но неудобный недочет, нужно сделать следующее: в файлах forums.cgi и bookmark.cgi код:
<br># Forum Post markers<p>if (!$forumlastvisit) { $forumlastvisit = "0"; }<br>$topicicon = "<img src=\"$imagesurl\/images\/topicnonew.gif\" border=\"0\">";<br>if ($inmembername ne "Guest") {<br>if ($threadposts > $hottopicmark-1) { $hotthread = 1; } else { undef $hotthread; }<br>if (($hotthread) && ($threadstate ne "closed") && ($forumlastvisit < $lastpostdate)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/topichot.gif\" border=\"0\">";<br>}<br>if (($hotthread) && ($threadstate ne "closed") && ($forumlastvisit > $lastpostdate)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/topichotnonew.gif\" border=\"0\">";<br>}<br>if ((!$hotthread) && ($threadstate ne "closed") && ($forumlastvisit < $lastpostdate)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/topicnew.gif\" border=\"0\">";<br>}<br>if ((!$hotthread) && ($threadstate ne "closed") && ($forumlastvisit > $lastpostdate)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/topicnonew.gif\" border=\"0\">";<br>}<br>if (($sticky eq "yes") && ($threadstate ne "closed") && ($forumlastvisit < $lastpostdate)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/stickyopen.gif\" border=\"0\">";<br>}<br>if (($sticky eq "yes") && ($threadstate ne "closed") && ($forumlastvisit > $lastpostdate)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/stickynonew.gif\" border=\"0\">";<br>} <br>if ($threadstate eq "closed") {<br>$topicicon = "<img src=\"$imagesurl\/images\/topiclocked.gif\" border=\"0\">";<br>}<br>if (($sticky eq "yes") && ($threadstate eq "closed")) {<br>$topicicon = "<img src=\"$imagesurl\/images\/stickylocked.gif\" border=\"0\">";<br>}<br>if (($sticky eq "yes") && ($hotthread) && ($forumlastvisit < $lastpostdate) && ($threadstate ne "closed")) {<br>$topicicon = "<img src=\"$imagesurl\/images\/stickyhot.gif\" border=\"0\">";<br>}<br>if (($sticky eq "yes") && ($hotthread) && ($forumlastvisit > $lastpostdate) && ($threadstate ne "closed")) {<br>$topicicon = "<img src=\"$imagesurl\/images\/stickyhotnonew.gif\" border=\"0\">";<br>}<br>}<br> заменить на код:
<br># Forum Post markers (fixed)<p>if (!$forumlastvisit) { $forumlastvisit = "0"; }<br>$topicicon = "<img src=\"$imagesurl\/images\/topicnonew.gif\" border=\"0\">";<br>if ($inmembername ne "Guest") {<br>if ($threadposts > $hottopicmark-1) { $hotthread = 1; } else { undef $hotthread; }<br>if (($hotthread) && ($threadstate ne "closed") && ($forumlastvisit < $lastpostdate) && ($inmembername ne $lastposter)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/topichot.gif\" border=\"0\">";<br>}<br>if (($hotthread) && ($threadstate ne "closed") && ($forumlastvisit > $lastpostdate)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/topichotnonew.gif\" border=\"0\">";<br>}<br>if ((!$hotthread) && ($threadstate ne "closed") && ($forumlastvisit < $lastpostdate) && ($inmembername ne $lastposter)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/topicnew.gif\" border=\"0\">";<br>}<br>if ((!$hotthread) && ($threadstate ne "closed") && ($forumlastvisit > $lastpostdate)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/topicnonew.gif\" border=\"0\">";<br>}<br>if (($sticky eq "yes") && ($threadstate ne "closed") && ($forumlastvisit < $lastpostdate) && ($inmembername ne $lastposter)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/stickyopen.gif\" border=\"0\">";<br>}<br>if (($sticky eq "yes") && ($threadstate ne "closed") && ($forumlastvisit > $lastpostdate)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/stickynonew.gif\" border=\"0\">";<br>} <br>if ($threadstate eq "closed") {<br>$topicicon = "<img src=\"$imagesurl\/images\/topiclocked.gif\" border=\"0\">";<br>}<br>if (($sticky eq "yes") && ($threadstate eq "closed")) {<br>$topicicon = "<img src=\"$imagesurl\/images\/stickylocked.gif\" border=\"0\">";<br>}<br>if (($sticky eq "yes") && ($hotthread) && ($forumlastvisit < $lastpostdate) && ($threadstate ne "closed") && ($inmembername ne $lastposter)) {<br>$topicicon = "<img src=\"$imagesurl\/images\/stickyhot.gif\" border=\"0\">";<br>}<br>if (($sticky eq "yes") && ($hotthread) && ($forumlastvisit > $lastpostdate) && ($threadstate ne "closed")) {<br>$topicicon = "<img src=\"$imagesurl\/images\/stickyhotnonew.gif\" border=\"0\">";<br>}<br>}<br> все.... теперь свой пост не в счет ;)
|