|
Page 1 of 1
|
berry
Joined: April 2009
Posts: 4
|
FAP SUPPORT - FAP Thumbnail Pictures Gone Buggy....
Hi, I'm using mx-publisher's version of FAP 1.4.1 and about a month or so ago, the thumbnail pictures which display on the portal index page displayed in full size instead of thumbnail... I didn't do anything or change anything (nor did anyone else).
What is odd is that this problem seems limited only to where thumbnails are displayed:
here: portal index page
and here: menu link to main photo album page
the pictures appear normal though if I click on one of the photos in that 2nd link: it displays at a medium size and not maximum size: Link
Any ideas what is wrong?
* for whatever its worth another poster at MXP also wrote that he's having the same problem in recent weeks too, and he also didn't change/modify anything in that time.
|
#1 Fri 17 Apr, 2009 12:08 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
spydie
Joined: December 2008
Posts: 1796
Location: In the Boxes
|
Re: FAP Thumbnail Pictures Gone Buggy....
Could you post an image of ACP/ALBUM/CONFIG/MINIATURES CONFIG pls.
it looks like somethings wrong there.
and aswell of ACP/CONFIGURATION/LIMIT OF IMAGESIZE
____________ Out of Order
|
#2 Fri 17 Apr, 2009 19:42 |
|
berry
Joined: April 2009
Posts: 4
|
Re: FAP Thumbnail Pictures Gone Buggy....
Hi Spydie - thanks for replying so fast!
I wasn't sure what you were asking for, mod files or ACP settings so I'll post info from both sources.
* all the pictures on my site are .jpg (not .gif)
First the settings from my ACP (because the file codes below make for long reading):
- height and width of "mid-thumbnail" in pixels: 500 each
- maximum pics for each category: 1024
- pics limit per category for each user: 50
- pics limit per category for each moderator: 250
- maximum file size (bytes): 528,000
- maximum file size before resampling (bytes): 528,000
- option enabled for resizing on the fly (to keep image properties as per ACP settings)
- maximum image width before recompression (pixel): 1024
- maximum image height before recompression (pixel): 768
- optimize fpr the version of GD: GD2 selected
- thumbnail cache: yes
- thumbnail size (pixel): 150
- thumbnail quality (1-100): 50
- number of rows on thumbnail page (in categories): 3
- number of columns on thumbnail page (in categories): 4
If what I mentioned is not enough please let me know and I'll try to post screenshots of the settings
Regarding files, I couldn't find a "config" file specifically for FAP, so here's what I have:
"admin_album_cfg" from the "admin" directory of the module:
<?php
/**
*
* @package Mx-Publisher Module - mx_smartor
* @version $Id: admin_album_cfg.php,v 1.10 2008/03/27 14:30:47 orynider Exp $
* @copyright (c) 2003 [smartor_xp@hotmail.com, Smartor] Mx-Publisher Project Team
* @license h**p://opensource.org/licenses/GPL-license.php GNU General Public License v2
*
*/
$phpEx = substr(strrchr(__FILE__, '.'), 1);
if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE
{
define('MXBB_MODULE', false);
define('IN_PHPBB', true);
$phpbb_root_path = $module_root_path = './../';
$mx_mod_path = $phpbb_root_path . 'mx_mod/';
require_once($mx_mod_path . "includes/functions_required.$phpEx");
@define('IN_PORTAL', true);
//Check if forum_hack is installed
if (!isset($mx_root_path))
{
$mx_root_path = './../';
include_once($mx_mod_path . "includes/mx_constants.$phpEx");
include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions.$phpEx");
}
require_once($mx_mod_path . "includes/functions_core.$phpEx");
//Check for cash mod
if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx))
{
define('IN_CASHMOD', true);
}
//@ini_set( 'display_errors', '1' );
error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
//error_reporting(E_ALL & ~E_NOTICE);
define( 'PAGE_MUSIC', -506 ); // If this id generates a conflict with other mods, change it ;)
//
// Instatiate the mx_cache class
//
$mx_cache = new mx_cache();
//
// instatiate the mx_request_vars class
//
$mx_request_vars = new mx_request_vars();
//
// instatiate the mx_user class
//
//$mx_user = new mx_user();
//
// Left Pane Paths
//
$setmodules_admin_path = '';
$setmodules_module_path = "./../";
if (file_exists($phpbb_root_path."modcp.$phpEx")) // phpBB2
{
define('PORTAL_BACKEND', 'phpbb2');
$tplEx = 'tpl';
}
else if (@file_exists($phpbb_root_path."MCP.$phpEx")) // phpBB3
{
define('PORTAL_BACKEND', 'phpbb3');
$tplEx = 'html';
}
}
else
{
define( 'IN_PORTAL', 1 );
define( 'MXBB_MODULE', true );
//
// Main paths
//
$mx_root_path = './../../../';
$module_root_path = './../../../modules/mx_smartor/';
$setmodules_admin_path = 'modules/mx_smartor/admin/';
define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.php' ) );
$phpEx = substr(strrchr(__FILE__, '.'), 1);
}
if( !empty($setmodules) )
{
$filename = basename(__FILE__);
$module['Smartor_Album']['Configuration std'] = $setmodules_admin_path . $filename;
return;
}
//
// Let's set the root dir for phpBB
//
$album_root_path = $module_root_path . 'album_mod/';
require($mx_root_path . 'admin/pagestart.' . $phpEx);
if ( !MXBB_MODULE )
{
require_once($mx_mod_path . "includes/functions_styles.$phpEx");
$mx_user = new mx_user(); // instatiate the mx_user class
//
// Define basic constants
//
$mx_user->page_id = 1;
$mx_user->user_ip = $user_ip;
$mx_user->_init_userprefs();
}
require($module_root_path . 'album_mod/includes/album_constants.'.$phpEx);
// **********************************************************************
// Read language definition
// **********************************************************************
if ( !file_exists($album_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_admin.$phpEx"))
{
include($album_root_path . "language/lang_english/lang_admin.$phpEx");
}
else
{
include($album_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_admin.$phpEx");
}
if ( !file_exists($album_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_main.$phpEx"))
{
include($album_root_path . "language/lang_english/lang_main.$phpEx");
}
else
{
include($album_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_main.$phpEx");
}
//
// Pull all config data
//
$sql = "SELECT * FROM " . ALBUM_CONFIG_TABLE;
if(!$result = $db->sql_query($sql))
{
mx_message_die(CRITICAL_ERROR, "Could not query Album 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;
$new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name];
if( isset($HTTP_POST_VARS['submit']) )
{
$sql = "UPDATE " . ALBUM_CONFIG_TABLE . " SET
config_value = '" . str_replace("\'", "''", $new[$config_name]) . "'
WHERE config_name = '$config_name'";
if( !$db->sql_query($sql) )
{
mx_message_die(GENERAL_ERROR, "Failed to update Album configuration for $config_name", "", __LINE__, __FILE__, $sql);
}
$default_config[$config_name] = $new[$config_name];
$mx_cache->put('album_config', $default_config);
}
}
if( isset($HTTP_POST_VARS['submit']) )
{
$message = $lang['Album_config_updated'] . "<br /><br />" . sprintf($lang['Click_return_album_config'], "<a href=\"" . mx_append_sid("admin_album_cfg.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . mx_append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>");
mx_message_die(GENERAL_MESSAGE, $message);
}
}
$template->set_filenames(array(
"body" => "admin/album_config_body.tpl")
);
$template->assign_vars(array(
'L_ALBUM_CONFIG' => $lang['Album_config'],
'L_ALBUM_CONFIG_EXPLAIN' => $lang['Album_config_explain'],
'S_ALBUM_CONFIG_ACTION' => mx_append_sid('admin_album_cfg.'.$phpEx),
// Index
'INDEX_SHOW_SUBCATS_ENABLED' => ($new['show_index_subcats'] == 1) ? 'checked="checked"' : '',
'INDEX_SHOW_SUBCATS_DISABLED' => ($new['show_index_subcats'] == 0) ? 'checked="checked"' : '',
'INDEX_THUMB_ENABLED' => ($new['show_index_thumb'] == 1) ? 'checked="checked"' : '',
'INDEX_THUMB_DISABLED' => ($new['show_index_thumb'] == 0) ? 'checked="checked"' : '',
'INDEX_TOTAL_PICS_ENABLED' => ($new['show_index_total_pics'] == 1) ? 'checked="checked"' : '',
'INDEX_TOTAL_PICS_DISABLED' => ($new['show_index_total_pics'] == 0) ? 'checked="checked"' : '',
'INDEX_TOTAL_COMMENTS_ENABLED' => ($new['show_index_total_comments'] == 1) ? 'checked="checked"' : '',
'INDEX_TOTAL_COMMENTS_DISABLED' => ($new['show_index_total_comments'] == 0) ? 'checked="checked"' : '',
'INDEX_PICS_ENABLED' => ($new['show_index_pics'] == 1) ? 'checked="checked"' : '',
'INDEX_PICS_DISABLED' => ($new['show_index_pics'] == 0) ? 'checked="checked"' : '',
'INDEX_COMMENTS_ENABLED' => ($new['show_index_comments'] == 1) ? 'checked="checked"' : '',
'INDEX_COMMENTS_DISABLED' => ($new['show_index_comments'] == 0) ? 'checked="checked"' : '',
'INDEX_LAST_COMMENT_ENABLED' => ($new['show_index_last_comment'] == 1) ? 'checked="checked"' : '',
'INDEX_LAST_COMMENT_DISABLED' => ($new['show_index_last_comment'] == 0) ? 'checked="checked"' : '',
'INDEX_LAST_PIC_ENABLED' => ($new['show_index_last_pic'] == 1) ? 'checked="checked"' : '',
'INDEX_LAST_PIC_DISABLED' => ($new['show_index_last_pic'] == 0) ? 'checked="checked"' : '',
'INDEX_LAST_PIC_LV_ENABLED' => ($new['show_index_last_pic_lv'] == 1) ? 'checked="checked"' : '',
'INDEX_LAST_PIC_LV_DISABLED' => ($new['show_index_last_pic_lv'] == 0) ? 'checked="checked"' : '',
'INDEX_LINEBREAK_ENABLED' => ($new['line_break_subcats'] == 1) ? 'checked="checked"' : '',
'INDEX_LINEBREAK_DISABLED' => ($new['line_break_subcats'] == 0) ? 'checked="checked"' : '',
'INDEX_SHOW_PERSONAL_GALLERY_LINK_ENABLED' => ($new['show_personal_gallery_link'] == 1) ? 'checked="checked"' : '',
'INDEX_SHOW_PERSONAL_GALLERY_LINK_DISABLED' => ($new['show_personal_gallery_link'] == 0) ? 'checked="checked"' : '',
'NEW_PIC_CHECK_INTERVAL' => $new['new_pic_check_interval'],
'INDEX_SUPERCELLS_ENABLED' => ($new['index_enable_supercells'] == 1) ? 'checked="checked"' : '',
'INDEX_SUPERCELLS_DISABLED' => ($new['index_enable_supercells'] == 0) ? 'checked="checked"' : '',
'L_INDEX_SHOW_SUBCATS' => $lang['Show_Index_Subcats'],
'L_INDEX_THUMB' => $lang['Show_Index_Thumb'],
'L_INDEX_TOTAL_PICS' => $lang['Show_Index_Total_Pics'],
'L_INDEX_TOTAL_COMMENTS' => $lang['Show_Index_Total_Comments'],
'L_INDEX_PICS' => $lang['Show_Index_Pics'],
'L_INDEX_COMMENTS' => $lang['Show_Index_Comments'],
'L_INDEX_LAST_COMMENT' => $lang['Show_Index_Last_Comment'],
'L_INDEX_LAST_PIC' => $lang['Show_Index_Last_Pic'],
'L_INDEX_LINEBREAK_SUBCATS' => $lang['Line_Break_Subcats'],
'L_SHOW_PERSONAL_GALLERY_LINK' => $lang['Show_Personal_Gallery_Link'],
'L_NEW_PIC_CHECK_INTERVAL' => $lang['New_Pic_Check_Interval'],
'L_NEW_PIC_CHECK_INTERVAL_DESC' => $lang['New_Pic_Check_Interval_Desc'],
'L_NEW_PIC_CHECK_INTERVAL_LV' => $lang['New_Pic_Check_Interval_LV'],
'L_ENABLE_SUPERCELLS' => $lang['Enable_Index_Supercells'],
// Display OTF Link
'L_SHOW_OTF_LINK' => $lang['Show_OTF_Link'],
'SHOW_OTF_LINK_ENABLED' => ($new['show_otf_link'] == 1) ? 'checked="checked"' : '',
'SHOW_OTF_LINK_DISABLED' => ($new['show_otf_link'] == 0) ? 'checked="checked"' : '',
// Display All Pics Link
'L_SHOW_ALL_PICS_LINK' => $lang['Show_AllPics_Link'],
'SHOW_ALL_PICS_LINK_ENABLED' => ($new['show_all_pics_link'] == 1) ? 'checked="checked"' : '',
'SHOW_ALL_PICS_LINK_DISABLED' => ($new['show_all_pics_link'] == 0) ? 'checked="checked"' : '',
// Display PG Link
'L_SHOW_PERSONAL_GALLERIES_LINK' => $lang['Show_PG_Link'],
'SHOW_PERSONAL_GALLERIES_LINK_ENABLED' => ($new['show_personal_galleries_link'] == 1) ? 'checked="checked"' : '',
'SHOW_PERSONAL_GALLERIES_LINK_DISABLED' => ($new['show_personal_galleries_link'] == 0) ? 'checked="checked"' : '',
// Display All Pics Link
'L_SHOW_LAST_COMMENTS' => $lang['Show_Last_Comments'],
'SHOW_LAST_COMMENTS_ENABLED' => ($new['show_last_comments'] == 1) ? 'checked="checked"' : '',
'SHOW_LAST_COMMENTS_DISABLED' => ($new['show_last_comments'] == 0) ? 'checked="checked"' : '',
'MAX_PICS' => $new['max_pics'],
'MAX_FILE_SIZE' => $new['max_file_size'],
'MAX_FILE_SIZE_RESAMPLING' => $new['max_file_size_resampling'],
'MAX_WIDTH' => $new['max_width'],
'MAX_HEIGHT' => $new['max_height'],
'MAX_FILES_TO_UPLOAD' => $new['max_files_to_upload'],
'MAX_PREGENERATED_FIELDS' => $new['max_pregenerated_fields'],
'ROWS_PER_PAGE' => $new['rows_per_page'],
'COLS_PER_PAGE' => $new['cols_per_page'],
'THUMBNAIL_QUALITY' => $new['thumbnail_quality'],
'THUMBNAIL_SIZE' => $new['thumbnail_size'],
'PERSONAL_GALLERY_LIMIT' => $new['personal_gallery_limit'],
'USER_PICS_LIMIT' => $new['user_pics_limit'],
'MOD_PICS_LIMIT' => $new['mod_pics_limit'],
'SET_MEMORY' => $new['set_memory'],
'DYNAMIC_PIC_RESAMPLING_ENABLED' => ($new['dynamic_pic_resampling'] == 1) ? 'checked="checked"' : '',
'DYNAMIC_PIC_RESAMPLING_DISABLED' => ($new['dynamic_pic_resampling'] == 0) ? 'checked="checked"' : '',
'THUMBNAIL_CACHE_ENABLED' => ($new['thumbnail_cache'] == 1) ? 'checked="checked"' : '',
'THUMBNAIL_CACHE_DISABLED' => ($new['thumbnail_cache'] == 0) ? 'checked="checked"' : '',
'JPG_ENABLED' => ($new['jpg_allowed'] == 1) ? 'checked="checked"' : '',
'JPG_DISABLED' => ($new['jpg_allowed'] == 0) ? 'checked="checked"' : '',
'PNG_ENABLED' => ($new['png_allowed'] == 1) ? 'checked="checked"' : '',
'PNG_DISABLED' => ($new['png_allowed'] == 0) ? 'checked="checked"' : '',
'GIF_ENABLED' => ($new['gif_allowed'] == 1) ? 'checked="checked"' : '',
'GIF_DISABLED' => ($new['gif_allowed'] == 0) ? 'checked="checked"' : '',
'PIC_DESC_MAX_LENGTH' => $new['desc_length'],
'HOTLINK_PREVENT_ENABLED' => ($new['hotlink_prevent'] == 1) ? 'checked="checked"' : '',
'HOTLINK_PREVENT_DISABLED' => ($new['hotlink_prevent'] == 0) ? 'checked="checked"' : '',
'HOTLINK_ALLOWED' => $new['hotlink_allowed'],
'PERSONAL_GALLERY_USER' => ($new['personal_gallery'] == ALBUM_USER) ? 'checked="checked"' : '',
'PERSONAL_GALLERY_PRIVATE' => ($new['personal_gallery'] == ALBUM_PRIVATE) ? 'checked="checked"' : '',
'PERSONAL_GALLERY_ADMIN' => ($new['personal_gallery'] == ALBUM_ADMIN) ? 'checked="checked"' : '',
'PERSONAL_GALLERY_VIEW_ALL' => ($new['personal_gallery_view'] == ALBUM_GUEST) ? 'checked="checked"' : '',
'PERSONAL_GALLERY_VIEW_REG' => ($new['personal_gallery_view'] == ALBUM_USER) ? 'checked="checked"' : '',
'PERSONAL_GALLERY_VIEW_PRIVATE' => ($new['personal_gallery_view'] == ALBUM_PRIVATE) ? 'checked="checked"' : '',
// 'RATE_ENABLED' => ($new['rate'] == 1) ? 'checked="checked"' : '',
// 'RATE_DISABLED' => ($new['rate'] == 0) ? 'checked="checked"' : '',
'RATE_SCALE' => $new['rate_scale'],
// 'COMMENT_ENABLED' => ($new['comment'] == 1) ? 'checked="checked"' : '',
// 'COMMENT_DISABLED' => ($new['comment'] == 0) ? 'checked="checked"' : '',
'PROPERCASE_TITLE_ENABLED' => ($new['propercase_pic_title'] == 1) ? 'checked="checked"' : '',
'PROPERCASE_TITLE_DISABLED' => ($new['propercase_pic_title'] == 0) ? 'checked="checked"' : '',
'SHOW_DOWNLOAD_ALWAYS' => ($new['show_download'] == 2) ? 'checked="checked"' : '',
'SHOW_DOWNLOAD_ENABLED' => ($new['show_download'] == 1) ? 'checked="checked"' : '',
'SHOW_DOWNLOAD_DISABLED' => ($new['show_download'] == 0) ? 'checked="checked"' : '',
'NO_GD' => ($new['gd_version'] == 0) ? 'checked="checked"' : '',
'GD_V1' => ($new['gd_version'] == 1) ? 'checked="checked"' : '',
'GD_V2' => ($new['gd_version'] == 2) ? 'checked="checked"' : '',
'SORT_TIME' => ($new['sort_method'] == 'pic_time') ? 'selected="selected"' : '',
'SORT_PIC_TITLE' => ($new['sort_method'] == 'pic_title') ? 'selected="selected"' : '',
'SORT_USERNAME' => ($new['sort_method'] == 'pic_user_id') ? 'selected="selected"' : '',
'SORT_VIEW' => ($new['sort_method'] == 'pic_view_count') ? 'selected="selected"' : '',
'SORT_RATING' => ($new['sort_method'] == 'rating') ? 'selected="selected"' : '',
'SORT_COMMENTS' => ($new['sort_method'] == 'comments') ? 'selected="selected"' : '',
'SORT_NEW_COMMENT' => ($new['sort_method'] == 'new_comment') ? 'selected="selected"' : '',
'SORT_ASC' => ($new['sort_order'] == 'ASC') ? 'selected="selected"' : '',
'SORT_DESC' => ($new['sort_order'] == 'DESC') ? 'selected="selected"' : '',
'FULLPIC_POPUP_ENABLED' => ($new['fullpic_popup'] == 1) ? 'checked="checked"' : '',
'FULLPIC_POPUP_DISABLED' => ($new['fullpic_popup'] == 0) ? 'checked="checked"' : '',
// Added for Gold Begin
'SHOW_IMG_NO_GD_ENABLED' => ($new['show_img_no_gd'] == 1) ? 'checked="checked"' : '',
'SHOW_IMG_NO_GD_DISABLED' => ($new['show_img_no_gd'] == 0) ? 'checked="checked"' : '',
'SHOW_GIF_MID_THUMB_ENABLED' => ($new['show_gif_mid_thumb'] == 1) ? 'checked="checked"' : '',
'SHOW_GIF_MID_THUMB_DISABLED' => ($new['show_gif_mid_thumb'] == 0) ? 'checked="checked"' : '',
'SHOW_PIC_SIZE_ENABLED' => ($new['show_pic_size_on_thumb'] == 1) ? 'checked="checked"' : '',
'SHOW_PIC_SIZE_DISABLED' => ($new['show_pic_size_on_thumb'] == 0) ? 'checked="checked"' : '',
'LB_PREVIEW_ENABLED' => ($new['lb_preview'] == 1) ? 'checked="checked"' : '',
'LB_PREVIEW_DISABLED' => ($new['lb_preview'] == 0) ? 'checked="checked"' : '',
// Added for Gold End
'SHOW_SLIDESHOW_ENABLED' => ($new['show_slideshow'] == 1) ? 'checked="checked"' : '',
'SHOW_SLIDESHOW_DISABLED' => ($new['show_slideshow'] == 0) ? 'checked="checked"' : '',
'SLIDESHOW_SCRIPT_ENABLED' => ($new['slideshow_script'] == 1) ? 'checked="checked"' : '',
'SLIDESHOW_SCRIPT_DISABLED' => ($new['slideshow_script'] == 0) ? 'checked="checked"' : '',
'SHOW_PICS_NAV_ENABLED' => ($new['show_pics_nav'] == 1) ? 'checked="checked"' : '',
'SHOW_PICS_NAV_DISABLED' => ($new['show_pics_nav'] == 0) ? 'checked="checked"' : '',
// Invert Nav Arrows
'INVERT_NAV_ARROWS_ENABLED' => ($new['invert_nav_arrows'] == 1) ? 'checked="checked"' : '',
'INVERT_NAV_ARROWS_DISABLED' => ($new['invert_nav_arrows'] == 0) ? 'checked="checked"' : '',
'SHOW_INLINE_COPYRIGHT_ENABLED' => ($new['show_inline_copyright'] == 1) ? 'checked="checked"' : '',
'SHOW_INLINE_COPYRIGHT_DISABLED' => ($new['show_inline_copyright'] == 0) ? 'checked="checked"' : '',
'NUFFIMAGE_ENABLED' => ($new['enable_nuffimage'] == 1) ? 'checked="checked"' : '',
'NUFFIMAGE_DISABLED' => ($new['enable_nuffimage'] == 0) ? 'checked="checked"' : '',
'SEPIABW_ENABLED' => ($new['enable_sepia_bw'] == 1) ? 'checked="checked"' : '',
'SEPIABW_DISABLED' => ($new['enable_sepia_bw'] == 0) ? 'checked="checked"' : '',
'SHOW_EXIF_ENABLED' => ($new['show_exif'] == 1) ? 'checked="checked"' : '',
'SHOW_EXIF_DISABLED' => ($new['show_exif'] == 0) ? 'checked="checked"' : '',
'BBCODE_ENABLED' => ($new['album_bbcode'] == 1) ? 'checked="checked"' : '',
'BBCODE_DISABLED' => ($new['album_bbcode'] == 0) ? 'checked="checked"' : '',
'S_GUEST' => ALBUM_GUEST,
'S_USER' => ALBUM_USER,
'S_PRIVATE' => ALBUM_PRIVATE,
'S_MOD' => ALBUM_MOD,
'S_ADMIN' => ALBUM_ADMIN,
//--- Language Setup
'L_MAX_PICS' => $lang['Max_pics'],
'L_MAX_FILE_SIZE' => $lang['Max_file_size'],
'L_MAX_FILE_SIZE_RESAMPLING' => $lang['Max_file_size_resampling'],
'L_MAX_WIDTH' => $lang['Max_width'],
'L_MAX_HEIGHT' => $lang['Max_height'],
'L_MAX_FILES_TO_UPLOAD' => $lang['Max_Files_To_Upload'],
'L_DYNAMIC_PIC_RESAMPLING' => $lang['Pic_Resampling'],
'L_ALBUM_UPLOAD_SETTINGS' => $lang['Album_upload_settings'],
'L_MAX_PREGENERATED_FIELDS' => $lang['Max_pregenerated_fields'],
'L_PROPERCASE_TITLE' => $lang['Propercase_pic_title'],
'L_USER_PICS_LIMIT' => $lang['User_pics_limit'],
'L_MOD_PICS_LIMIT' => $lang['Moderator_pics_limit'],
'L_ROWS_PER_PAGE' => $lang['Rows_per_page'],
'L_COLS_PER_PAGE' => $lang['Cols_per_page'],
'L_MANUAL_THUMBNAIL' => $lang['Manual_thumbnail'],
'L_THUMBNAIL_QUALITY' => $lang['Thumbnail_quality'],
'L_THUMBNAIL_SIZE' => $lang['Thumbnail_size'],
'L_THUMBNAIL_CACHE' => $lang['Thumbnail_cache'],
'L_JPG_ALLOWED' => $lang['JPG_allowed'],
'L_PNG_ALLOWED' => $lang['PNG_allowed'],
'L_GIF_ALLOWED' => $lang['GIF_allowed'],
'L_PIC_DESC_MAX_LENGTH' => $lang['Pic_Desc_Max_Length'],
'L_HOTLINK_PREVENT' => $lang['Hotlink_prevent'],
'L_HOTLINK_ALLOWED' => $lang['Hotlink_allowed'],
'L_PERSONAL_GALLERY' => $lang['Personal_gallery'],
'L_PERSONAL_GALLERY_LIMIT' => $lang['Personal_gallery_limit'],
'L_PERSONAL_GALLERY_VIEW' => $lang['Personal_gallery_view'],
'L_RATE_SYSTEM' => $lang['Rate_system'],
'L_RATE_SCALE' => $lang['Rate_Scale'],
'L_COMMENT_SYSTEM' => $lang['Comment_system'],
'L_SHOW_DOWNLOAD' => $lang['Show_Download'],
'L_GD_VERSION' => $lang['GD_version'],
'L_THUMBNAIL_SETTINGS' => $lang['Thumbnail_Settings'],
'L_EXTRA_SETTINGS' => $lang['Extra_Settings'],
'L_DEFAULT_SORT_METHOD' => $lang['Default_Sort_Method'],
'L_TIME' => $lang['Time'],
'L_PIC_TITLE' => $lang['Pic_Title'],
'L_USERNAME' => $lang['Sort_Username'],
'L_VIEW' => $lang['View'],
'L_RATING' => $lang['Rating'],
'L_COMMENTS' => $lang['Comments'],
'L_NEW_COMMENT' => $lang['New_Comment'],
'L_DEFAULT_SORT_ORDER' => $lang['Default_Sort_Order'],
'L_ASC' => $lang['Sort_Ascending'],
'L_DESC' => $lang['Sort_Descending'],
'L_FULLPIC_POPUP' => $lang['Fullpic_Popup'],
'L_GUEST' => $lang['Forum_ALL'],
'L_REG' => $lang['Forum_REG'],
'L_PRIVATE' => $lang['Forum_PRIVATE'],
'L_MOD' => $lang['Forum_MOD'],
'L_ADMIN' => $lang['Forum_ADMIN'],
// Added for Gold Begin
'L_SHOW_IMG_NO_GD' => $lang['Show_IMG_No_GD'],
'L_SHOW_GIF_MID_THUMB' => $lang['Show_GIF_MidThumb'],
'L_SHOW_PIC_SIZE' => $lang['Show_Pic_Size'],
'L_LB_PREVIEW' => $lang['LB_Preview'],
'L_LB_PREVIEW_EXPLAIN' => $lang['LB_Preview_Explain'],
// Added for Gold End
'L_SHOW_SLIDESHOW' => $lang['Show_Slideshow'],
'L_SHOW_SLIDESHOW_SCRIPT' => $lang['Show_Slideshow_Script'],
'L_SHOW_PICS_NAV' => $lang['Show_Pics_Nav'],
'L_INVERT_NAV_ARROWS' => $lang['Invert_Nav_Arrows'],
'L_SHOW_INLINE_COPYRIGHT' => $lang['Show_Inline_Copyright'],
'L_ENABLE_NUFFIMAGE' => $lang['Enable_Nuffimage'],
'L_ENABLE_SEPIA_BW' => $lang['Enable_Sepia_BW'],
'L_SHOW_EXIF' => $lang['Show_EXIF_Info'],
'L_ENABLE_BBCODE' => $lang['Enable_BBCode'],
'L_ALBUM_DEBUG_MODE' => $lang['Album_debug_mode'],
'L_SET_MEMORY' => $lang['Set_Memory'],
'L_SET_MEMORY_EXPLAIN' => $lang['Set_Memory_Explain'],
'L_DISABLED' => $lang['Disabled'],
'L_ENABLED' => $lang['Enabled'],
'L_YES' => $lang['Yes'],
'L_NO' => $lang['No'],
'L_ALWAYS' => $lang['SP_Always'],
'L_SUBMIT' => $lang['Submit'],
'L_RESET' => $lang['Reset'])
);
$template->pparse("body");
include($mx_root_path . 'admin/page_footer_admin.'.$phpEx);
/* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */
?>
this is the "album.php" file from the mod:
<?php
/**
*
* @package Mx-Publisher Module - mx_smartor
* @version $Id: album.php,v 1.26 2008/09/05 03:18:49 orynider Exp $
* @copyright (c) 2007 [orynider@rdslink.ro, OryNider] Mx-Publisher Development Team
* @license h**p://opensource.org/licenses/GPL-license.php GNU General Public License v2
*
*/
/******************************************************************
* MODIFICATIONS
* ---------------
* started : Saturday, January 18, 2004
* copyright : © Volodymyr (CLowN) Skoryk
* email : blaatimmy72@yahoo.com
* version : 1.5
*
* MODIFICATIONS:
* -added images to rating, insted of number for rating
* -added random pictures
* -added highest rated pictures (@ MarkFulton.com)
* -coment # for categories
* -last comment in categories
* -modified for mx_smartor by MXP Team
* -modified as MXP Addon based on FAP by Mighty Gorgon
*
*******************************************************************/
//
// ERROR HANDLING
//
//error_reporting( E_ALL );
//ini_set('display_errors', '1');
$phpEx = substr(strrchr(__FILE__, '.'), 1);
if (@file_exists( './viewtopic.' . $phpEx )) // -------------------------------------------- phpBB MOD MODE
{
define('MXBB_MODULE', false);
define('IN_PHPBB', true);
$phpbb_root_path = $module_root_path = './';
$mx_mod_path = $phpbb_root_path . 'mx_mod/';
include($phpbb_root_path . 'common.' . $phpEx);
include($mx_mod_path . "includes/functions_required.$phpEx");
//Check if forum_hack is installed
if (!isset($mx_root_path))
{
$mx_root_path = './';
@define('IN_PORTAL', true);
include_once($mx_mod_path . "includes/mx_constants.$phpEx");
include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions.$phpEx");
}
else
{
@define('IN_PORTAL', true);
include_once($mx_root_path . "includes/mx_constants.$phpEx");
include_once($mx_root_path . "includes/shared/phpbb2/includes/functions.$phpEx");
//Redefine mx_root_path to include phpbb page_tail.php
$mx_root_path = $phpbb_root_path;
}
require($mx_mod_path . "includes/functions_core.$phpEx");
require($mx_mod_path . "includes/functions_styles.$phpEx");
//Check for cash mod
if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx))
{
define('IN_CASHMOD', true);
}
//@ini_set( 'display_errors', '1' );
error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
//error_reporting(E_ALL & ~E_NOTICE);
define( 'PAGE_KB', -502 ); // If this id generates a conflict with other mods, change it ;)
//
// Instatiate the mx_cache class
//
$mx_cache = new mx_cache();
//
// Get mxBB config settings
//
//$portal_config = $mx_cache->obtain_mxbb_config();
//
// instatiate the mx_request_vars class
//
$mx_request_vars = new mx_request_vars();
//
// Page selector
//
$page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1);
$is_block = false;
//
// instatiate the mx_user class
//
$mx_user = new mx_user();
if (file_exists("./modcp.$phpEx")) // phpBB2
{
define('PORTAL_BACKEND', 'phpbb2');
$tplEx = 'tpl';
//
// Start user session
// - populate $userdata and $lang
//
$mx_user->init($user_ip, $page_id, false);
//init_userprefs($userdata);
$mx_user->init_style(); //Overwrite template class
/*
$mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x
if (!$userdata['user_level'] == ADMIN)
{
die('Only admins may run this script!!!');
}
*/
include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx);
include_once($phpbb_root_path . 'includes/functions_post.' . $phpEx);
}
else if (@file_exists("./MCP.$phpEx")) // phpBB3
{
define('PORTAL_BACKEND', 'phpbb3');
$tplEx = 'html';
//
// Start user session
// - populate $userdata and $lang
//
$mx_user->init($user_ip, $page_id, false);
$user->setup();
//
// End session management
//
/*
$mx_user->set_module_default_style('_core'); // For compatibility with core 2.8.x
if ($userdata['user_type'] != USER_FOUNDER)
{
die('Only admins may run this script!!!');
}
*/
include_once($mx_mod_path . "includes/shared/phpbb2/includes/bbcode.$phpEx");
include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions_post.$phpEx");
}
else
{
die('Copy this file in phpbb_root_path were is your viewtopic.php file!!!');
}
}
else
{
if( !defined('IN_PORTAL') || !is_object($mx_block))
{
define('IN_PORTAL', true);
define('MXBB_MODULE', true);
$mx_root_path = '../../';
$module_root_path = $mx_root_path . 'modules/mx_smartor/';
//
// Let's include some stuff...
//
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($mx_root_path . 'common.' . $phpEx);
//
// Page selector
//
$page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1);
//
// Start user session
// - populate $userdata and $lang
//
$mx_user->init($user_ip, $page_id, false);
//
// Load and instatiate CORE (page) and block classes
//
$mx_page->init($page_id);
//
// Initiate user style (template + theme) management
// - populate $theme, $images and initiate $template.
//
$mx_user->page_id = $page_id;
$mx_user->user_ip = $user_ip;
$mx_user->_init_userprefs();
$mx_user->init_style();
$block_id = ( !empty($HTTP_GET_VARS['block_id']) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id'];
if( empty($block_id) )
{
$sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'Smartor_album' LIMIT 1";
if(!$result = $db->sql_query($sql))
{
mx_message_die(GENERAL_ERROR, "Could not query Smartor_Album module information", "", __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$block_id = $row['block_id'];
}
$is_block = FALSE;
}
else
{
define('MXBB_MODULE', true);
//
// Read block Configuration
$title = $mx_block->block_info['block_title'];
$block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' );
$is_block = true;
global $images, $is_block;
}
}
//
// Get general album information
//
$album_root_path = $module_root_path . 'album_mod/';
include($album_root_path . 'album_common.'.$phpEx);
//
// Nav switch for mx
//
// ---------------------
// Check $album_user_id
// ---------------------
if (isset ($_POST['user_id']))
{
$album_user_id = intval($_POST['user_id']);
}
elseif (isset ($_GET['user_id']))
{
$album_user_id = intval($_GET['user_id']);
}
else
{
// if no user_id was supplied then we aren't going to show a personal gallery category
$album_user_id = $userdata['user_id'];
}
//$full_uri = 'http'. ($_SERVER['HTTPS'] ? 's' : null) .'://'. $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$uri = $_SERVER['REQUEST_URI'];
//IE7+ Google traslate fix for Mod-Rewrite
if (@strpos($uri, 'page' . $page_id . '/index'))
{
mx_redirect(@str_replace('/page' . $page_id . '/', '', $uri)); //die("worng request $uri");
}
//
// Mode setting
//
$mode = $mx_request_vars->request('smartor_mode', MX_TYPE_NO_TAGS, 'album_index');
if ( $mode == 'album_cat' )
{
include($album_root_path. 'modules/album_cat.'.$phpEx);
}
else if ( $mode == 'album_comment' )
{
include($album_root_path. 'modules/album_comment.'.$phpEx);
}
else if ( $mode == 'album_comment_delete')
{
include($album_root_path. 'modules/album_comment_delete.'.$phpEx);
}
else if ( $mode == 'album_comment_edit' )
{
include($album_root_path. 'modules/album_comment_edit.'.$phpEx);
}
else if ( $mode == 'album_delete' )
{
include($album_root_path. 'modules/album_delete.'.$phpEx);
}
else if ( $mode == 'album_edit' )
{
include($album_root_path. 'modules/album_edit.'.$phpEx);
}
else if ( $mode == 'album_hotornot' )
{
include($album_root_path. 'modules/album_hotornot.'.$phpEx);
}
else if ( $mode == 'album_modcp' )
{
include($album_root_path. 'modules/album_modcp.'.$phpEx);
}
else if ( $mode == 'album_page' )
{
include($album_root_path. 'modules/album_page.'.$phpEx);
}
else if ( $mode == 'album_personal' )
{
include($album_root_path. 'modules/album_personal.'.$phpEx);
}
else if ( $mode == 'album_personal_index' )
{
include($album_root_path. 'modules/album_personal_index.'.$phpEx);
}
else if ( $mode == 'album_pic' )
{
error_reporting(0); //Errors will coupt thumbnalis
include($album_root_path. 'modules/album_pic.'.$phpEx);
}
else if ( $mode == 'album_picm' )
{
error_reporting(0); //Errors will coupt thumbnalis
include($album_root_path. 'modules/album_picm.'.$phpEx);
}
else if ( $mode == 'album_rate' )
{
include($album_root_path. 'modules/album_rate.'.$phpEx);
}
else if ( $mode == 'album_search' )
{
include($album_root_path. 'modules/album_search.'.$phpEx);
}
else if ( $mode == 'album_showpage' )
{
include($album_root_path. 'modules/album_showpage.'.$phpEx);
}
else if ( $mode == 'album_thumbnail' )
{
error_reporting(0); //Errors will coupt thumbnalis
include($album_root_path. 'modules/album_thumbnail.'.$phpEx);
}
else if ( $mode == 'album_otf_thumbnail' )
{
error_reporting(0); //Errors will coupt thumbnalis
include($album_root_path. 'modules/album_otf_thumbnail.'.$phpEx);
}
else if ( $mode == 'album_upload' )
{
include($album_root_path. 'modules/album_upload.'.$phpEx);
}
else if ( $mode == 'album_download' )
{
include($album_root_path. 'modules/album_download.'.$phpEx);
}
else if ( $mode == 'album_otf' )
{
include($album_root_path. 'modules/album_otf.'.$phpEx);
}
else if ( $mode == 'album_personal_cat_admin' )
{
include($album_root_path. 'modules/album_personal_cat_admin.'.$phpEx);
}
else if ( $mode == 'album_pic_nuffed' )
{
include($album_root_path. 'modules/album_pic_nuffed.'.$phpEx);
}
else if ( $mode == 'album_rdf' )
{
include($album_root_path. 'modules/album_rdf.'.$phpEx);
}
else if ( $mode == 'album_rss' )
{
error_reporting(0); //Errors will coupt xml
include($album_root_path. 'modules/album_rss.'.$phpEx);
}
else if ( $mode == 'album_allpics' )
{
include($album_root_path. 'modules/album_allpics.'.$phpEx);
}
else if ( $mode == 'smilies' )
{
generate_smilies_album('window', PAGE_ALBUM_PICTURE);
exit;
}
else if ( $mode == 'album_jupload' )
{
error_reporting(0); //Errors will coupt xml
include($album_root_path. 'modules/album_jupload.'.$phpEx);
}
else if ( $mode == 'random_personal_thumbnail' )
{
error_reporting(0); //Errors will coupt thumbnalis
include($album_root_path. 'modules/album_personal_random.'.$phpEx);
}
else if(!is_object($mx_block) && MXBB_MODULE)
{
die("Hacking attempt");
}
else
{
if ($album_user_id != ALBUM_PUBLIC_GALLERY)
{
$cat_id = ALBUM_ROOT_CATEGORY;
if (isset ($_POST['mode']))
{
$album_view_mode = strtolower($_POST['smartor_mode']);
}
elseif (isset ($_GET['smartor_mode']))
{
$album_view_mode = strtolower($_GET['smartor_mode']);
}
else
{
$album_view_mode = ALBUM_VIEW_LIST;
}
// make sure that it only contains some valid value
switch ($album_view_mode)
{
case ALBUM_VIEW_ALL:
$album_view_mode = ALBUM_VIEW_ALL;
break;
case ALBUM_VIEW_LIST:
$album_view_mode = ALBUM_VIEW_LIST;
break;
default:
$album_view_mode = '';
}
if (isset ($_POST['cat_id']))
{
$cat_id = intval($_POST['cat_id']);
}
elseif (isset ($_GET['cat_id']))
{
$cat_id = intval($_GET['cat_id']);
}
if ($album_user_id < 1)
{
if (!$userdata['session_logged_in'])
{
$album_user_id = $userdata['user_id'];
// mx_redirect(append_sid($mx_root_path . "login.php?redirect=" . this_smartor_mxurl(), true));
}
else
{
$album_user_id = $userdata['user_id'];
// mx_redirect(append_sid(this_smartor_mxurl()));
}
}
if ($cat_id != ALBUM_ROOT_CATEGORY && $cat_id != album_get_personal_root_id($album_user_id))
{
mx_redirect(append_sid(this_smartor_mxurl("smartor_mode=album_cat")));
}
}
$catrows = array ();
$options = ($album_view_mode == ALBUM_VIEW_LIST ) ? ALBUM_READ_ALL_CATEGORIES|ALBUM_AUTH_VIEW : ALBUM_AUTH_VIEW;
$catrows = album_read_tree($album_user_id, $options);
album_read_tree($album_user_id);
$album_nav_cat_desc = album_make_nav_tree($cat_id, this_smartor_mxurl("smartor_mode=album_cat"), "nav" , $album_user_id);
if ($album_nav_cat_desc != '')
{
$album_nav_cat_desc = ALBUM_NAV_ARROW . $album_nav_cat_desc;
}
// ------------------------------------------------------------------
// Build allowed category-list (for recent pics after here)
// $catrows array now stores all categories which this user can view.
// ------------------------------------------------------------------
$allowed_cat = ''; // For Recent Public Pics below
for ($i = 0; $i < count($catrows); $i ++)
{
// ------------------------------------------------
// Fix by Phea
// ------------------------------------------------
$tmpAccess = album_user_access($catrows[$i]['cat_id'], 0, ALBUM_AUTH_VIEW, 0, 0, 0, 0, 0); // VIEW
if ($tmpAccess['view'] == 1)
{
// ------------------------------------------------
// build list of allowd category id's
// ------------------------------------------------
$allowed_cat .= ($allowed_cat == '') ? $catrows[$i]['cat_id'] : ','.$catrows[$i]['cat_id'];
}
}
//
// END of Categories Index
//
// ------------------------------------------------------------
// Build the sort method and sort order information
// ------------------------------------------------------------
if (isset ($_GET['start']))
{
$start = intval($_GET['start']);
}
elseif (isset ($_POST['start']))
{
$start = intval($_POST['start']);
}
else
{
$start = 0;
}
if (isset ($_GET['sort_method']))
{
switch ($_GET['sort_method'])
{
case 'pic_time' :
$sort_method = 'pic_time';
break;
case 'pic_title' :
$sort_method = 'pic_title';
break;
case 'username' :
$sort_method = 'username';
break;
case 'pic_view_count' :
$sort_method = 'pic_view_count';
break;
case 'rating' :
$sort_method = 'rating';
break;
case 'comments' :
$sort_method = 'comments';
break;
case 'new_comment' :
$sort_method = 'new_comment';
break;
default :
$sort_method = $album_config['sort_method'];
}
}
elseif (isset ($_POST['sort_method']))
{
switch ($_POST['sort_method'])
{
case 'pic_time' :
$sort_method = 'pic_time';
break;
case 'pic_title' :
$sort_method = 'pic_title';
break;
case 'username' :
$sort_method = 'username';
break;
case 'pic_view_count' :
$sort_method = 'pic_view_count';
break;
case 'rating' :
$sort_method = 'rating';
break;
case 'comments' :
$sort_method = 'comments';
break;
case 'new_comment' :
$sort_method = 'new_comment';
break;
default :
$sort_method = $album_config['sort_method'];
}
}
else
{
$sort_method = $album_config['sort_method'];
}
if (isset ($_GET['sort_order']))
{
switch ($_GET['sort_order'])
{
case 'ASC' :
$sort_order = 'ASC';
break;
case 'DESC' :
$sort_order = 'DESC';
break;
default :
$sort_order = $album_config['sort_order'];
}
}
elseif (isset ($_POST['sort_order']))
{
switch ($_POST['sort_order'])
{
case 'ASC' :
$sort_order = 'ASC';
break;
case 'DESC' :
$sort_order = 'DESC';
break;
default :
$sort_order = $album_config['sort_order'];
}
}
else
{
$sort_order = $album_config['sort_order'];
}
// ---------------------------
// additional sorting options
// ---------------------------
if ($album_user_id != ALBUM_PUBLIC_GALLERY)
{
$sort_rating_option = '';
$sort_comments_option = '';
$sort_new_comment_option = '';
if ($album_config['rate'] == 1)
{
$sort_rating_option = '<option value="rating" ';
$sort_rating_option .= ($sort_method == 'rating') ? 'selected="selected"' : '';
$sort_rating_option .= '>'.$lang['Rating'].'</option>';
}
if ($album_config['comment'] == 1)
{
$sort_comments_option = '<option value="comments" ';
$sort_comments_option .= ($sort_method == 'comments') ? 'selected="selected"' : '';
$sort_comments_option .= '>'.$lang['Comments'].'</option>';
$sort_new_comment_option = '<option value="new_comment" ';
$sort_new_comment_option .= ($sort_method == 'new_comment') ? 'selected="selected"' : '';
$sort_new_comment_option .= '>'.$lang['New_Comment'].'</option>';
}
}
/*
+-----------------------
| Start output the page
+-----------------------
*/
$page_title = $lang['Album'];
album_page_header();
$template->set_filenames(array(
'body' => 'album_index_body.tpl')
);
$cols = ($album_sp_config['img_cols'] == 0 ? 4 : $album_sp_config['img_cols']);
$cols_width = (100 / $cols) . '%';
// Last Comments
if ($album_config['show_last_comments'] == 1)
{
album_build_last_comments_info($allowed_cat);
}
// Recent Public Pics
if ($album_sp_config['disp_late'] == 1)
{
album_build_recent_pics($allowed_cat);
}
// Highest Rated Pics
if ($album_sp_config['disp_high'] == 1)
{
album_build_highest_rated_pics($allowed_cat);
}
// Most Viewed Pics
if ($album_sp_config['disp_mostv'] == 1)
{
album_build_most_viewed_pics($allowed_cat);
}
//Random Pics
if ($album_sp_config['disp_rand'] == 1)
{
album_build_random_pics($allowed_cat);
}
$otf_link = ( $userdata['user_level'] == ADMIN ) ? mx_append_sid(this_smartor_mxurl("smartor_mode=album_otf" . '&sid=' . $userdata['session_id'])) : mx_append_sid(this_smartor_mxurl("smartor_mode=album_otf"));
$template->assign_vars(array(
'ALBUM_NAV' => $album_nav_cat_desc,
'S_COLS' => $cols,
'S_COL_WIDTH' => $cols_width,
'TARGET_BLANK' => ($album_config['fullpic_popup']) ? 'target="_blank"' : '',
'L_RAND_PICS' => $lang['Random_Public_Pics'],
'L_RANDOM_PUBLIC_PICS' => $lang['Random_Public_Pics'],
'L_HI_RATINGS' => $lang['Toprated_Public_Pics'],
'L_TOPRATED_PUBLIC_PICS' => $lang['Toprated_Public_Pics'],
'L_RECENT_PUBLIC_PICS' => $lang['Recent_Public_Pics'],
'L_MOST_VIEWED' => $lang['Most_Public_Pics'],
'L_NO_PICS' => $lang['No_Pics'],
'L_PIC_TITLE' => $lang['Pic_Image'],
'L_PIC_ID' => $lang['Pic_ID'],
'L_VIEW' => $lang['View'],
'L_POSTER' => $lang['Pic_Poster'],
'L_POSTED' => $lang['Posted'],
'L_ALBUM_ALLPICS' => $lang['All_Picture_List_Of_User'],
'L_ALBUM_OTF' => $lang['Pic_Gallery'],
'U_ALBUM_ALLPICS' => mx_append_sid(this_smartor_mxurl("smartor_mode=album_allpics")),
'OTF_LINK' => $otf_link,
'U_ALBUM_OTF' => $otf_link,
)
);
// it's a personal gallery, and in the root folder
/*
else
{
if ($album_view_mode == ALBUM_VIEW_LIST)
{
include ($album_root_path . 'album_memberlist.' . $phpEx);
}
else
{
// include our special personal gallery files
// this file holds all the code to handle personal galleries
// except moderation and management of personal gallery categories.
include ($album_root_path . 'album_personal.' . $phpEx);
}
}
*/
album_display_index($album_user_id, ALBUM_ROOT_CATEGORY, true, true, true);
// Generate the page
$template->pparse('body');
album_page_footer();
}
?>
Edited by Chaotic, Fri 17 Apr, 2009 20:32: Added Spoiler BBCode to code wrapper. |
#3 Fri 17 Apr, 2009 20:30 |
|
spydie
Joined: December 2008
Posts: 1796
Location: In the Boxes
|
Re: FAP Thumbnail Pictures Gone Buggy....
i mean this
album config
and image widht limit
____________ Out of Order
|
#4 Fri 17 Apr, 2009 21:27 |
|
berry
Joined: April 2009
Posts: 4
|
Re: FAP Thumbnail Pictures Gone Buggy....
My ACP layout is a little different to yours so I took 3 screenshots; I hope these have the needed information:
|
#5 Fri 17 Apr, 2009 22:20 |
|
spydie
Joined: December 2008
Posts: 1796
Location: In the Boxes
|
Re: FAP Thumbnail Pictures Gone Buggy....
uff
thats MX publisher right??
why don´t you just swap over to IP.
thats easyer to support here aswell.
don´t know how Publisher is handling that album.
the codes and everything is just different to Icy Phoenix.
maybe someone else can give you a hand
____________ Out of Order
|
#6 Fri 17 Apr, 2009 23:29 |
|
berry
Joined: April 2009
Posts: 4
|
Re: FAP Thumbnail Pictures Gone Buggy....
I think I solved the problem: I disabled the thumbnail cache, then cleared the cache. Now the pictures load up and display just fine
Thing is, I have no idea what I did - what does "thumbnail cache" do? Any idea why that would suddenly have became a problem with viewing thumbnail pics?
|
#7 Sat 18 Apr, 2009 00:41 |
|
spydie
Joined: December 2008
Posts: 1796
Location: In the Boxes
|
Re: FAP Thumbnail Pictures Gone Buggy....
maybe it was just to much data for cache.
there should be an option to clean cache up every X days. that should be just fine.
____________ Out of Order
|
#8 Sat 18 Apr, 2009 12:02 |
|
cocosan
Joined: June 2009
Posts: 10
|
Re: FAP Thumbnail Pictures Gone Buggy....
SPAM - REMOVED
|
#9 Fri 26 Jun, 2009 09:18 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|