Pagina 1 van 1

super charged album pack

Geplaatst: 11 aug 2004, 13:22
door Protoman
ik heb net het super charged album pack v. 1.5.1 van Volodymyr (CLowN) Skoryk op m'n forum geïnstalleerd, de database geupdate enzovoorts, maar als ik nu naar adminpaneel>CLowN sp config wil gaan zegt ie dit:
phpBB : Critical Error

Could not query SP config information

DEBUG MODE

SQL Error : 1146 Table 'megmouse_phpbb2010.ALBUM_SP_CONFIG_TABLE' doesn't exist

SELECT * FROM ALBUM_SP_CONFIG_TABLE

Line : 42
File : /home/megmouse/public_html/phpBB2/admin/admin_album_clown_SP.php
hier regel 29 t/m 50 van admin_album_clown_SP.php:
//
// Let's set the root dir for phpBB
//
$phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_album.' . $phpEx);
require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx);

//update values for config
$sql = "SELECT * FROM " . ALBUM_SP_CONFIG_TABLE;
if(!$result = $db->sql_query($sql))
{
message_die(CRITICAL_ERROR, "Could not query SP config information", "", __LINE__, __FILE__, $sql);
}

else
{
while( $row = $db->sql_fetchrow($result) )
{
$config_name = $row['config_name'];
$config_value = $row['config_value'];
$default_config[$config_name] = $config_value;
wie kan me helpen want ik ben echt een loser als het hier om gaat

Geplaatst: 11 aug 2004, 13:25
door cartoontje
de database geupdate enzovoorts
Controleer dit nog een keer, want de tabel bestaat niet!

Geplaatst: 11 aug 2004, 13:27
door Protoman
3x installatiebestanden gerunt

Geplaatst: 11 aug 2004, 14:07
door Protoman
sorry dat dit in de verkeerde categorie staat...

marre niemand?

Geplaatst: 11 aug 2004, 14:09
door WebSiteNet
Heb je alle stappen van die mod voor includes/constants.php wel gedaan?

Geplaatst: 11 aug 2004, 14:15
door Protoman
##
## Files To Edit: 2
## viewonline.php
## admin/index.php
##
zegt ie, dus dat zal het ook wel niet zijn

Geplaatst: 11 aug 2004, 16:06
door Protoman
anybody??

Geplaatst: 11 aug 2004, 16:13
door WebSiteNet
Wil je de hele installatie tekst online zetten en de link geven?

Geplaatst: 11 aug 2004, 16:22
door Protoman
ok hier is ie:

Code: Selecteer alles

############################################################## 
## MOD Title: Supercharged Album Pack 1
## MOD Author: Volodymyr (CLowN) Skoryk 
## MOD Description: 
##   A series of modification for Album version 2 by Smartor ( http://smartor.is-root.com ) 
##
## MOD Includes:
##	-Random pictures on album index
##	-Highest rated pictures on album index
##	-Searching of album & personal album
##	-smilies enabled
##	-comments, rating, smilies box on same page
##	-improved layout of comments
##	-added messenger buttons, avatar, pm, email buttons to comments page
##	-custumizing looks and settings from admin pannel
##	-hot or not page
##	-watermark
##	-mid thumbnail
##      -other misc improvements
## 
## MOD Version: 1.5.1
## MOD Release Date: 01.18.04 12:46:09 am
## 
## MOD Requirements:  Album version 2 by Smartor ( http://smartor.is-root.com ) 
## 
## Installation Level: easy 
## Installation Time: 4 minutes 
## 
## Files To Edit: 2
##  viewonline.php
##  admin/index.php
##
## Files To Delete: 7
##	album_rate.php
##	album_page.php
##	album_comment.php
##	templates/ YOUR TEMPLET HERE /album_rate_body.tpl
##	templates/ YOUR TEMPLET HERE /album_comment_body.tpl
##	templates/ YOUR TEMPLET HERE /album_cat_body.tpl
##	templates/ YOUR TEMPLET HERE /album_index_body.tpl
##	
## Included Files: 30
##	album.php
##	album_cat.php
##	album_comment_edit.php
##	album_comment_delete.php
##	album_hotornot.php
##	album_personal.php
##	album_personal_index.php
##	album_pic.php
##	album_picm.php
##      album_search.php
##	album_showpage.php
##	sp_db_install.php
##	sp_db_install_fix.php
##	admin/admin_album_clown_SP.php
##	album_mod/album_common.php
##	album_mod/album_constants.php
##	album_mod/album_functions.php
##	album_mod/clown_album_functions.php
##	album_mod/mark.png
##	album_mod/rank.gif
##	templates/ YOUR TEMPLET HERE /admin/album_clown_sp_body.tpl
##	templates/ YOUR TEMPLET HERE /album_cat_body.tpl
##	templates/ YOUR TEMPLET HERE /album_comment_body.tpl
##	templates/ YOUR TEMPLET HERE /album_hon.tpl
##	templates/ YOUR TEMPLET HERE /album_index_body.tpl
##	templates/ YOUR TEMPLET HERE /album_personal_body.tpl
##	templates/ YOUR TEMPLET HERE /album_personal_index_body.tpl
##	templates/ YOUR TEMPLET HERE /album_posting_smilies.tpl
##	templates/ YOUR TEMPLET HERE /album_search_body.tpl
##	templates/ YOUR TEMPLET HERE /album_showpage_body.tpl
##
##
## MOD Preconditon: Comment and Rating system MUST be enabled in Admin Panel, and "View full pic as a popup" must be set to "No".
## 
## MOD Copyrights: Volodymyr (CLowN) Skoryk © 2003 - 2004
##		   Original Watermark code & continuous pictures mod © Luciano 2003
##		   Highest Rated Pictures code @ MarkFulton.com
## 		  		 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD (including SQL Database) 
############################################################## 
#
############################################################## 
##   This hack is released under the GPL License.
##   This hack can be freely used, but not distributed, without permission.
##   Intellectual Property is retained by the hack author(s) listed above.
############################################################## 
# 
#-----[ OPEN ]------------------------------------------------------- 
# 
viewonline.php

# 
#-----[ FIND ]------------------------------------------------------- 
# 
				case PAGE_ALBUM:
					$location = $lang['Album'];
					$location_url = "album.$phpEx";
					break;

# 
#-----[ REPLACE WITH ]------------------------------------------------------- 
# 

				case PAGE_ALBUM:
					$location = "Album Index";
					$location_url = "album.$phpEx";
					break;
				case PAGE_ALBUM_PERSONAL:
					$location = "Viewing Personal Album of a user";
					$location_url = "album_personal_index.$phpEx";
					break;
				case PAGE_ALBUM_PICTURE:
					$location = "Viewing Pictures or Posting/Reading comments in the Album";
					$location_url = "album_showpage.$phpEx";
					break;
				case PAGE_ALBUM_SEARCH:
					$location = "Searching the Album";
					$location_url = "album_search.$phpEx";
					break;
#
#-----[ OPEN ]-------------------------------------------------------
#
admin/index.php

#
#-----[ FIND ]----------------------------------------
#
				case PAGE_ALBUM:
					$location = $lang['Album'];
					$location_url = "album.$phpEx?pane=right";
					break;


#
#-----[ REPLACE WITH ]----------------------------------
#
				case PAGE_ALBUM:
					$location = "Album Index";
					$location_url = "album.$phpEx?pane=right";
					break;
				case PAGE_ALBUM_PERSONAL:
					$location = "Viewing Personal Album of a user";
					$location_url = "album_personal_index.$phpEx?pane=right";
					break;
				case PAGE_ALBUM_PICTURE:
					$location = "Viewing Pictures or Posting/Reading comments in the Album";
					$location_url = "album_showpage.$phpEx?pane=right";
					break;
				case PAGE_ALBUM_SEARCH:
					$location = "Searching the Album";
					$location_url = "album_search.$phpEx?pane=right";
					break;

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------------------- 
# 
#
#-----[ DELETE FILES ]------------------------------------------------------- 
#
	now delete the files listed above
#
#-----[ COPY FILES ]------------------------------------------------------- 
#
	now take all included files and paste them in you phpbb directory
#
#-----[ RUN INSTALL FILE ]------------------------------------------------------- 
#
	now run sp_db_install.php ... after your done, delete the file
	now run sp_db_install_fix.php ... after your done, delete the file
#
############################################################## 
# EoF 
##############################################################
und hier is de link!!!

Geplaatst: 11 aug 2004, 16:23
door WebSiteNet
Heb je de adlbum mod van smartor al geinstalleerd?

Code: Selecteer alles

## MOD Requirements:  Album version 2 by Smartor ( http://smartor.is-root.com ) 

Geplaatst: 11 aug 2004, 16:24
door Protoman
ja, dat heb ik gedaan ja, de nieuwste versie (2.0.53)

Geplaatst: 11 aug 2004, 18:07
door Leipo
## sp_db_install.php
## sp_db_install_fix.php


Post die 2 eens.

Geplaatst: 11 aug 2004, 19:01
door Protoman
sp_db_install.php schreef:

Code: Selecteer alles

<?php
//copyright © 2003 Volodymy (CLowN) Skoryk
//this update template copyright : ©2003 Freakin' Booty ;-P & Antony Bailey

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//


if( !$userdata['session_logged_in'] )
{
	$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
	header($header_location . append_sid("login.$phpEx?redirect=db_update.$phpEx", true));
	exit;
}

if( $userdata['user_level'] != ADMIN )
{
	message_die(GENERAL_MESSAGE, 'You are not authorised to access this page');
}


$page_title = 'Updating the database for CLowN\' SP1';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Updating the database</th></tr><tr><td><span class="genmed"><ul type="circle">';


$sql = array();
$sql[] = "DROP TABLE IF EXISTS `" . $table_prefix . "album_sp_config`";
$sql[] = "CREATE TABLE `" . $table_prefix . "album_sp_config` (
  `config_name` varchar(255) NOT NULL default '',
  `config_value` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`config_name`)
) TYPE=MyISAM";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('disp_late', '1')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('rate_type', '2')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('disp_high', '1')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('disp_rand', '1')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('img_rows', '2')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('img_cols', '4')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('use_watermark', '0')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('wut_users', '0')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('disp_watermark_at', '3')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('hon_rate_times', '1')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('hon_rate_sep', '1')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('hon_rate_where', '')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('hon_rate_users', '1')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('midthumb_use', '1')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('midthumb_height', '600')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('midthumb_width', '800')";
$sql[] = "INSERT INTO `" . $table_prefix . "album_sp_config` VALUES ('midthumb_cache', '1')";
$sql[] = "ALTER TABLE `" . $table_prefix . "album_rate` ADD `rate_hon_point` TINYINT(3) DEFAULT '0' NOT NULL";
$sql[] = "ALTER TABLE `" . $table_prefix . "album_comment` ADD `comment_cat_id` INT( 11 ) NOT NULL AFTER `comment_pic_id`";

for( $i = 0; $i < count($sql); $i++ )
{
	if( !$result = $db->sql_query ($sql[$i]) )
	{
		$error = $db->sql_error();

		echo '<li>' . $sql[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
	}
	else
	{
		echo '<li>' . $sql[$i] . '<br /> +++ <font color="#00AA00"><b>Successfull</b></font></li><br />';
	}
}


echo '</ul></span></td></tr><tr><td class="catBottom" height="28">&nbsp;</td></tr>';

echo '<tr><th>Finish</th></tr><tr><td><span class="genmed">Installation is now finished. Please be sure to delete this file now.</span></td></tr></table>';

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
sp_db_install_fix.php schreef:

Code: Selecteer alles

<?php
//copyright © 2003 Volodymy (CLowN) Skoryk
//this script will upgrade your album database to work with CLowN's SP1

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//


if( !$userdata['session_logged_in'] )
{
	$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
	header($header_location . append_sid("login.$phpEx?redirect=db_update.$phpEx", true));
	exit;
}

if( $userdata['user_level'] != ADMIN )
{
	message_die(GENERAL_MESSAGE, 'You are not authorised to access this page.');
}

$page_title = 'Updating the database for CLowN\' SP1 Part 2';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

if (isset($_GET['step']))
{
	echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
	echo '<tr><th>Patching the comment table to work with SP1</th></tr><tr><td><span class="genmed"><ul type="circle">';

	//get all picture ids from every comment in system
	$sql = "SELECT comment_id, comment_pic_id FROM ". ALBUM_COMMENT_TABLE;
	if( !($result = $db->sql_query($sql)) )
		message_die(GENERAL_ERROR, 'Could not query the comments table.', '', __LINE__, __FILE__, $sql);

	for ($x = 0; $x < mysql_num_rows($result); $x++) 
	{ 
	   	$row = mysql_fetch_assoc($result);
	   	$comment_id = $row['comment_id'];
	   	$pic_id = $row['comment_pic_id'];
		
		//get category id from album table
		$sql = "SELECT pic_cat_id FROM " . ALBUM_TABLE . " WHERE pic_id = " . $pic_id;
		if( !($result_album = $db->sql_query($sql)) )
			echo '<li><font color="#FF0000">Errored on comment #' . $comment_id . '. Can\'t select category id from album table.</font></li>';
		$row_album = mysql_fetch_assoc($result_album);
		$cat_id = $row_album['pic_cat_id'];
	   
	   	//update the category id in comment table
	   	$sql = "UPDATE " . ALBUM_COMMENT_TABLE . " SET comment_cat_id = " . $cat_id . " WHERE comment_pic_id = " . $pic_id;
		if( !($db->sql_query($sql)) )
			echo '<li><font color="#0000FF">Errored on comment #' . $comment_id . '. Failed updating category id.</font></li>';
		
		echo '<li><font color="#00FF00">Succsessfully updated comment #' . $comment_id . '.</font></li>';
	}

	echo '</ul></span></td></tr><tr><td class="catBottom" height="28">&nbsp;</td></tr>';
	echo '<tr><th>Finish</th></tr><tr><td><span class="genmed">Updating comment table is now finished. Please be sure to delete this file now.<br /><br />If any of the text is red or blue, write down the comment ids that it says, and you may update them manually..or just remove those pictures.</span></td></tr></table>';
}
else
{
	echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
	echo '<tr><th>You are about to patch your albums database to work with CLowN\'s SP1.</th></tr><tr><td><span class="genmed">';
	echo 'I STRONGLY suggest that you make backup of your database before continuing running this file. <br />Depending on how many comments you have in your album, this next screen might take a while to load.';
	echo '<br />If for any reason your computer crashes, i suggest you restore your backup and try running this file again. <br />If you have alot of comments, dont expect this screen to load very fast...give it some time...GOOD LUCK!';
	echo '<br /><br /><a href="?step=2">Click here go run the script</a>';
	echo '</span></td></tr><tr><td class="catBottom" height="28">&nbsp;</td></tr></table>';
}

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
alsjeblieft... :?

Geplaatst: 11 aug 2004, 20:10
door Protoman
wacht effe als ik sp_db_install run, zegt ie ook dit:
Updating the database
DROP TABLE IF EXISTS `phpbb_album_sp_config`
+++ Successfull
CREATE TABLE `phpbb_album_sp_config` ( `config_name` varchar(255) NOT NULL default '', `config_value` varchar(255) NOT NULL default '', PRIMARY KEY (`config_name`) ) TYPE=MyISAM
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('disp_late', '1')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('rate_type', '2')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('disp_high', '1')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('disp_rand', '1')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('img_rows', '2')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('img_cols', '4')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('use_watermark', '0')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('wut_users', '0')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('disp_watermark_at', '3')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('hon_rate_times', '1')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('hon_rate_sep', '1')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('hon_rate_where', '')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('hon_rate_users', '1')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('midthumb_use', '1')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('midthumb_height', '600')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('midthumb_width', '800')
+++ Successfull

INSERT INTO `phpbb_album_sp_config` VALUES ('midthumb_cache', '1')
+++ Successfull

ALTER TABLE `phpbb_album_rate` ADD `rate_hon_point` TINYINT(3) DEFAULT '0' NOT NULL
+++ Error: Duplicate column name 'rate_hon_point'

ALTER TABLE `phpbb_album_comment` ADD `comment_cat_id` INT( 11 ) NOT NULL AFTER `comment_pic_id`
+++ Error: Duplicate column name 'comment_cat_id'
wat betekenen die errors? snap ze niet helemaal

Geplaatst: 11 aug 2004, 21:31
door cartoontje
Dat die kolom al bestaat!

Geplaatst: 12 aug 2004, 09:49
door Leipo
Zoals ik al dacht.
SQL Error : 1146 Table 'megmouse_phpbb2010.ALBUM_SP_CONFIG_TABLE' doesn't exist


Zo hoort je tabel naam te heten.
DROP TABLE IF EXISTS `phpbb_album_sp_config
Zo heet ie nu.
Verander die naam eventjes in phpMyAdmin en klaar.

Geplaatst: 12 aug 2004, 10:17
door Protoman
he thnx leipo het werkt :thumb: