第 1 頁 (共 1 頁)
[問題]請教memberlist.php 問題
發表於 : 2004-01-14 12:05
由 garychia
顯示如下:
Parse error: parse error in /home/public_html/bbs/memberlist.php on line 279
memberlist.php 程式碼如下:
代碼: 選擇全部
277=>'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"))
278=> );
279=>);
280=>
281=> $cm_memberlist->listing($template,$row
282=> $i++;
283=> }
284=> while ( $row = $db->sql_fetchrow($result) );
285=>}
286=>
287=>if ( $mode != 'topten' || $board_config['topics_per_page'] < 10 )
請教先進如何修正謝謝!
Re: [問題]請教memberlist.php 問題
發表於 : 2004-01-14 13:22
由 streitleak
請補上200~279行....
Re: [問題]請教memberlist.php 問題
發表於 : 2004-01-14 13:45
由 garychia
streitleak 寫:請補上200~279行....
代碼: 選擇全部
}
else
{
$email_img = ' ';
$email = ' ';
}
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id");
$profile_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_profile'] . '" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" border="0" /></a>';
$profile = '<a href="' . $temp_url . '">' . $lang['Read_profile'] . '</a>';
$temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$user_id");
$pm_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>';
$pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>';
$www_img = ( $row['user_website'] ) ? '<a href="' . $row['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '';
$www = ( $row['user_website'] ) ? '<a href="' . $row['user_website'] . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : '';
if ( !empty($row['user_icq']) )
{
$icq_status_img = '<a href="http://wwp.icq.com/' . $row['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $row['user_icq'] . '&img=5" width="18" height="18" border="0" /></a>';
$icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $row['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
$icq = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $row['user_icq'] . '">' . $lang['ICQ'] . '</a>';
}
else
{
$icq_status_img = '';
$icq_img = '';
$icq = '';
}
$aim_img = ( $row['user_aim'] ) ? '<a href="aim:goim?screenname=' . $row['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : '';
$aim = ( $row['user_aim'] ) ? '<a href="aim:goim?screenname=' . $row['user_aim'] . '&message=Hello+Are+you+there?">' . $lang['AIM'] . '</a>' : '';
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id");
$msn_img = ( $row['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
$msn = ( $row['user_msnm'] ) ? '<a href="' . $temp_url . '">' . $lang['MSNM'] . '</a>' : '';
$yim_img = ( $row['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $row['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
$yim = ( $row['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $row['user_yim'] . '&.src=pg">' . $lang['YIM'] . '</a>' : '';
$temp_url = append_sid("search.$phpEx?search_author=" . urlencode($username) . "&showresults=posts");
$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . $lang['Search_user_posts'] . '" border="0" /></a>';
$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars('memberrow', array(
'ROW_NUMBER' => $i + ( $HTTP_GET_VARS['start'] + 1 ),
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'USERNAME' => $username,
'FROM' => $from,
'JOINED' => $joined,
'POSTS' => $posts,
'AVATAR_IMG' => $poster_avatar,
'PROFILE_IMG' => $profile_img,
'PROFILE' => $profile,
'SEARCH_IMG' => $search_img,
'SEARCH' => $search,
'PM_IMG' => $pm_img,
'PM' => $pm,
'EMAIL_IMG' => $email_img,
'EMAIL' => $email,
'WWW_IMG' => $www_img,
'WWW' => $www,
'ICQ_STATUS_IMG' => $icq_status_img,
'ICQ_IMG' => $icq_img,
'ICQ' => $icq,
'AIM_IMG' => $aim_img,
'AIM' => $aim,
'MSN_IMG' => $msn_img,
'MSN' => $msn,
'YIM_IMG' => $yim_img,
'YIM' => $yim,
'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"))
);
);
發表於 : 2004-01-14 13:54
由 streitleak
不要用程式碼的CODE方式貼一次...那個捲動軸很很難用...
<--不要用..
發表於 : 2004-01-14 15:14
由 atthis
代碼: 選擇全部
'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"))
);
[color=red]);[/color]
標紅色那個好像是多出來的
你把它刪掉試試
發表於 : 2004-01-14 17:19
由 garychia
atthis 寫:代碼: 選擇全部
'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"))
);
[color=red]);[/color]
標紅色那個好像是多出來的
你把它刪掉試試
把它刪掉:
Parse error: parse error in /garychi/public_html/bbs/memberlist.php on line 281
279=>
280=> $cm_memberlist->listing($template,$row
281=> $i++;
282=> }
283=> while ( $row = $db->sql_fetchrow($result) );
284=>}
285=>
286=>if ( $mode != 'topten' || $board_config['topics_per_page'] < 10 )
287=>{
288=> $sql = "SELECT count(*) AS total
289=> FROM " . USERS_TABLE . "
290=> WHERE user_id <> " . ANONYMOUS;
感謝您
發表於 : 2004-01-14 19:11
由 atthis
代碼: 選擇全部
280=> $cm_memberlist->listing($template,$row
改成
代碼: 選擇全部
280=> $cm_memberlist->listing($template,$row[color=red]);[/color]
你正在裝Mod嗎?
如果有,請告知是什麼Mod
這樣大家比較好幫你
發表於 : 2004-01-14 19:44
由 streitleak
請貼完整的原始碼....除非你很確定上下文中的"{}"的關係都沒問題...
發表於 : 2004-01-14 19:53
由 garychia
我用原來的已經正常謝謝您!我在裝訪客不能看會員列表&Cash Mod&新聞快報,後兩者正常第一項回原來的
發表於 : 2004-01-15 00:14
由 godbless
其實不知道連結方式的一般人,我都只是把那個連結上使用須登入後才看的到連結的方式給包起來....
代碼: 選擇全部
<!-- BEGIN switch_user_logged_in -->
你的連結程式碼\r
<!-- END switch_user_logged_in -->
這樣又簡單又快...