[問題]公告條 Board Message Mod XL
發表於 : 2004-09-03 10:52
問題外掛:Board Message Mod XL 1.0.4
參考連結:請按這裡
使用版本:phpbb2 2.0.6、appserv 2.3.0
網站位置:尚未架設完畢
狀況描述:
照著install.txt進行動作後,也已經進行中文化
但是首頁上面出現錯誤
[php]Warning: main(./board_message_xl.php): failed to open stream: No such file or directory in d:\appserv\www\phpbb2\includes\page_header.php on line 345
Warning: main(): Failed opening './board_message_xl.php' for inclusion (include_path='.;c:\php4\pear') in d:\appserv\www\phpbb2\includes\page_header.php on line 345[/php]
此檔案中的上下12行為\r
[php] $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']);
}
}
}
// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
$l_timezone = explode('.', $board_config['board_timezone']);
$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//
include($phpbb_root_path . 'board_message_xl.'.$phpEx);
$template->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'SITE_DESCRIPTION' => $board_config['site_desc'],
'PAGE_TITLE' => $page_title,
'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit),
'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])),
'TOTAL_USERS_ONLINE' => $l_online_users,
'LOGGED_IN_USER_LIST' => $online_userlist,
'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])),
'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text,
'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread,
'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,[/php]
include($phpbb_root_path . 'board_message_xl.'.$phpEx);
此為345行
我不太確定此檔案中的SQL輸入我是否輸入正確…我不太懂SQL的
[php]#-----[ SQL ]-------------------------------------------
#
CREATE TABLE phpbb_board_message (
msg_id mediumint(8) NOT NULL auto_increment,
title varchar(25) NOT NULL default '(empty)',
message text NOT NULL,
showpage smallint(5) NOT NULL default '0',
auth tinyint(2) NOT NULL default '5',
width smallint(3) NOT NULL default '75',
starttime int(11) NOT NULL default '0',
endtime int(11) NOT NULL default '0',
startdate int(11) NOT NULL default '0',
enddate int(11) NOT NULL default '0',
users_timezone tinyint(1) NOT NULL default '0',
bbcode_uid varchar(10) NOT NULL default '',
days varchar(7) NOT NULL default '0000000',
\n images varchar(100) default NULL,
ordr smallint(3) NOT NULL default '0',
PRIMARY KEY (msg_id) );
INSERT INTO phpbb_board_message (msg_id, title, message, showpage, auth, width, starttime, endtime, startdate, enddate, users_timezone, bbcode_uid, days, images, ordr) VALUES (1, 'All Pages', 'This message will be shown on all pages. It can be view by all visitors. The width of the table = 80%. It als display a gif file. Order 10', 9999, 0, 80, 946681200, 946681200, 988581600, 1293750000, 0, '', '1111111', '/images/default.gif', 10),
(3, 'Index Only', 'The message will be showed only on the index. Only for registered people. On all days. Order 20', 0, 1, 50, 946681200, 946681200, 1009839600, 1293750000, 0, '', '1111111', '', 20);
[/php]
我是將以上文字複製,進入phymyadmin後,選擇phpbb資料庫\r
按下右邊視窗上面的SQL,然後就貼上直接執行了,不知是否有錯…\r
先謝謝各位版友的指教及教導
參考連結:請按這裡
使用版本:phpbb2 2.0.6、appserv 2.3.0
網站位置:尚未架設完畢
狀況描述:
照著install.txt進行動作後,也已經進行中文化
但是首頁上面出現錯誤
[php]Warning: main(./board_message_xl.php): failed to open stream: No such file or directory in d:\appserv\www\phpbb2\includes\page_header.php on line 345
Warning: main(): Failed opening './board_message_xl.php' for inclusion (include_path='.;c:\php4\pear') in d:\appserv\www\phpbb2\includes\page_header.php on line 345[/php]
此檔案中的上下12行為\r
[php] $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']);
}
}
}
// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
$l_timezone = explode('.', $board_config['board_timezone']);
$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//
include($phpbb_root_path . 'board_message_xl.'.$phpEx);
$template->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'SITE_DESCRIPTION' => $board_config['site_desc'],
'PAGE_TITLE' => $page_title,
'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit),
'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])),
'TOTAL_USERS_ONLINE' => $l_online_users,
'LOGGED_IN_USER_LIST' => $online_userlist,
'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])),
'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text,
'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread,
'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,[/php]
include($phpbb_root_path . 'board_message_xl.'.$phpEx);
此為345行
我不太確定此檔案中的SQL輸入我是否輸入正確…我不太懂SQL的
[php]#-----[ SQL ]-------------------------------------------
#
CREATE TABLE phpbb_board_message (
msg_id mediumint(8) NOT NULL auto_increment,
title varchar(25) NOT NULL default '(empty)',
message text NOT NULL,
showpage smallint(5) NOT NULL default '0',
auth tinyint(2) NOT NULL default '5',
width smallint(3) NOT NULL default '75',
starttime int(11) NOT NULL default '0',
endtime int(11) NOT NULL default '0',
startdate int(11) NOT NULL default '0',
enddate int(11) NOT NULL default '0',
users_timezone tinyint(1) NOT NULL default '0',
bbcode_uid varchar(10) NOT NULL default '',
days varchar(7) NOT NULL default '0000000',
\n images varchar(100) default NULL,
ordr smallint(3) NOT NULL default '0',
PRIMARY KEY (msg_id) );
INSERT INTO phpbb_board_message (msg_id, title, message, showpage, auth, width, starttime, endtime, startdate, enddate, users_timezone, bbcode_uid, days, images, ordr) VALUES (1, 'All Pages', 'This message will be shown on all pages. It can be view by all visitors. The width of the table = 80%. It als display a gif file. Order 10', 9999, 0, 80, 946681200, 946681200, 988581600, 1293750000, 0, '', '1111111', '/images/default.gif', 10),
(3, 'Index Only', 'The message will be showed only on the index. Only for registered people. On all days. Order 20', 0, 1, 50, 946681200, 946681200, 1009839600, 1293750000, 0, '', '1111111', '', 20);
[/php]
我是將以上文字複製,進入phymyadmin後,選擇phpbb資料庫\r
按下右邊視窗上面的SQL,然後就貼上直接執行了,不知是否有錯…\r
先謝謝各位版友的指教及教導