|
Page 1 of 1
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Lang Missing After Having Modified A Block
That's the confirmation. The message is missing:
|
#1 Thu 24 May, 2007 14:22 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 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?
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#2 Sat 26 May, 2007 01:23 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 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.
|
#3 Sat 26 May, 2007 10:13 |
|
jz 
Joined: August 2006
Posts: 217
Location:  London
|
 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?
|
#4 Sat 26 May, 2007 10:20 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Re: Lang Missing After Having Modified A Block
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';
|
#5 Sat 26 May, 2007 10:59 |
|
jz 
Joined: August 2006
Posts: 217
Location:  London
|
 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
|
#6 Sat 26 May, 2007 11:19 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Re: Lang Missing After Having Modified A Block
I think I fixed it:
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' )
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' )
I applied this on my site and it seems to work, can someone better than me in PHP please check this code?
|
#7 Sat 26 May, 2007 12:01 |
|
jz 
Joined: August 2006
Posts: 217
Location:  London
|
 Re: Lang Missing After Having Modified A Block
I think you've done a good job mate..
|
#8 Sat 26 May, 2007 15:34 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Re: Lang Missing After Having Modified A Block
I think I fixed it:
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' )
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' )
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 ^^
|
#9 Fri 14 Sep, 2007 17:12 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Lang Missing After Having Modified A Block
I'll check and eventually add this.
Thanks.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#10 Mon 17 Sep, 2007 01:49 |
|
|
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
|
|
|
|