Lang Missing After Having Modified A Block
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?
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.
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?
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
According to lang_cms.php, when I add a block I have:
So, when I modify it, I thought I would read
jz wrote: [View Post]
According to lang_cms.php, when I add a block I have:
Quote:
So, when I modify it, I thought I would read
Quote:
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
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
Replace with:
I applied this on my site and it seems to work, can someone better than me in PHP please check this code?
in cms.php
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&l_id=' . $redirect_l_id) . '">', '</a>') . '<br />';
message_die(GENERAL_MESSAGE, $message);
}
elseif( $action == 'delete' )
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&l_id=' . $redirect_l_id) . '">', '</a>') . '<br />';
message_die(GENERAL_MESSAGE, $message);
}
elseif( $action == 'delete' )
Replace with:
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&l_id=' . $redirect_l_id) . '">', '</a>') . '<br />';
message_die(GENERAL_MESSAGE, $message);
}
elseif( $action == 'delete' )
$db->clear_cache('cms_');
$message = $lang['Block_updated'] . '<br /><br />' . sprintf($lang['Click_return_blocksadmin'], '<a href="' . append_sid('cms.' . $phpEx . '?mode=blocks&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
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 ^^
Vortex wrote: [View Post]
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 ^^
Page 1 of 1
You cannot post new topicsYou 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.5087s (PHP: 4% SQL: 96%)
SQL queries: 29 - Debug Off - GZIP Enabled