Pagina 1 van 1

Help weet het even niet meer.

Geplaatst: 09 feb 2005, 14:27
door webmaster amcc
Hallo
weet iemand hier een oplossing voor.
ik wil een fotoalbum op mij forum maken.
ik heb alles naar gekeken maar weet het even niet meer.
http://www.amcc-nh.com/phpdev/www/
dit is het adres van het forum en waar de fout op staat.

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php on line 29

dit is het path zoals het er nu staat op regel 29

include($phpbb_root_path . 'album_mod/album_constants.' . $phpEx);

Geplaatst: 09 feb 2005, 14:52
door XP-Rene
Kun je de code van constants.php hier even laten zien?

Geplaatst: 09 feb 2005, 14:55
door webmaster amcc
Hoi bedoel je deze


if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}

Don't worried! This file is very *lite*
// Album MOD
include($phpbb_root_path . 'album_mod/album_constants.' . $phpEx);

// Debug Level
//define('DEBUG', 1); // Debugging on
define('DEBUG', 1); // Debugging of

Geplaatst: 09 feb 2005, 15:13
door XP-Rene
Nee, geef maar regel 25 t/m 35 uit constants.php zelf.
Dus niet de debug info.

Geplaatst: 09 feb 2005, 15:17
door webmaster amcc
heb je meschien msn als je even zo willen helpen graag.



die("Hacking attempt");
}

Don't worried! This file is very *lite*
// Album MOD
include($phpbb_root_path . 'album_mod/album_constants.' . $phpEx);

// Debug Level
//define('DEBUG', 1); // Debugging on
define('DEBUG', 1); // Debugging off


// User Levels <- Do not change the values of USER or ADMIN
define('DELETED', -1);
define('ANONYMOUS', -1);

define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);

Geplaatst: 09 feb 2005, 16:27
door Luuk
Voor

Code: Selecteer alles

Don't worried! This file is very *lite*
moet je // zetten.

Geplaatst: 09 feb 2005, 18:54
door webmaster amcc
Hoi naar de laatste tip te hebben gedaan.
krijg ik deze teks.
wie weet raad.


Warning: main(): Unable to access ./album_mod/album_constants.php in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php on line 29

Warning: main(./album_mod/album_constants.php): failed to open stream: No such file or directory in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php on line 29

Warning: main(): Unable to access ./album_mod/album_constants.php in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php on line 29

Warning: main(./album_mod/album_constants.php): failed to open stream: No such file or directory in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php on line 29

Warning: main(): Failed opening './album_mod/album_constants.php' for inclusion (include_path='.:/data/apache/php/mmp_lib:/data/session') in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php:29) in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/sessions.php on line 188

Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php:29) in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/sessions.php on line 189

Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php:29) in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/page_header.php on line 478

Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php:29) in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/page_header.php on line 480

Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php:29) in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/page_header.php on line 481

Geplaatst: 09 feb 2005, 18:56
door Bee
Heb je ook de benodigde bestanden volgens de instructies geupload? Waarschijnlijk niet, volgens de foutmelding.

Geplaatst: 09 feb 2005, 19:33
door webmaster amcc
Ik heb alle bestanden geupload
alleen ik hou de hele tijd die warning


Warning: main(): Unable to access ./album_mod/album_constants.php in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php on line 29

Warning: main(./album_mod/album_constants.php): failed to open stream: No such file or directory in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php on line 29

Warning: main(): Unable to access ./album_mod/album_constants.php in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php on line 29

Warning: main(./album_mod/album_constants.php): failed to open stream: No such file or directory in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php on line 29

Warning: main(): Failed opening './album_mod/album_constants.php' for inclusion (include_path='.:/data/apache/php/mmp_lib:/data/session') in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php:29) in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/sessions.php on line 188

Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/constants.php:29) in /data/members/paid/a/m/amcc-nh.com/htdocs/www/phpdev/www/includes/sessions.php on line 189
Installing Photo Album Addon for phpBB2


Running :: 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)) -> COMPLETED

