While sending a private message, if the user does not enter the subject and the message and presses the send button, a message is displayed "there was an error. error number -" and the only way the user can leave that frame is by pressing the browser back button.
I made a minute modification to indicate the failure of sending and displaying the cross button. the changes where :
1. In messaging_main.php, in the "if ($msg_result != 0){" condition, put the following code -
2. create small_send_fail.tpl similar to small_send_success.tpl in templates folder.Code:if(messaging_fade_lightbox){ $main_smarty->assign('js_close', "Effect.Fade('overlay');Effect.Fade('view_message' , {afterFinish: function(){document.getElementById('view_message') .innerHTML='loading...';}});"); }else{ $main_smarty->assign('js_close', "document.getElementById('overlay').style.display = 'none';document.getElementById('view_message').sty le.display = 'none';document.getElementById('view_message').innerHTML='loading...';"); } //echo "there was an error. error number " . $msg_result; $main_smarty->display(messaging_tpl_path . 'small_send_fail.tpl');



Reply With Quote



