• 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.

Smobi

New Member
Mô tả: Modul cho phép các bạn đặt câu hỏi cho nhau đối với các thành viên dăng kí sử dụng mod. Có thể gửi một tin nhắn nap danh.
Demo: 301 Moved Permanently
Tình Trạng: Việt Hóa Full

Hướng dẫn cài dặt:
+ Upload toàn bộ file Zip Lên Host
+ Chạy Domain.com/askme/install và làm theo hưỡng dẫn
Mở file User/profile.php
Tìm:

PHP:
    echo '<br />' .
        '<div><img src="../images/photo.gif" width="16" height="16"/>*<a href="album.php?act=list&amp;user=' . $user['id'] . '">' . $lng['photo_album'] . '</a>*(' . $total_photo . ')</div>' .
        '<div><img src="../images/guestbook.gif" width="16" height="16"/>*<a href="profile.php?act=guestbook&amp;user=' . $user['id'] . '">' . $lng['guestbook'] . '</a>*(' . $user['comm_count'] . ')</div>' .
        '<div><img src="../images/users.png" width="16" height="16"/>*<a href="profile.php?act=friends&amp;user=' . $user['id'] . '">' . $lng_profile['friends'] . '</a>*(' . $total_friends . ')</div>' .
        '</p></div>';

Thêm dưới:
PHP:
$usr = mysql_fetch_assoc(mysql_query("SELECT * FROM `askme_users` WHERE `uid` = ".$user['id']." "));
if ($usr != NULL) {
echo '<div class="list1"><img src="../images/info.png" width="16" height="16"/>*<a href="/askme/index.php?id='.$usr['id'].'">Ask Me</a></div>';
}

Mở file incfiles/calsses/counters.php
Tìm
PHP:
class counters
{
Thêm sau nó:
PHP:
/*
    -----------------------------------------------------------------
    Funtion Ask Me
    -----------------------------------------------------------------
    */
    static function askme() {
      $usr = mysql_fetch_assoc(mysql_query("SELECT `id` FROM `askme_users` WHERE `uid` = ".core::$user_id." "));
      if ($usr != NULL) {
      $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `askme_answers` WHERE `uid`='" . core::$user_id . "'"), 0);
      $ncount = mysql_result(mysql_query("SELECT COUNT(*) FROM `askme_questions` WHERE `uid`='" . core::$user_id . "' AND `on` = 1"), 0);
      $total = $ncount > 0 ? '('.$count.' <span class="red">+'.$ncount.'</span>)' : '('.$count.')';
      } else {
      $total = '';
          }
      return $total;
    }

Xong hết nhé!
 

Attachments

  • askme.zip
    9.7 KB · Views: 133

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top