Running :: 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)) -> COMPLETED

Running :: 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)) -> COMPLETED

Running :: 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)) -> COMPLETED

Running :: CREATE TABLE phpbb_album_config ( config_name varchar(255) NOT NULL, config_value varchar(255) NOT NULL, PRIMARY KEY (config_name)) -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('max_pics', '1024') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('user_pics_limit', '50') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('mod_pics_limit', '250') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('max_file_size', '128000') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('max_width', '800') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('max_height', '600') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('rows_per_page', '3') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('cols_per_page', '4') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('fullpic_popup', '1') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('thumbnail_quality', '50') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('thumbnail_size', '125') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('thumbnail_cache', '1') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('sort_method', 'pic_time') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('sort_order', 'DESC') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('jpg_allowed', '1') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('png_allowed', '1') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('gif_allowed', '0') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('desc_length', '512') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('hotlink_prevent', '0') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('hotlink_allowed', 'smartor.is-root.com') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('personal_gallery', '0') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('personal_gallery_private', '0') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('personal_gallery_limit', '10') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('personal_gallery_view', '-1') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('rate', '1') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('rate_scale', '10') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('comment', '1') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('gd_version', '1') -> COMPLETED

Running :: INSERT INTO phpbb_album_config VALUES ('album_version', '.0.53') -> COMPLETED


COMPLETE!

Photo Album Tables generated successfully. To Undo the changes to your database please execute album_db_uninstall.php

NOW DELETE THIS FILE

Geplaatst: 09 feb 2005, 19:40
door XP-Rene
album_db_install.php al verwijdert?

Geplaatst: 09 feb 2005, 19:47
door webmaster amcc
ja install heb ik verwijdert?
ik weet het even niet meer.

Geplaatst: 09 feb 2005, 19:53
door XP-Rene
En wat voor rechten heeft constants.php? Want deze is blijkbaar niet "accessable" oftewel, geen schrijfrechten.

Geplaatst: 09 feb 2005, 20:03
door webmaster amcc
Zo staat het in de beschrijfing wat ik moet doen.
dus volgens mij het bestand er gelijk achter plakken.
en als ik dat dan heb gedaan
dan heb ik die problemen.
haal ik het weg dan zie ik niks en is het forum gewoon alleen wel zonder fotoalbum.

#-----[ 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);

Geplaatst: 09 feb 2005, 20:10
door XP-Rene
Dit: // Album MOD
include($phpbb_root_path . 'album_mod/album_constants.' . $phpEx);

moet wel op een nieuwe regel beginnen, en dat andere spul, zoals: # Don't worried! This file is very *lite* mag er niet in staan.

Geplaatst: 09 feb 2005, 20:10
door webmaster amcc
welke fotoalbum heb jij zelf rene.
zou ik dat kunnen krijgen.
meschien dat die wel werkt.

Geplaatst: 09 feb 2005, 20:14
door webmaster amcc
// Album MOD
include($phpbb_root_path . 'album_mod/album_constants.' . $phpEx);

dit staat er nu alleen in op een nieuwe regel.

als je nu kijk op mij forum krijg je dit te zien.
http://www.amcc-nh.com/phpdev/www/

Geplaatst: 09 feb 2005, 20:16
door XP-Rene
Zelf gebruik ik Photo Album v2 for phpBB2 van Smartor, te vinden op http://smartor.is-root.com , hier om precies te zijn :http://smartor.is-root.com/downloads/album_v2053.zip

Maar die van jou moet ook werken als het goed is, het lijkt er erg sterk op dat je ergens toch iets niet helemaal goed hebt gedaan hoor.

Geplaatst: 09 feb 2005, 20:21
door webmaster amcc
ik probeer de zelfde te instaleren als jij.
ook Photo Album v2 for phpBB2 2053.
die regel in jouw constants .php is die het zelfde als die bij mij staat.
meschien staat het hier wel verkeerd op papier.
heb jij toevalig msn en zo ik jou meschien mogen toe voegen
pascal