https://www.icyphoenix.com/viewtopic.php?f=1&t=778&p=6306#p6306
-----------------------------------
Mighty Gorgon
Sun 07 Jan, 2007 00:48

FAP 1.4.0a
-----------------------------------
Hi all.
After more than a month testing FAP 1.4.0, time has come for releasing the new version. I have fixed most of the bugs thanks to the several RC... but even if biggest known bugs should be fixed, some of them may still be hidden behind the corner... :roll:

I did my best to create this package and to ensure that it is as stable as possible. I hope you can enjoy this release without particular issues.

[highlight=#FFFFAA][color=crimson][font=Trebuchet MS][i]This release is dedicated to [b]Artie[/b] who is doing a great job here in supporting this stuff. I really need to thank him because his efforts are allowing me to save some precious free time.[/i][/font][/color][/highlight]

[smiley smilie=4 fontcolor=DD2244 shadowcolor=800000 shieldshadow=1]Thank You Artie![/smiley]

Enjoy FAP 1.4.0a!

[cell class=mg_quotetitle]FAP 1.4.0[/cell][cell class=mg_quotediv][size=18][b][color=crimson]Full Album Pack 1.4.0a[/color][/b][/size]

[size=18][b][color=#228844]DOWNLOAD: [url=http://www.icyphoenix.com/dload.php?action=file&file_id=7]FAP 1.4.0a.[/color][/b][/size]

[size=12][b][color=#FF7722]DOWNLOAD: [url=http://www.icyphoenix.com/dload.php?action=file&file_id=8]FAP 1.4.0 CONTRIB.[/color][/b][/size]

[size=18][b][color=crimson]WARNING: Remember to do a full backup (files and DB) before installing this mod.[/color][/b][/size]

[b][color=darkgreen]What's New[/color][/b]
[list][*]Smartor's Album updated to 2.0.54
[*]Nuffload updated to 1.4.3
[*]Installing/Upgrading script totally rewritten
[*]Thumbnails speed up in cat view (only if enabled)
[*]Removed some common functions and constants from core phpBB files
[*]Possibility to have different watermarks for each category
[*]LightBox with preview when pointing the mouse over thumbnails
[*]Multiple Uploads via FTP and Album OTF
[*]Gallery SlideShow for OTF based on mooshow.
[*]Fixed a couple of security issue
[*]Thumbnails functions totally rewritten now with GIFs support
[*]FAP is now phpBB XS compliant
[*]Fixed some small templates bugs
[*]Added last comment block
[*]Added old thumbnails generation functions and a switch for them
[*]Fixed minor bugs[/list][/cell]

[b]How to upgrade from FAP 1.2.3... click SHOW for step by step instructions![/b]
[spoiler][b]How to upgrade from FAP 1.2.3[/b]

[list][*]Upload [b]fap_install.php[/b] to your phpBB root folder and run it when logged as Admin
[*]Replace all FAP files with the new ones (or use WinMerge to compare your files with the new ones)[/list]

[hr]
Changes in SQL and files from FAP 1.2.3
[codeblock]================================================================================
Changed files from 1.2.3 To 1.4.0
================================================================================
SQL
================================================================================
INSERT INTO `phpbb_album_config` VALUES ('quick_thumbs', '0');
INSERT INTO `phpbb_album_config` VALUES ('set_memory', '0');
INSERT INTO `phpbb_album_config` VALUES ('lb_preview', '0');
INSERT INTO `phpbb_album_config` VALUES ('use_old_pics_gen', '0');
INSERT INTO `phpbb_album_config` VALUES ('show_last_comments', '0');
INSERT INTO `phpbb_album_config` VALUES ('enable_mooshow', '0');
ALTER TABLE `phpbb_album_cat` ADD `cat_wm` TEXT AFTER `cat_desc`;
UPDATE `phpbb_album_config` SET `config_value` = '.0.54' WHERE `config_name` = 'album_version';
UPDATE `phpbb_album_config` SET `config_value` = '1.4.0' WHERE `config_name` = 'fap_version';
================================================================================
Files
================================================================================
All files have been changed and some added since last version, so you should
delete all old files and replace with the new ones.

Remove these files
admin/admin_album_config_clown.php
album_mod/album_nuffimage.php
album_mod/album_watermark.php
album_mod/clown_album_functions.php
templates/subSilver/admin/album_config_clown_general_body.tpl
templates/subSilver/admin/album_config_clown_hotnot_body.tpl
templates/subSilver/admin/album_config_clown_watermark_body.tpl[/codeblock]

Code changes from FAP 1.2.3 in phpBB core files
[codeblock]#
#-----[ OPEN ]------------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------------
#
// Mighty Gorgon - Full Album Pack - BEGIN
include($phpbb_root_path . 'album_mod/album_constants.' . $phpEx);
define('LOGIN_MG', 'login.' . $phpEx);
// Mighty Gorgon - Full Album Pack - END
#
#-----[ REPLACE, WITH ]----------------------------------------
#
// Mighty Gorgon - Full Album Pack - BEGIN
define('ALBUM_MOD_PATH', 'album_mod/');
define('ALBUM_FILES_PATH', 'album_mod/upload/');
include($phpbb_root_path . 'album_mod/album_constants.' . $phpEx);
// Mighty Gorgon - Full Album Pack - END
#
#-----[ FIND ]------------------------------------------------
#
// Mighty Gorgon - Full Album Pack - BEGIN
define('ALBUM_TABLE', $table_prefix.'album');
define('ALBUM_CAT_TABLE', $table_prefix.'album_cat');
define('ALBUM_CONFIG_TABLE', $table_prefix.'album_config');
define('ALBUM_COMMENT_TABLE', $table_prefix.'album_comment');
define('ALBUM_RATE_TABLE', $table_prefix.'album_rate');
// Mighty Gorgon - Full Album Pack - END
#
#-----[ REPLACE, WITH ]----------------------------------------
#
// Mighty Gorgon - Full Album Pack - REMOVED
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
// Mighty Gorgon - Full Album Pack - BEGIN
//--- FLAG operation functions
function setFlag($flags, $flag)
{
	return $flags | $flag;
}
function clearFlag($flags, $flag)
{
	return ($flags & ~$flag);
}
function checkFlag($flags, $flag)
{
	return (($flags & $flag) == $flag) ? true : false;
}
// Mighty Gorgon - Full Album Pack - END
#
#-----[ REPLACE, WITH ]----------------------------------------
#
// Mighty Gorgon - Full Album Pack - REMOVED
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/admin/page_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
/* Mighty Gorgon - Full Album Pack - BEGIN */
.forumline_left {
	background-color: {T_TD_COLOR2};
	border-bottom: 2px {T_TH_COLOR2} solid;
	border-left: 2px {T_TH_COLOR2} solid;
}

.tab_links, a.tab_links:hover, a.tab_links:link, a.tab_links:active, a.tab_links:visited { 
	font-size: 11px;
	color: #FF8866; 
	text-decoration: none;
}

.tab_links_unsel, a.tab_links_unsel:hover, a.tab_links_unsel:link, a.tab_links_unsel:active, a.tab_links_unsel:visited { 
	font-size: 11px;
	color: #FFFFAA; 
	text-decoration: none;
}

a.tab_links:hover, a.tab_links_unsel:hover { 
	text-decoration: underline;
}

.tab_headers, th.tab_headers {
	color: #FF8866; 
	font-size: 11px; 
	font-weight : bold;
	padding-left: 4px;
	padding-right: 8px;
	border: #003366; 
	border-style: solid; 
	border-width: 1px 1px 0px 1px;
	background-color: #006699;
}

.tab_headers_unsel, th.tab_headers_unsel {
	color: #FFFFAA; 
	font-size: 11px; 
	font-weight : bold;
	padding-left: 4px;
	padding-right: 8px;
	border: #336699; 
	border-style: solid; 
	border-width: 1px 1px 0px 1px;
	background-color: #6699AA;
}

.tab_border {
	background-color: #888888;
	border: 1px;
}

.filler, th.filler {
	background-color:#6699AA; 
	background-image:none;
}

.picframe{
	display: block;
	background-color: #FFFFFF;
	border: 1px solid #555555;
	padding: 2px 6px 2px 6px;
	position: relative;
	bottom: 2px;
	right: 2px;
}

.picshadow{
	background-color: #888888;
	color: inherit;
	margin-left: 4px;
	margin-top: 4px;
}
/* Mighty Gorgon - Full Album Pack - END */
#
#-----[ REPLACE, WITH ]----------------------------------------
#
/* Mighty Gorgon - Full Album Pack - REMOVED */
#
#-----[ FIND ]------------------------------------------------
#
</head>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<link>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
</head>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<link>
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM[/codeblock][/spoiler]


P.S.: If you're having problems with thumbnails generation, you will find in ACP an option to enable old thumbnails generation... :roll:

P.P.S.: There is an hidden (not really hidden... :lol: ) feature in FAP 1.4.0 which is not fully tested, but maybe if you are curious enough to be able to find and activate it... you'll be also lucky enough to have it working fine! :lol:


