Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Lang Missing After Having Modified A Block 
 
That's the confirmation. The message is missing:


 snapper1180009165984
 



 
VortexSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
VortexSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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?
 



 
jzSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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';

 



 
VortexSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
jzSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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?
 



 
VortexSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Lang Missing After Having Modified A Block 
 
I think you've done a good job mate..

snap1_1180186441_480862
 



 
jzSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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 ^^
 



 
VortexSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron