Lang Missing After Having Modified A Block


Subject: Lang Missing After Having Modified A Block
That's the confirmation. The message is missing:


snapper1180009165984

Subject: 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?

Subject: 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.

Subject: 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?

Subject: Re: Lang Missing After Having Modified A Block
jz wrote: [View Post]

What do you thing is missing?




According to lang_cms.php, when I add a block I have:

Quote:
$lang['Block_added'] = 'Block added';



So, when I modify it, I thought I would read


Quote:
$lang['Block_updated'] = 'Block updated';

Subject: 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

Subject: Re: Lang Missing After Having Modified A Block
I think I fixed it:



in cms.php



Code: [Download] [Hide] [Select]
FIND

fix_weight_blocks($l_id);
$db->clear_cache('cms_');
$message .= '<br /><br />' . sprintf($lang['Click_return_blocksadmin'], '<a href="' . append_sid('cms.' . $phpEx . '?mode=blocks&amp;l_id=' . $redirect_l_id) . '">', '</a>') . '<br />';
message_die(GENERAL_MESSAGE, $message);
}
elseif( $action == 'delete' )




Replace with:


Code: [Download] [Hide] [Select]
fix_weight_blocks($l_id);
$db->clear_cache('cms_');
$message = $lang['Block_updated'] . '<br /><br />' . sprintf($lang['Click_return_blocksadmin'], '<a href="' . append_sid('cms.' . $phpEx . '?mode=blocks&amp;l_id=' . $redirect_l_id) . '">', '</a>') . '<br />';
message_die(GENERAL_MESSAGE, $message);
}
elseif( $action == 'delete' )




I applied this on my site and it seems to work, can someone better than me in PHP please check this code?

Subject: Re: Lang Missing After Having Modified A Block
I think you've done a good job mate..

snap1_1180186441_480862

Subject: Re: Lang Missing After Having Modified A Block
Vortex wrote: [View Post]
I think I fixed it:



in cms.php



Code: [Download] [Hide] [Select]
FIND

fix_weight_blocks($l_id);
$db->clear_cache('cms_');
$message .= '<br /><br />' . sprintf($lang['Click_return_blocksadmin'], '<a href="' . append_sid('cms.' . $phpEx . '?mode=blocks&amp;l_id=' . $redirect_l_id) . '">', '</a>') . '<br />';
message_die(GENERAL_MESSAGE, $message);
}
elseif( $action == 'delete' )




Replace with:


Code: [Download] [Hide] [Select]
fix_weight_blocks($l_id);
$db->clear_cache('cms_');
$message = $lang['Block_updated'] . '<br /><br />' . sprintf($lang['Click_return_blocksadmin'], '<a href="' . append_sid('cms.' . $phpEx . '?mode=blocks&amp;l_id=' . $redirect_l_id) . '">', '</a>') . '<br />';
message_die(GENERAL_MESSAGE, $message);
}
elseif( $action == 'delete' )




I applied this on my site and it seems to work, can someone better than me in PHP please check this code?





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 ^^

Subject: Re: Lang Missing After Having Modified A Block
I'll check and eventually add this.

Thanks.


Page 1 of 1


  
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

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1061s (PHP: 17% SQL: 83%)
SQL queries: 10 - Debug Off - GZIP Enabled