https://www.icyphoenix.com/viewtopic.php?f=29&t=124 ----------------------------------- Round11 Sun 20 Aug, 2006 01:52 [SOLVED] Album Thumbnails Gone After Upgrade? ----------------------------------- I installed the latest version of XS, and now all my thumbnails for my album are missing. I see the same thing happening here on this site. I searched, but didn't find anything about it. Any suggestions? ----------------------------------- Antonio Mercurio Sun 20 Aug, 2006 08:42 Re: Album Thumbnails Gone After Upgrade? ----------------------------------- Uhm do you have set the mod rewrite? Disable it and the thumbs comes back. ----------------------------------- Antonio Mercurio Sun 20 Aug, 2006 09:28 Re: Album Thumbnails Gone After Upgrade? ----------------------------------- There is something wrong withe the way that the album holds the link: URL_Rewrite generates the link (and is correct) but the html doesn't threath the link as image (if you click on it you'll see the thmb not the image). For now I've solved in that way: OPEN includes/page_header.php SEARC [code linenumbers=false] $url_in = array( '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(/e', '/(?]+>)(/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e'); $url_out = array( "make_url_friendly('6') . '-na1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-vc1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-vf1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-vf1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-vp1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-vt1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-ac1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-at1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-apic1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-apm1.html' . if_query('2') . stripslashes('56') . ''", "'show-pic-asp1.html' . if_query('2') . stripslashes('56') . ''", "'show-pic-full-asp1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-asp1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-aper1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-dc1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-dc1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-df1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-kbc1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-kba1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('5') . '-kbsmp.html' . if_query('1') . stripslashes('45') . ''", "make_url_friendly('5') . '-kbstr.html' . if_query('1') . stripslashes('45') . ''", "make_url_friendly('5') . '-kbsl.html' . if_query('1') . stripslashes('45') . ''", "make_url_friendly('6') . '-pc1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-pa1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('5') . '-psmp.html' . if_query('1') . stripslashes('45') . ''", "make_url_friendly('5') . '-pstr.html' . if_query('1') . stripslashes('45') . ''", "make_url_friendly('5') . '-psl.html' . if_query('1') . stripslashes('45') . ''"); if ( isset($config_mg['url_rw']) && ($config_mg['url_rw'] === '1') ) { $content = preg_replace($url_in, $url_out, $content); } return $content; } [/code] replace with [code linenumbers=false] $url_in = array( '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(/e', '/(?]+>)(/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e', '/(?]+>)(.*?)/e'); $url_out = array( "make_url_friendly('6') . '-na1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-vc1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-vf1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-vf1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-vp1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-vt1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-ac1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-apic1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-apm1.html' . if_query('2') . stripslashes('56') . ''", "'show-pic-asp1.html' . if_query('2') . stripslashes('56') . ''", "'show-pic-full-asp1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-asp1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-aper1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-dc1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-dc1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-df1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-kbc1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-kba1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('5') . '-kbsmp.html' . if_query('1') . stripslashes('45') . ''", "make_url_friendly('5') . '-kbstr.html' . if_query('1') . stripslashes('45') . ''", "make_url_friendly('5') . '-kbsl.html' . if_query('1') . stripslashes('45') . ''", "make_url_friendly('6') . '-pc1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('6') . '-pa1.html' . if_query('2') . stripslashes('56') . ''", "make_url_friendly('5') . '-psmp.html' . if_query('1') . stripslashes('45') . ''", "make_url_friendly('5') . '-pstr.html' . if_query('1') . stripslashes('45') . ''", "make_url_friendly('5') . '-psl.html' . if_query('1') . stripslashes('45') . ''"); if ( isset($config_mg['url_rw']) && ($config_mg['url_rw'] === '1') ) { $content = preg_replace($url_in, $url_out, $content); } return $content; } [/code] simply removed the "thumbs" url rewrited ----------------------------------- Round11 Sun 20 Aug, 2006 10:23 Re: Album Thumbnails Gone After Upgrade? ----------------------------------- Wow, I have nothing like that in my page_tail.php file. [code linenumbers=false]assign_block_vars('switch_footer_table', array( 'FOOTER_TEXT' => $config_mg['footer_table_text'], 'L_STAFF_MESSAGE' => $lang['staff_message'], ) ); } global $do_gzip_compress; include($phpbb_root_path . 'ctracker/ct_footer.'.$phpEx); // Show the overall footer. include_once($phpbb_root_path . 'includes/functions_jr_admin.' . $phpEx); $admin_link = jr_admin_make_admin_link(); $template->set_filenames(array('overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')); //Begin Lo-Fi Mod $lofi = '' . (empty($_COOKIE['lofi']) ? ($lang['Lofi']) : ($lang['Full_Version']) ) . '
'; $template->assign_vars(array( 'L_LOFI' => $lang['Lofi'], 'L_FULL_VERSION' => $lang['Full_Version'], 'LOFI' => $lofi ) ); //End Lo-Fi Mod $template->assign_vars(array( 'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : ''), 'ADMIN_LINK' => $admin_link ) ); if ( $config_mg['page_gen'] == 1 ){ // Page generation time for Admin - BEGIN /* Un-comment the line below to restrict Admins only to view page generation info */ //if( ($userdata['session_logged_in']) and ($userdata['user_level'] == ADMIN) ) //{ $gzip_text = ($board_config['gzip_compress']) ? 'GZIP ' . $lang['Enabled']: 'GZIP ' . $lang['Disabled']; $debug_text = (DEBUG == 1) ? $lang['Debug_On'] : $lang['Debug_Off']; $excuted_queries = $db->num_queries; $mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $endtime = $mtime; $gentime = round(($endtime - $starttime), 4); // You can adjust the number 6 $sql_time = round($db->sql_time, 4); $sql_part = round($sql_time / $gentime * 100); $php_part = 100 - $sql_part; $template->assign_vars(array( 'PAGE_GEN_TIME' => $lang['Page_Generation_Time'], 'GENERATION_TIME' => $gentime, 'NUMBER_QUERIES' => $excuted_queries, 'GZIP_TEXT' => $gzip_text, 'SQL_QUERIES' => $lang['SQL_Queries'], 'SQL_PART' => $sql_part, 'PHP_PART' => $php_part, 'OVERALL_QUERIES_TODAY' => $show_in_footer_today, 'OVERALL_QUERIES_TOP' => $show_in_footer_top, 'OVERALL_PAGES_VIEWED' => $spvt, 'DEBUG_TEXT' => $debug_text, ) ); $template->assign_block_vars('generation_time_switch', array() ); //} // Page generation time for Admin - END } if(!$layout_forum_wide_flag&&$portal_config['portal_tail']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN'))) { $template->set_filenames(array('portal_tail' => 'portal_page_tail.tpl')); portal_parse_blocks($portal_config['default_portal'], TRUE, 'tail'); $template->assign_var('FOOTER_WIDTH', $portal_config['footer_width']); $template->assign_var('PORTAL_TAIL', portal_assign_var_from_handle($template, 'portal_tail')); } $template->pparse('overall_footer'); // // Close our DB connection. // $db->sql_close(); // Compress buffered output if required and send to browser // // // begin keyword urls mod // if( function_exists(ob_gzhandler) && $board_config['gzip_compress'] == 1) { $gzip_contents = rewrite_urls(ob_get_contents()); ob_end_clean(); ob_start('ob_gzhandler'); echo $gzip_contents; ob_end_flush(); } else { $contents = rewrite_urls(ob_get_contents()); ob_end_clean(); echo $contents; global $dbg_starttime; } // // end keyword urls mod // // // end keyword urls mod // exit; ?>[/code] ----------------------------------- Round11 Sun 20 Aug, 2006 10:26 Re: Album Thumbnails Gone After Upgrade? ----------------------------------- Nevermind. Found the code in page_header.php :) Working great! Thanks for the help! ----------------------------------- Antonio Mercurio Sun 20 Aug, 2006 10:37 Re: Album Thumbnails Gone After Upgrade? ----------------------------------- [quote user="Round11" post="837"]Nevermind. Found the code in page_header.php :) Working great! Thanks for the help![/quote] Exact (i was modifing something else in page tail .. sorry) ----------------------------------- dinoyoco Sun 20 Aug, 2006 19:05 Respuesta: Album Thumbnails Gone After Upgrade? ----------------------------------- Thanks, I had he himself problem. Bye ----------------------------------- JANU1535 Sun 20 Aug, 2006 19:08 Respuesta: Album Thumbnails Gone After Upgrade? ----------------------------------- I think that this subject must be an "official" patches. Because I have seen he himself error in all the updates of version. Some see that they solved it executing script to reduce the XS load. Greets. ----------------------------------- zankyw Mon 21 Aug, 2006 16:32 Re: Album Thumbnails Gone After Upgrade? ----------------------------------- Solved using the code posted by [b]Antonio Mercurio[/b] :chef: THanks! ----------------------------------- Mighty Gorgon Sun 27 Aug, 2006 15:53 Re: [SOLVED] Album Thumbnails Gone After Upgrade? ----------------------------------- I've modified the page_header.php in a different way... let me know if it's still working fine. You'll find my modifications in Patch 058-004. Thank you. ----------------------------------- buldo Sun 27 Aug, 2006 20:21 Re: [SOLVED] Album Thumbnails Gone After Upgrade? ----------------------------------- @MG: It's the same problem that was here? ----------------------------------- Mighty Gorgon Sun 27 Aug, 2006 22:12 Re: [SOLVED] Album Thumbnails Gone After Upgrade? ----------------------------------- [quote user="buldo" post="1505"]@MG: It's the same problem that was here?[/quote] Yes... Bicet enabled URL Rewrite when I was on vacation... :wink: Anyway this problem should have been fixed with the latest patches I've released. :up: Let me know if you are still having problems. ----------------------------------- buldo Sun 27 Aug, 2006 22:28 Re: [SOLVED] Album Thumbnails Gone After Upgrade? ----------------------------------- [quote user="Mighty Gorgon" post="1534"]Yes... Bicet enabled URL Rewrite when I was on vacation... :wink:[/quote] I've noticed it :lol: [quote user="Mighty Gorgon" post="1534"]Anyway this problem should have been fixed with the latest patches I've released. :up: Let me know if you are still having problems.[/quote] Are you sure that the problem was only the URL Rewrite? I say this because I'm still using an .htaccess (with URL Rewrite "ON") you provided me BEFORE your vacation and I haven't any problem with thumbnails! :roll: ----------------------------------- Mighty Gorgon Sun 27 Aug, 2006 22:34 Re: [SOLVED] Album Thumbnails Gone After Upgrade? ----------------------------------- The problem is not in HTACCESS... the problem is in [b]page_header.php[/b] :wink: ! ----------------------------------- buldo Sun 27 Aug, 2006 22:38 Re: [SOLVED] Album Thumbnails Gone After Upgrade? ----------------------------------- [quote user="Mighty Gorgon" post="1545"]The problem is not in HTACCESS... the problem is in [b]page_header.php[/b] :wink: ![/quote] Ok, but why does it get out if you enable URL Rw? And, in your opinion, why don't I have the same problem? ----------------------------------- Mighty Gorgon Sun 27 Aug, 2006 22:46 Re: [SOLVED] Album Thumbnails Gone After Upgrade? ----------------------------------- Because there was some wrong conversion patterns in the function... you were not having the problem with URL Rewrite enabled? :shock: ----------------------------------- buldo Sun 27 Aug, 2006 22:53 Re: [SOLVED] Album Thumbnails Gone After Upgrade? ----------------------------------- [quote user="Mighty Gorgon" post="1548"]Because there was some wrong conversion patterns in the function... you were not having the problem with URL Rewrite enabled? :shock:[/quote] [b]YES[/b], I've told you! I've also clear the whole cache but [b]ALL worked perfectly[/b]... So I don't understand why... BTW, the important thing is that [b]NOW[/b]it's no more a bug! :wink: