●架設主機作業系統:Windows XP
●我安裝的程式:php + MySql 4
●我的 phpBB2 版本:phpBB 2.0.10
●我的 domain :www.woowdog.com
●我的 phpBB2 連結網址: http://www.woowdog.com/forum
●問題外掛 : albumv2053
昨晚嘗試安裝, 還裝了整晚也不成功, 但這裡關於這個外掛的資料實在不多,
或許大家都掛4image或cpg吧 ~
我安裝的步驟如下 :
根據download下來的安裝附件修改了以下程式碼
代碼: 選擇全部
#
#-----[ OPEN ]-------------------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]----------------------------------------
#
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
#
#-----[ AFTER, ADD ]----------------------------------
# Don't worried! This file is very *lite*
// Album MOD
include($phpbb_root_path . 'album_mod/album_constants.' . $phpEx);
#
#-----[ OPEN ]-------------------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]----------------------------------------
#
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
#
#-----[ AFTER, ADD ]----------------------------------
#
// Album MOD
'L_ALBUM' => $lang['Album'],
'U_ALBUM' => append_sid('album.'.$phpEx),
#
#-----[ OPEN ]-------------------------------------------------------
#
viewonline.php
#
#-----[ FIND ]----------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[ AFTER, ADD ]----------------------------------
#
case PAGE_ALBUM:
$location = $lang['Album'];
$location_url = "album.$phpEx";
break;
#
#-----[ OPEN ]-------------------------------------------------------
#
admin/index.php
#
#-----[ FIND ]----------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]----------------------------------
#
case PAGE_ALBUM:
$location = $lang['Album'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ OPEN ]-------------------------------------------------------
# also for other templates
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]----------------------------------------
#
<td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br /> </span>
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">
#
#-----[ AFTER, ADD ]----------------------------------
# this step will add a link into your header menu
<a href="{U_ALBUM}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_album.gif" width="12" height="13" border="0" alt="{L_ALBUM}" hspace="3" />{L_ALBUM}</a>
#
#-----[ OPEN ]-------------------------------------------------------
# also for other templates
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]----------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]---------------------------------
#
// Album MOD
$images['upload_pic'] = "$current_template_images/{LANG}/upload_pic.gif";
$images['no_thumbnail'] = "$current_template_images/nothumbnail.jpg";
#
#-----[ OPEN ]-------------------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]----------------------------------------
#
'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username'])),
#
#-----[ AFTER, ADD ]----------------------------------
#
// Photo Album Addon v2.x.x by Smartor
'U_PERSONAL_GALLERY' => append_sid("album_personal.$phpEx?user_id=" . $profiledata['user_id']),
'L_PERSONAL_GALLERY' => sprintf($lang['Personal_Gallery_Of_User'], $profiledata['username']),
#
#-----[ OPEN ]-------------------------------------------------------
# also for all other templates
templates/subSilver/profile_view_body.tpl
#
#-----[ FIND ]----------------------------------------
#
<a href="{U_SEARCH_USER}" class="genmed">{L_SEARCH_USER_POSTS}</a>
#
#-----[ IN-LINE AFTER, ADD ]--------------------------
#
<br /><a href="{U_PERSONAL_GALLERY}" class="genmed">{L_PERSONAL_GALLERY}</a>
#
#-----[ OPEN ]-------------------------------------------------------
# also for all other language packs
language/lang_english/lang_main.php
#
#-----[ FIND ]----------------------------------------
#
//
// Errors (not related to a
// specific failure on a page)
//
$lang['Information'] = 'Information';
$lang['Critical_Information'] = 'Critical Information';
#
#-----[ BEFORE, ADD ]---------------------------------
#
//
// Photo Album Addon v2.x.x by Smartor
//
$lang['Album'] = 'Album';
$lang['Personal_Gallery_Of_User'] = 'Personal Gallery of %s';跟住將以下資料導入sql :
代碼: 選擇全部
CREATE TABLE phpbb_album (
pic_id int(11) UNSIGNED NOT NULL auto_increment,
pic_filename varchar(255) NOT NULL,
pic_thumbnail varchar(255),
pic_title varchar(255) NOT NULL,
pic_desc text,
pic_user_id mediumint(8) NOT NULL,
pic_username varchar(32),
pic_user_ip char(8) NOT NULL DEFAULT '0',
pic_time int(11) UNSIGNED NOT NULL,
pic_cat_id mediumint(8) UNSIGNED NOT NULL DEFAULT '1',
pic_view_count int(11) UNSIGNED NOT NULL DEFAULT '0',
pic_lock tinyint(3) NOT NULL DEFAULT '0',
pic_approval tinyint(3) NOT NULL DEFAULT '1',
PRIMARY KEY (pic_id),
KEY pic_cat_id (pic_cat_id),
KEY pic_user_id (pic_user_id),
KEY pic_time (pic_time));
CREATE TABLE phpbb_album_rate (
rate_pic_id int(11) UNSIGNED NOT NULL,
rate_user_id mediumint(8) NOT NULL,
rate_user_ip char(8) NOT NULL,
rate_point tinyint(3) UNSIGNED NOT NULL,
KEY rate_pic_id (rate_pic_id),
KEY rate_user_id (rate_user_id),
KEY rate_user_ip (rate_user_ip),
KEY rate_point (rate_point));
CREATE TABLE phpbb_album_comment (
comment_id int(11) UNSIGNED NOT NULL auto_increment,
comment_pic_id int(11) UNSIGNED NOT NULL,
comment_user_id mediumint(8) NOT NULL,
comment_username varchar(32),
comment_user_ip char(8) NOT NULL,
comment_time int(11) UNSIGNED NOT NULL,
comment_text TEXT,
comment_edit_time int(11) UNSIGNED,
comment_edit_count smallint(5) UNSIGNED NOT NULL DEFAULT '0',
comment_edit_user_id mediumint(8),
PRIMARY KEY(comment_id),
KEY comment_pic_id (comment_pic_id),
KEY comment_user_id (comment_user_id),
KEY comment_user_ip (comment_user_ip),
KEY comment_time (comment_time));
CREATE TABLE phpbb_album_cat (
cat_id mediumint(8) UNSIGNED NOT NULL auto_increment,
cat_title varchar(255) NOT NULL,
cat_desc text,
cat_order mediumint(8) NOT NULL,
cat_view_level tinyint(3) NOT NULL DEFAULT '-1',
cat_upload_level tinyint(3) NOT NULL DEFAULT '0',
cat_rate_level tinyint(3) NOT NULL DEFAULT '0',
cat_comment_level tinyint(3) NOT NULL DEFAULT '0',
cat_edit_level tinyint(3) NOT NULL DEFAULT '0',
cat_delete_level tinyint(3) NOT NULL DEFAULT '2',
cat_view_groups varchar(255),
cat_upload_groups varchar(255),
cat_rate_groups varchar(255),
cat_comment_groups varchar(255),
cat_edit_groups varchar(255),
cat_delete_groups varchar(255),
cat_moderator_groups varchar(255),
cat_approval tinyint(3) NOT NULL DEFAULT '0',
PRIMARY KEY (cat_id),
KEY cat_order (cat_order));
CREATE TABLE phpbb_album_config (
config_name varchar(255) NOT NULL,
config_value varchar(255) NOT NULL,
PRIMARY KEY (config_name));
INSERT INTO phpbb_album_config VALUES ('max_pics', '1024');
INSERT INTO phpbb_album_config VALUES ('user_pics_limit', '50');
INSERT INTO phpbb_album_config VALUES ('mod_pics_limit', '250');
INSERT INTO phpbb_album_config VALUES ('max_file_size', '128000');
INSERT INTO phpbb_album_config VALUES ('max_width', '800');
INSERT INTO phpbb_album_config VALUES ('max_height', '600');
INSERT INTO phpbb_album_config VALUES ('rows_per_page', '3');
INSERT INTO phpbb_album_config VALUES ('cols_per_page', '4');
INSERT INTO phpbb_album_config VALUES ('fullpic_popup', '1');
INSERT INTO phpbb_album_config VALUES ('thumbnail_quality', '50');
INSERT INTO phpbb_album_config VALUES ('thumbnail_size', '125');
INSERT INTO phpbb_album_config VALUES ('thumbnail_cache', '1');
INSERT INTO phpbb_album_config VALUES ('sort_method', 'pic_time');
INSERT INTO phpbb_album_config VALUES ('sort_order', 'DESC');
INSERT INTO phpbb_album_config VALUES ('jpg_allowed', '1');
INSERT INTO phpbb_album_config VALUES ('png_allowed', '1');
INSERT INTO phpbb_album_config VALUES ('gif_allowed', '0');
INSERT INTO phpbb_album_config VALUES ('desc_length', '512');
INSERT INTO phpbb_album_config VALUES ('hotlink_prevent', '0');
INSERT INTO phpbb_album_config VALUES ('hotlink_allowed', 'smartor.is-root.com');
INSERT INTO phpbb_album_config VALUES ('personal_gallery', '0');
INSERT INTO phpbb_album_config VALUES ('personal_gallery_private', '0');
INSERT INTO phpbb_album_config VALUES ('personal_gallery_limit', '10');
INSERT INTO phpbb_album_config VALUES ('personal_gallery_view', '-1');
INSERT INTO phpbb_album_config VALUES ('rate', '1');
INSERT INTO phpbb_album_config VALUES ('rate_scale', '10');
INSERT INTO phpbb_album_config VALUES ('comment', '1');
INSERT INTO phpbb_album_config VALUES ('gd_version', '1');
INSERT INTO phpbb_album_config VALUES ('album_version', '.0.53');導入不了 ~
只導入了其餘4個檔案 ~
之後進入forum, 多了一大段錯誤信息在頁頂
Warning: main(): Unable to access ./album_mod/album_constants.php in /wwwroot/woowdog.com/www/forum/includes/constants.php on line 28
Warning: main(./album_mod/album_constants.php): failed to open stream: No such file or directory in /wwwroot/woowdog.com/www/forum/includes/constants.php on line 28
Warning: main(): Failed opening './album_mod/album_constants.php' for inclusion (include_path='.:/usr/local/lib/php') in /wwwroot/woowdog.com/www/forum/includes/constants.php on line 28
Warning: Cannot modify header information - headers already sent by (output started at /wwwroot/woowdog.com/www/forum/includes/constants.php:28) in /wwwroot/woowdog.com/www/forum/includes/sessions.php on line 305
Warning: Cannot modify header information - headers already sent by (output started at /wwwroot/woowdog.com/www/forum/includes/constants.php:28) in /wwwroot/woowdog.com/www/forum/includes/sessions.php on line 306
Warning: Cannot modify header information - headers already sent by (output started at /wwwroot/woowdog.com/www/forum/includes/constants.php:28) in /wwwroot/woowdog.com/www/forum/includes/page_header.php on line 478
Warning: Cannot modify header information - headers already sent by (output started at /wwwroot/woowdog.com/www/forum/includes/constants.php:28) in /wwwroot/woowdog.com/www/forum/includes/page_header.php on line 480
Warning: Cannot modify header information - headers already sent by (output started at /wwwroot/woowdog.com/www/forum/includes/constants.php:28) in /wwwroot/woowdog.com/www/forum/includes/page_header.php on line 481
可以login, 但進不了主題及後台 ~
再翻查安裝說明 :
#
#-----[ COPY ]-------------------------------------------------------
# These following instructions mean...
# Upload all files in directory "phpbb_root" with their structure to your phpBB root directory
#
# Remember to upload all the language files and template files to all your
# language packs and template directories
#
# If you use FTP please remember to use ASCII mode for text files (*.php, *.tpl)
# and BINARY mode for image files (*.jpg, *.gif)
# Fortunately good FTP clients today can auto-detect the mode for your files
copy phpbb_root/*.php to *.php
copy phpbb_root/admin/*.php to admin/
copy phpbb_root/album_mod/*.* to album_mod/
copy phpbb_root/language/lang_english/*.php to language/lang_english/
copy phpbb_root/templates/subSilver/*.* to templates/subSilver/
copy phpbb_root/templates/subSilver/admin/*.* to templates/subSilver/admin/
copy phpbb_root/templates/subSilver/images/*.* to templates/subSilver/images/
copy phpbb_root/templates/subSilver/images/lang_english/*.* to templates/subSilver/images/lang_english/ <--- 這段其實唔知想我做些什麼, 沒有理會 ~
#
#-----[ ACTION ]--------------------------------------
# Create folder: album_mod/upload <--- 查過有這個fies
# Create folder: album_mod/upload/cache<-- 都有
#
#-----[ ACTION ]--------------------------------------
# Require for Unix-like host (you can use your FTP client to do this)
#
# CHMOD 777 album_mod/upload <-- 已做了
# CHMOD 777 album_mod/upload/cache<--已做
#這段最難明白 ~
#-----[ SQL ]--------------------------------------------------------
# For FRESH Install Only!!! If you *upgrade* from Album v1.x.x you
# must *skip* this step to go to the *next* step!
#
# This Photo Album must add 5 tables into your database.
# Fortunately it will not alter any existed tables
#
# Upload album_db_install.php and album_mysql.sql to your phpBB root
# directory then run album_db_install.php by typing on the browser
# After that, delete both files immediately
#
# If you do not want to run album_db_install.php you can run the SQL
# queries manually in album_mysql.sql
-----------------------------------------------
#****************** 其實這段是否說:
可以將album_mysql.sql內的指令導入sql內, 亦可以選擇將album_db_install.php放在phpbb_root內然後執行, 兩者選一樣 ??
其實兩樣都有做過, 如在ie執行install, 畫面變了
Warning: main(): Unable to access ./extension.inc in /wwwroot/woowdog.com/www/forum/phpbb_root/album_db_install.php on line 25
Warning: main(./extension.inc): failed to open stream: No such file or directory in /wwwroot/woowdog.com/www/forum/phpbb_root/album_db_install.php on line 25
\n
Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:/usr/local/lib/php') in /wwwroot/woowdog.com/www/forum/phpbb_root/album_db_install.php on line 25
Warning: main(): Unable to access ./common. in /wwwroot/woowdog.com/www/forum/phpbb_root/album_db_install.php on line 26
Warning: main(./common.): failed to open stream: No such file or directory in /wwwroot/woowdog.com/www/forum/phpbb_root/album_db_install.php on line 26
Warning: main(): Failed opening './common.' for inclusion (include_path='.:/usr/local/lib/php') in /wwwroot/woowdog.com/www/forum/phpbb_root/album_db_install.php on line 26
Fatal error: Call to undefined function: session_pagestart() in /wwwroot/woowdog.com/www/forum/phpbb_root/album_db_install.php on line 28
請問各位安裝過而成功的學長可否告訴我應該是怎麼辦 ??
對不起, 我不知我說得會否太長, 令你們變得混亂 ~
我也實在是想不通, 所以才麻煩你們 ,
希望大家幫幫我o拉 ~ 感謝感謝 ~


