Просмотр поста

.
REALball
ПФК ЦСКА forever!

Ладно, появилось пара минут...
Короч архив распаковываем в users/includes/profile
Затем идём в PhpMyAdmin и добавляем в таблицу с юзерами 2 поля: comm_old_s и comm_count_s
(для тех кто с этим не дружит, пешу запрос: ALTER TABLE `users` ADD `comm_old_s` INT( 10 ) NOT NULL ,
ADD `comm_count_s` INT( 10 ) NOT NULL
(может и не правильный, я не очень то уделял внимание этому)
Потом опять в бд создаём новую таблицу:

CREATE TABLE `users_status` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sub_id` int(10) unsigned NOT NULL,
  `time` int(11) NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `text` text NOT NULL,
  `reply` text NOT NULL,
  `attributes` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sub_id` (`sub_id`),
  KEY `user_id` (`user_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
этим кодом
Идём в шапку и ищем последние строки, находим это:
if ($datauser['comm_count'] > $datauser['comm_old']) $list[] = '<a href="' . $set['homeurl'] . '/users/profile.php?act=guestbook&amp;user=' . $user_id . '">' . $lng['guestbook'] . '</a> (' . ($datauser['comm_count'] - $datauser['comm_old']) . ')';

после этого вставляем:
if ($datauser['comm_count_s'] > $datauser['comm_old_s']) $list[] = '<a href="' . $set['homeurl'] . '/users/profile.php?act=status&amp;user=' . $user_id . '">Новые комментарии</a> (' . ($datauser['comm_count_s'] - $datauser['comm_old_s']) . ')';

Ну и наконец идём в users/profile.php
и ищем там такую штуку:
/*
-----------------------------------------------------------------
Переключаем режимы работы
-----------------------------------------------------------------
*/
$array = array (
    'activity' => 'includes/profile',
    'ban' => 'includes/profile',
    'edit' => 'includes/profile',
    'images' => 'includes/profile',
    'info' => 'includes/profile',
    'ip' => 'includes/profile',
    'guestbook' => 'includes/profile',
    'karma' => 'includes/profile',
    'office' => 'includes/profile',
    'password' => 'includes/profile',
    'reset' => 'includes/profile',
    'settings' => 'includes/profile',
    'stat' => 'includes/profile'
);

Заменяем на:
/*
-----------------------------------------------------------------
Переключаем режимы работы
-----------------------------------------------------------------
*/
$array = array (
    'activity' => 'includes/profile',
    'ban' => 'includes/profile',
    'edit' => 'includes/profile',
    'images' => 'includes/profile',
    'info' => 'includes/profile',
    'ip' => 'includes/profile',
    'guestbook' => 'includes/profile',
    'karma' => 'includes/profile',
    'office' => 'includes/profile',
    'password' => 'includes/profile',
    'reset' => 'includes/profile',
    'settings' => 'includes/profile',
    'stat' => 'includes/profile',
    'status' => 'includes/profile'
);

после чего остаётся добавить в нужном месте ссылку....


Установка длинная, но мне было лень писать инсталятор для таблиц.
А шапка и профиль у каждого почти переделаны.

Вроде должно пахать, ещё не проверял...
Прикрепленные файлы: