Deleting Comments or Moving Pics to another album

Support for IntegraMOD 141

Moderator: Integra Moderator

Deleting Comments or Moving Pics to another album

PostAuthor: .QUACK.Major.Pain » Tue May 15, 2007 2:26 pm

Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: No
Your knowledge: Beginner
Board URL: http://www.aaquacks.com

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

I tried to delete a comment to a specific picture in an album and when I clicked on delete, the error below showed. I then had the option yes/no to continue to delete. I clicked yes and it was deleted. Just not sure why I got the error.

Fatal error: Cannot redeclare album_user_access() (previously declared in /home/k1jon/public_html/forum/album_mod/album_functions.php:47) in /home/k1jon/public_html/forum/album_mod/album_functions.php on line 47

--------------------------------------------------------

I tried to move a picture to another album, and got the error below. Also when trying to move, you get a drop down menu to choose a different album, but the other albums don't show. Just the album that the picture is in.

Fatal error: Cannot redeclare album_user_access() (previously declared in /home/k1jon/public_html/forum/album_mod/album_functions.php:47) in /home/k1jon/public_html/forum/album_mod/album_functions.php on line 47
Last edited by .QUACK.Major.Pain on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Deleting Comments or Moving Pics to another album

PostAuthor: .QUACK.Major.Pain » Tue May 15, 2007 2:28 pm

Also getting the same error after clicking edit.
Last edited by .QUACK.Major.Pain on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Deleting Comments or Moving Pics to another album

PostAuthor: Frost » Tue May 15, 2007 9:29 pm

Hmm, some other mod(s)? might be using album_functions.php too

Show me your album_common.php I'm curious

Meanwhile I'm going to go check my site for the same errors now
Last edited by Frost on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Deleting Comments or Moving Pics to another album

PostAuthor: .QUACK.Major.Pain » Wed May 16, 2007 4:41 am

<?php
/***************************************************************************
* album_common.php
* -------------------
* begin : Saturday, February 01, 2003
* copyright : (C) 2003 Smartor
* email : <a>smartor_xp@hotmail.com</a>
*
* $Id: album_common.php,v 2.0.2 2003/03/03 22:38:24 ngoctu Exp $
*
*
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/

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

define('IN_ALBUM', TRUE);

// Include Language
$language = $board_config['default_lang'];

if ( !file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_album_main.'.$phpEx) )
{
$language = 'english';
}

include($phpbb_root_path . 'language/lang_' . $language . '/lang_album_main.' . $phpEx);


// Get Album Config
$sql = "SELECT *
FROM ". ALBUM_CONFIG_TABLE;
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not query Album config information", "", __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$album_config_name = $row['config_name'];
$album_config_value = $row['config_value'];
$album_config[$album_config_name] = $album_config_value;
}

if($album_config['album_debug_mode'] == 1)
{
$GLOBALS['album_debug_enabled'] = true;
}
else
{
$GLOBALS['album_debug_enabled'] = false;
}

if ($album_config['show_img_no_gd'] == 1)
{
//$thumb_size = 'width="' . $album_config['thumbnail_size'] . '" height="' . $album_config['thumbnail_size'] . '"';
$thumb_size = 'width="' . $album_config['thumbnail_size'] . '"';
}
else
{
$thumb_size = '';
}

if ($album_config['show_inline_copyright'] == 0)
{
$album_copyright = '<div><b>Photo Album Powered by</b><br>';
$album_copyright .= 'Photo Album 2' . $album_config['album_version'] . ' &copy; 2002-2003 <a>Smartor</a><br>';
$album_copyright .= 'Volodymyr (CLowN) Skoryk's SP1 Addon 1.5.1<br>';
$album_copyright .= 'IdleVoid's Album Category Hierarchy 1.3.0<br>';
$album_copyright .= '<a>Mighty Gorgon</a> Full Album Pack ' . $album_config['fap_version'];
$album_copyright .= '</div>';
}
else
{
$album_copyright = '<div><b>Photo Album Powered by:</b> ';
$album_copyright .= 'Photo Album 2' . $album_config['album_version'] . ' <a>Smartor</a> - ';
$album_copyright .= 'CLowN SP1 Addon 1.5.1 - ';
$album_copyright .= 'IdleVoid's Album CH 1.3.0 - ';
$album_copyright .= '<a>Mighty Gorgon</a> Full Album Pack ' . $album_config['fap_version'];
$album_copyright .= '</div>';
}

$template->assign_vars(array(
'NAV_SEP' => $lang['Nav_Separator'],
'NAV_DOT' => '•',
'IMG_ALBUM_FOLDER' => $images['pm_outbox'],
'IMG_ALBUM_SUBFOLDER' => $images['pm_inbox'],
'IMG_ALBUM_FOLDER_SMALL' => $images['folder'],
'IMG_ALBUM_FOLDER_SMALL_NEW' => $images['folder_new'],
'IMG_ALBUM_SUBFOLDER_SMALL' => $images['icon_minipost'],
'IMG_ALBUM_SUBFOLDER_SMALL_NEW' => $images['icon_minipost_new'],
'IMG_ALBUM_FOLDER_NEW' => $images['pm_savebox'],
'IMG_ALBUM_FOLDER_SS' => $images['pm_sentbox'],
'IMG_SLIDESHOW' => $images['icon_latest_reply'],
'IMG_SLIDESHOW_NEW' => $images['icon_newest_reply'],
'IMG_DOT_ORANGE' => '<img>',
'IMG_DOT_BLUE' => '<img>',
'IMG_DOT_GREEN' => '<img>',
'IMG_DOT_YELLOW' => '<img>',
'SPACER' => $images['spacer'],

'THUMB_SIZE' => $thumb_size,

'U_ALBUM_SEARCH' => append_sid('album_search.' . $phpEx),
'U_ALBUM_UPLOAD' => append_sid('album_upload.' . $phpEx),

'ALBUM_VERSION' => '2' . $album_config['album_version'],
'ALBUM_COPYRIGHT' => $album_copyright
)
);

if (!isset($album_root_path) || empty($album_root_path))
{
$album_root_path = $phpbb_root_path . 'album_mod/';
}

include($album_root_path . 'album_functions.' . $phpEx);
include($album_root_path . 'album_hierarchy_functions.' . $phpEx);
include($album_root_path . 'clown_album_functions.' . $phpEx);

?>
Last edited by .QUACK.Major.Pain on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Deleting Comments or Moving Pics to another album

PostAuthor: Frost » Wed May 16, 2007 7:29 am

Well, I've an idea

Let's see if it will work...

replace your code with mine:
Code: Select all
<php>sql_query($sql)){message_die(GENERAL_ERROR, "Could not query Album config information", "", __LINE__, __FILE__, $sql);}while( $row = $db->sql_fetchrow($result) ){$album_config_name = $row['config_name'];$album_config_value = $row['config_value'];$album_config[$album_config_name] = $album_config_value;}  if($album_config['album_debug_mode'] == 1){$GLOBALS['album_debug_enabled'] = true;}else{$GLOBALS['album_debug_enabled'] = false;}  if ($album_config['show_img_no_gd'] == 1){//$thumb_size = 'width="' . $album_config['thumbnail_size'] . '" height="' . $album_config['thumbnail_size'] . '"';$thumb_size = 'width="' . $album_config['thumbnail_size'] . '"';}else{$thumb_size = '';}  if ($album_config['show_inline_copyright'] == 0){$album_copyright = '<div><b>Photo Album Powered by</b><br>';$album_copyright .= 'Photo Album 2' . $album_config['album_version'] . ' &copy; 2002-2003 <a>Smartor</a><br>';$album_copyright .= 'Volodymyr (CLowN) Skoryk's SP1 Addon 1.5.1<br>';$album_copyright .= 'IdleVoid's Album Category Hierarchy 1.3.0<br>';$album_copyright .= '<a>Mighty Gorgon</a> Full Album Pack ' . $album_config['fap_version'];$album_copyright .= '</div>';}else{$album_copyright = '<div><b>Photo Album Powered by:</b> ';$album_copyright .= 'Photo Album 2' . $album_config['album_version'] . ' <a>Smartor</a> - ';$album_copyright .= 'CLowN SP1 Addon 1.5.1 - ';$album_copyright .= 'IdleVoid's Album CH 1.3.0 - ';$album_copyright .= '<a>Mighty Gorgon</a> Full Album Pack ' . $album_config['fap_version'];$album_copyright .= '</div>';}  $template->assign_vars(array('NAV_SEP' => $lang['Nav_Separator'],'NAV_DOT' => 'à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¢','IMG_ALBUM_FOLDER' => $images['pm_outbox'],'IMG_ALBUM_SUBFOLDER' => $images['pm_inbox'],'IMG_ALBUM_FOLDER_SMALL' => $images['folder'],'IMG_ALBUM_FOLDER_SMALL_NEW' => $images['folder_new'],'IMG_ALBUM_SUBFOLDER_SMALL' => $images['icon_minipost'],'IMG_ALBUM_SUBFOLDER_SMALL_NEW' => $images['icon_minipost_new'],'IMG_ALBUM_FOLDER_NEW' => $images['pm_savebox'],'IMG_ALBUM_FOLDER_SS' => $images['pm_sentbox'],'IMG_SLIDESHOW' => $images['icon_latest_reply'],'IMG_SLIDESHOW_NEW' => $images['icon_newest_reply'],'IMG_DOT_ORANGE' => '<img>','IMG_DOT_BLUE' => '<img>','IMG_DOT_GREEN' => '<img>','IMG_DOT_YELLOW' => '<img>','SPACER' => $images['spacer'],  'THUMB_SIZE' => $thumb_size,  'U_ALBUM_SEARCH' => append_sid('album_search.' . $phpEx),'U_ALBUM_UPLOAD' => append_sid('album_upload.' . $phpEx),  'ALBUM_VERSION' => '2' . $album_config['album_version'],'ALBUM_COPYRIGHT' => $album_copyright));  if (!isset($album_root_path) || empty($album_root_path)){$album_root_path = $phpbb_root_path . 'album_mod/';}  include_once($album_root_path . 'album_functions.' . $phpEx);include_once($album_root_path . 'album_hierarchy_functions.' . $phpEx);include_once($album_root_path . 'clown_album_functions.' . $phpEx);  ?>


Remember to back-up your original first, just in case <img>

Let me know
Last edited by Frost on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Deleting Comments or Moving Pics to another album

PostAuthor: .QUACK.Major.Pain » Wed May 16, 2007 12:55 pm

OK - that cleared up all the error messages.

Next problem is that I can't move it.
Move screen appears, and when I click on the drop down menu, the only album that shows is the album the pictures is in.
We have 6 personal albums and 1 public album - they don't show in the drop down list.
So I am unable to move it.
Last edited by .QUACK.Major.Pain on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00


Return to IntegraMOD 141

Who is online

Registered users: Helter, Unspecified Bot