1 (edited by nyuk 2004-02-20 07:40)

Topic: mini-mod

????????? ??? ??? ?????? 1.0.1:
?????????? ? profile.php, ????? ? ??????????? ????????? ????????????, ???????? ?????????? ?????????. (?.?. ????????? ?? ???????????)

? ????? profile.php, ?????? 913, ????:

else
  $posts_field = '<input type="text" name="num_posts" value="'.$user['num_posts'].'" size="8" maxlength="8">';

???????? ??:

else {
  $posts_field = '<input type="text" name="num_posts" value="'.$user['num_posts'].'" size="8" maxlength="8">';
  $result = $db->query('SELECT count(*) AS real FROM '.$db->prefix.'posts WHERE poster_id='.$id) 
    or error('Unable to fetch posts statistic', __FILE__, __LINE__, $db->error());
  $stat = $db->fetch_assoc($result); 
  $posts_field .= ' (Alive: '.$stat['real'].')';
}

??? ??? ??? ????????:

http://forum.visp.ru/img/tmp/example_001.jpg

Big Brother is not watching you, Big Brother is testing you