https://www.icyphoenix.com/viewtopic.php?f=35&t=2078 ----------------------------------- Vortex Thu 24 May, 2007 14:22 Lang Missing After Having Modified A Block ----------------------------------- That's the confirmation. The message is missing: [img]http://www.icyphoenix.com/files/images/385/snapper1180009165984.png[/img] ----------------------------------- Mighty Gorgon Sat 26 May, 2007 01:23 Re: Lang Missing After Having Modified A Block ----------------------------------- We should need some extra informations to understand what the problem is. Which files did you modify? What are you missing? When did you get that message? ----------------------------------- Vortex Sat 26 May, 2007 10:13 Re: Lang Missing After Having Modified A Block ----------------------------------- Oh, sorry MG. I got that message missing every time I update or modify a block in cms configuration. If I create a new block I got "New block added" if I modify a block I got nothing, as shown in the screenshot. ----------------------------------- jz Sat 26 May, 2007 10:20 Re: Lang Missing After Having Modified A Block ----------------------------------- I think that's all you need to see after editing/adding a new block. If I am not wrong you get that after cliking submit, which finalises the action. What do you thing is missing? ----------------------------------- Vortex Sat 26 May, 2007 10:59 Re: Lang Missing After Having Modified A Block ----------------------------------- [quote user="jz" post="15259"] What do you thing is missing?[/quote] According to lang_cms.php, when I add a block I have: [quote]$lang['Block_added'] = 'Block added';[/quote] So, when I modify it, I thought I would read [quote]$lang['Block_updated'] = 'Block updated';[/quote] ----------------------------------- jz Sat 26 May, 2007 11:19 Re: Lang Missing After Having Modified A Block ----------------------------------- I see what you mean :) I think a lang_var is set wrong in one of the .tpl files ----------------------------------- Vortex Sat 26 May, 2007 12:01 Re: Lang Missing After Having Modified A Block ----------------------------------- I think I fixed it: in cms.php [code linenumbers=false]FIND fix_weight_blocks($l_id); $db->clear_cache('cms_'); $message .= '

' . sprintf($lang['Click_return_blocksadmin'], '', '') . '
'; message_die(GENERAL_MESSAGE, $message); } elseif( $action == 'delete' )[/code] Replace with: [code linenumbers=false] fix_weight_blocks($l_id); $db->clear_cache('cms_'); $message = $lang['Block_updated'] . '

' . sprintf($lang['Click_return_blocksadmin'], '', '') . '
'; message_die(GENERAL_MESSAGE, $message); } elseif( $action == 'delete' )[/code] I applied this on my site and it seems to work, can someone better than me in PHP please check this code? ----------------------------------- jz Sat 26 May, 2007 15:34 Re: Lang Missing After Having Modified A Block ----------------------------------- I think you've done a good job mate.. [img]http://www.icyphoenix.com/files/images/128/snap1_1180186441_480862.jpg[/img] ----------------------------------- Vortex Fri 14 Sep, 2007 17:12 Re: Lang Missing After Having Modified A Block ----------------------------------- [quote user="Vortex" post="15273"]I think I fixed it: in cms.php [code linenumbers=false]FIND fix_weight_blocks($l_id); $db->clear_cache('cms_'); $message .= '

' . sprintf($lang['Click_return_blocksadmin'], '', '') . '
'; message_die(GENERAL_MESSAGE, $message); } elseif( $action == 'delete' )[/code] Replace with: [code linenumbers=false] fix_weight_blocks($l_id); $db->clear_cache('cms_'); $message = $lang['Block_updated'] . '

' . sprintf($lang['Click_return_blocksadmin'], '', '') . '
'; message_die(GENERAL_MESSAGE, $message); } elseif( $action == 'delete' )[/code] I applied this on my site and it seems to work, can someone better than me in PHP please check this code?[/quote] Sorry for bumping, but I upgraded my site just this morning with the latest IP release and I saw that this has not been corrected yet, so I thought it was a good idea ^^ ----------------------------------- Mighty Gorgon Mon 17 Sep, 2007 01:49 Re: Lang Missing After Having Modified A Block ----------------------------------- I'll check and eventually add this. Thanks.