[討論]新的 Integrated Toplist 1.0.1
版主: 版主管理群
您可以依下列方法修正:
找到\r
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch forum info fail' '', __LINE__, __FILE__, $sql);
改成
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch forum info fail', __LINE__, __FILE__, $sql);
找到\r
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch topic info fail' '', __LINE__, __FILE__, $sql);
改成
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch topic info fail', __LINE__, __FILE__, $sql);
找到
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch topic poster fail' '', __LINE__, __FILE__, $sql);
改成
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch topic poster fail', __LINE__, __FILE__, $sql);
找到\r
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch topic last replier fail' '', __LINE__, __FILE__, $sql);
改成
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch topic last replier fail', __LINE__, __FILE__, $sql);
找到\r
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch forum info fail' '', __LINE__, __FILE__, $sql);
改成
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch forum info fail', __LINE__, __FILE__, $sql);
找到\r
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch topic info fail' '', __LINE__, __FILE__, $sql);
改成
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch topic info fail', __LINE__, __FILE__, $sql);
找到
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch topic poster fail' '', __LINE__, __FILE__, $sql);
改成
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch topic poster fail', __LINE__, __FILE__, $sql);
找到\r
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch topic last replier fail' '', __LINE__, __FILE__, $sql);
改成
message_die(GENERAL_ERROR, 'Toplist ERROR: Fetch topic last replier fail', __LINE__, __FILE__, $sql);
感謝大大提供之[外掛]整合式Top V3,我安裝后執行http://localhost/phpbb2顯示以下訊息:
Parse error: parse error, unexpected T_STRING, expecting ')' in c:\appserv\www\phpbb2\index.php on line 391
c:\appserv\www\phpbb2\index.php on line 391如下:
$template->assign_block_vars("toprow", array(
'FORUM_NAME" => $rows['forum_name'],
'FORUM_URL' => $forum_url,
'TOPIC' => cutStr($rows['topic_title']),
'TOPIC_URL' => $topic_url,
'TOPIC_VIEWS' => $rows['topic_views'],
'TOPIC_REPLIES' => $rows['topic_replies'],
'POST_TIME' => create_date($board_config['default_dateformat'], $r_row['post_time'], $board_config['board_timezone']),
'POSTER_URL' => $poster_url,
'REPLIER_URL' => $replier_url,
'LAST_POST_URL' => $last_post_url
));
請教是否應如此解決?
'FORUM_NAME' => $rows['forum_name']
ps.我已執行正常
=====【以下是我的測試配備】=====
●架設主機作業系統:Windows Xp Home Sp2
●快速架站程式:appserv-win32-2.4.0
●您的 phpBB2 版本:phpBB 2.0.11 正體中文完整版 + attach_mod 2.3.10 正體中文版 from maxkerr
●您的 Attachment Mod 版本:attach_mod 2.3.10 正體中文版
●風格:subSilver
Parse error: parse error, unexpected T_STRING, expecting ')' in c:\appserv\www\phpbb2\index.php on line 391
c:\appserv\www\phpbb2\index.php on line 391如下:
$template->assign_block_vars("toprow", array(
'FORUM_NAME" => $rows['forum_name'],
'FORUM_URL' => $forum_url,
'TOPIC' => cutStr($rows['topic_title']),
'TOPIC_URL' => $topic_url,
'TOPIC_VIEWS' => $rows['topic_views'],
'TOPIC_REPLIES' => $rows['topic_replies'],
'POST_TIME' => create_date($board_config['default_dateformat'], $r_row['post_time'], $board_config['board_timezone']),
'POSTER_URL' => $poster_url,
'REPLIER_URL' => $replier_url,
'LAST_POST_URL' => $last_post_url
));
請教是否應如此解決?
'FORUM_NAME' => $rows['forum_name']
ps.我已執行正常
=====【以下是我的測試配備】=====
●架設主機作業系統:Windows Xp Home Sp2
●快速架站程式:appserv-win32-2.4.0
●您的 phpBB2 版本:phpBB 2.0.11 正體中文完整版 + attach_mod 2.3.10 正體中文版 from maxkerr
●您的 Attachment Mod 版本:attach_mod 2.3.10 正體中文版
●風格:subSilver
基本上你應該會在下載的檔案中找到\r
把這些東東貼到這二個地方(一個在上面,一個在下面)
改成上面:
在下面加入:
(我想這個和安裝手冊寫一樣 =.=||)
代碼: 選擇全部
<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
<tr>
<th align="center" class="thCornerL" width="20%"> {L_FORUM} </th>
<th align="center" class="thTop" width="40%"> {L_TOPICS} </th>
<th align="center" class="thTop" nowrap> {L_AUTHOR} </th>
<th align="center" class="thTop" nowrap> {L_REPLIES} </th>
<th align="center" class="thTop" nowrap> {L_VIEWS} </th>
<th align="center" class="thCornerR" nowrap> {L_LASTPOST} </th>
</tr>
<!-- BEGIN toprow -->
<tr>
<td class="row1" nowrap><span class="forumlink"><a href="{toprow.FORUM_URL}" target="_top" class="forumlink">{toprow.FORUM_NAME}</a></span></td>
<td class="row2" nowrap><span class="topictitle"><a href="{toprow.TOPIC_URL}" target="_top" class="topictitle">{toprow.TOPIC}</a></span></td>
<td class="row1" align="center" nowrap><span class="name">{toprow.POSTER_URL}</span></td>
<td class="row2" align="center" nowrap><span class="postdetails">{toprow.TOPIC_REPLIES}</span></td>
<td class="row1" align="center" nowrap><span class="postdetails">{toprow.TOPIC_VIEWS}</span></td>
<td class="row2" align="center" nowrap><span class="postdetails">{toprow.POST_TIME}<br />{toprow.REPLIER_URL} <a href="{toprow.LAST_POST_URL}" target="_top"><img src="{ICON_URL}" border="0" alt="{ICON_ALT}" /></a></span></td>
</tr>
<!-- END toprow -->
</table>
</td>
</tr>
</table>
改成上面:
代碼: 選擇全部
[b]找到[/b]
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_POSTS} </th>
<th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN catrow -->
[b]前面加入[/b]
<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
<tr>
<th align="center" class="thCornerL" width="20%"> {L_FORUM} </th>
<th align="center" class="thTop" width="40%"> {L_TOPICS} </th>
<th align="center" class="thTop" nowrap> {L_AUTHOR} </th>
<th align="center" class="thTop" nowrap> {L_REPLIES} </th>
<th align="center" class="thTop" nowrap> {L_VIEWS} </th>
<th align="center" class="thCornerR" nowrap> {L_LASTPOST} </th>
</tr>
<!-- BEGIN toprow -->
<tr>
<td class="row1" nowrap><span class="forumlink"><a href="{toprow.FORUM_URL}" target="_top" class="forumlink">{toprow.FORUM_NAME}</a></span></td>
<td class="row2" nowrap><span class="topictitle"><a href="{toprow.TOPIC_URL}" target="_top" class="topictitle">{toprow.TOPIC}</a></span></td>
<td class="row1" align="center" nowrap><span class="name">{toprow.POSTER_URL}</span></td>
<td class="row2" align="center" nowrap><span class="postdetails">{toprow.TOPIC_REPLIES}</span></td>
<td class="row1" align="center" nowrap><span class="postdetails">{toprow.TOPIC_VIEWS}</span></td>
<td class="row2" align="center" nowrap><span class="postdetails">{toprow.POST_TIME}<br />{toprow.REPLIER_URL} <a href="{toprow.LAST_POST_URL}" target="_top"><img src="{ICON_URL}" border="0" alt="{ICON_ALT}" /></a></span></td>
</tr>
<!-- END toprow -->
</table>
</td>
</tr>
</table><br>
(我想這個和安裝手冊寫一樣 =.=||)