Сирожиддин
BestMaker, incfiles/classes/functions.php dan display_place nomli funksiyani toping, va u kodni boshidan-oxirigacha o'chiring keyin o'rniga bu kodni yozing.
  1. public static function display_place($user_id = 0, $place = '') {
  2. global $headmod;
  3. $place = explode(",", $place);
  4. $placelist = parent::load_lng('places');
  5. if (array_key_exists($place[0], $placelist)) {
  6. if ($place[0] == 'news') {
  7. $news = mysql_fetch_array(mysql_query("SELECT * FROM `cms_news` WHERE `id` = '".$place[1]."'"));
  8. return '
  9. <a href="' . self::$system_set['homeurl'] . '/news/index.php?act=view&amp;id=' . $place[1] . '">
  10. '.mb_substr($news['name'], 0, 30).'...
  11. </a>
  12. ';
  13. }
  14. if ($place[0] == 'profile') {
  15. if ($place[1] == $user_id) {
  16. return '<a href="' . self::$system_set['homeurl'] . '/users/profile.php?user=' . $place[1] . '">' . $placelist['profile_personal'] . '</a>';
  17. } else {
  18. $user = self::get_user($place[1]);
  19.  
  20. return $placelist['profile'] . ': <a href="' . self::$system_set['homeurl'] . '/users/profile.php?user=' . $user['id'] . '">' . $user['name'] . '</a>';
  21. }
  22. } elseif ($place[0] == 'online' && isset($headmod) && $headmod == 'online') {
  23. return $placelist['here'];
  24. } else {
  25. return str_replace('#home#', self::$system_set['homeurl'], $placelist[$place[0]]);
  26. }
  27.  
  28. }
  29. return '<a href="' . self::$system_set['homeurl'] . '/index.php">' . $placelist['homepage'] . '</a>';
  30. }


news/index.php ga bu kodni almashtiring.
  1. require_once('../incfiles/core.php');
  2. $headmod = 'news,'.$id;


Namuna: http://fc-arsenal.uz/users/index.php?act=online