• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Admin

Well-Known Member
Staff member
Administrator
// module: thông báo forum
// việt hóa: rlucifer
// mô tả: gửi thông báo cho thành viên mỗi lần có 1 bài viết được trả lời
Unzip file ta sẽ được 1 gói file bao gồm journal.php, profile.php, office.php, journal.sql

~~> hướng dẫn cài đặt <~~
di chuyển các file trên vào đúng mục
user/journal.php
user/profile.php
user/includes/profile/office.php

import data journal.sql

làm tiếp các bước sau

Bước 1: mở forum/includes/say.php

tìm

PHP:
$fadd = mysql_insert_id();
//Проверяем, если юзер, которому мы отвечаем

Thêm vào sau đó

PHP:
$count_users = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `id` = '" . $type1['user_id'] . "'"), 0);
//Если юзер найден, ставим ему метку о новом ответе
if($count_users)
mysql_query("UPDATE `users` SET `journal_forum`=(`journal_forum`+1) WHERE `id` = '" . $type1['user_id'] . "'");

Save lại.

Bước 2, mở incfiles/head.php

tìm

PHP:
if ($user_id) {
$list = array();
$new_mail = mysql_result(mysql_query("SELECT COUNT(*) FROM `privat` WHERE `user` = '$login' AND `type` = 'in' AND `chit` = 'no'"), 0);
if ($new_mail) $list[] = '<a href="' . core::$system_set['homeurl'] . '/users/pradd.php?act=in&amp;new">' . $lng['mail'] . '</a>*(' . $new_mail . ')';
if ($datauser['comm_count'] > $datauser['comm_old']) $list[] = '<a href="' . core:a:$system_set['homeurl'] . '/users/profile.php?act=guestbook&amp;user=' . $user_id . '">' . $lng['guestbook'] . '</a> (' . ($datauser['comm_count'] - $datauser['comm_old']) . ')';
$new_album_comm = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_album_files` WHERE `user_id` = '" . core::$user_id . "' AND `unread_comments` = 1"), 0);
if($new_album_comm) $list[] = '<a href="' . core::$system_set['homeurl'] . '/users/album.php?act=top&amp;mod=my_new_comm">' . $lng['albums_comments'] . '</a>';

Thêm bên dưới

PHP:
if ($datauser['journal_forum']) $list[] = '<a href="' . core::$system_set['homeurl'] . '/users/journal.php">' . $lng['mail_forum'] . '</a>*(' . $datauser['journal_forum'] . ')';

Xong save file head.php lại
Download: http://zingup.net/100958

Nguồn: SACMAU
 

Facebook Comments

New posts New threads New resources

Back
Top