pavelw pisze:niewiem moze to by bylo dobre ?
nie zadziała. wkońcu są to 2 różne mody to nawet nie ma co pytać
poprawna wersja:
viewform.php
Kod: Zaznacz cały
#
#-----[ Find]------------------------------------------
#
$last_post .= ( $value['user_id'] == ANONYMOUS ) ? ( ($value['post_username'] != '' )
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $value['user_id']) . '">' . $value['username'] . '</a> ';
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
color_username($value['user_id'],$value['username'],$value['user_rank'],$value['user_posts']);
#
#-----[ FIND ]------------------------------------------
#
$sql2 = "SELECT f.*, p.post_time, p.post_username, u.username,
#
#-----[ AFTER, ADD ]------------------------------------------
#
u.user_rank, u.user_posts,
#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------
#
# EoM
dla index.php
Kod: Zaznacz cały
#
#-----[ Find]------------------------------------------
#
$forum_data[$j]['user_id'] = $value['user_id'];
#
#-----[ AFTER, ADD]------------------------------------------
#
$forum_data[$j]['user_rank'] = $value['user_rank'];
$forum_data[$j]['user_posts'] = $value['user_posts'];
#
#-----[ Find]------------------------------------------
#
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';
#
#-----[ REPLACE WITH ]------------------------------------------
#
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_username($forum_data[$j]['user_id'],$forum_data[$j]['username'],$forum_data[$j]['user_rank'],$forum_data[$j]['user_posts']);
#
#-----[ Find]------------------------------------------
#
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id, t.topic_id, t.topic_title
#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.user_id,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
u.user_rank, u.user_posts,
#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------
#
# EoM
Nie pisałem tego sam tylko kiedyś znalazlem w internecie. ale działa bo sam używam tych modów
