From: <td...@cb...> - 2005-03-24 22:45:17
|
Thanks, Paul. Please see below. > See below... > > td...@cb... wrote: >> I can't seem to get html-mail-2.1 to work. I have tried both fckeditor (default configuration) and htmlarea; firefox and IE6 browsers, but no luck . The regular textarea is all that I get in compose window even though the html and plain text radio buttons are displayed. No error messages of any kind. >> Installed: SM-1.4.4 on FreeBSD unix, appache 1.3.29, php 4.3.8 >> Installed plugins: >> compatibility >> debugger >> html-mail >> The compose window source code looks like so: >> ======= >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> >> <title>SquirrelMail</title> >> <script language="JavaScript"> >> <!-- >> function SymError() >> { >> return true; >> } >> window.onerror = SymError; >> var SymRealWinOpen = window.open; >> function SymWinOpen(url, name, attributes) >> { >> return (new Object()); >> } >> window.open = SymWinOpen; >> //--> >> </script> >> <script language="JavaScript" type="text/javascript"> >> <!-- >> function checkForm() { >> var f = document.forms.length; >> var i = 0; >> var pos = -1; >> while( pos == -1 && i < f ) { >> var e = document.forms[i].elements.length; >> var j = 0; >> while( pos == -1 && j < e ) { >> if ( document.forms[i].elements[j].type == 'text' ) { >> pos = j; >> } >> j++; >> } >> i++; >> } >> if( pos >= 0 ) { >> document.forms[i-1].elements[pos].focus(); >> } >> } >> // --> >> </script> >> <style type="text/css"> >> <!-- >> /* avoid stupid IE6 bug with frames and scrollbars */ >> body { >> voice-family: "\"}\""; >> voice-family: inherit; >> width: expression(document.documentElement.clientWidth - 30); >> } >> --> >> </style> >> </head> > > This appears to be caused by a misidentification of your browser (my best guess). Also, can you please tell us where the SymWinOpen stuff comes from? I don't recognize that as SM or plugin code, and want to make sure you don't have something else installed that is conflicting with the plugin. I really don't know where that codes come from. However, I have Mambo installed on the domain, in a different directory of course. > As for the browser identification problem, open the file functions.php in the plugin directory, and search for "function > html_area_is_on_and_is_supported_by_users_browser" (without the quotes). > Just before the return statement therein, please put this: > > echo "Browser is: $browser<br />Version is: $browserVersion<br />"; > > Click the compose lind and report back. Below is what I get in the compose window - it properly identifies the browser, php install, etc plus lots of errors. Notice: Undefined variable: browser in /usr/www/users/username/mail/plugins/html_mail/functions.php on line 36 Stack Trace: html_mail_choose_type_on_the_fly() /usr/www/users/username/mail/plugins/html_mail/functions.php line 36 html_mail_choose_type_on_the_fly() /usr/www/users/username/mail/plugins/html_mail/setup.php line 118 html_mail_compose_button_row() /usr/www/users/username/mail/functions/plugin.php line 53 do_hook(Array[1]) /usr/www/users/username/mail/src/compose.php line 1266 showcomposebuttonrow() /usr/www/users/username/mail/src/compose.php line 1046 showinputform("compose_button_row") /usr/www/users/username/mail/src/compose.php line 560 My browser information: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3 get_browser() information (List) * browser_name_regex = ^.*$ * browser_name_pattern = * * browser = Default Browser * css = 0 * frames = 1 * tables = 1 My web server information: PHP Version 4.3.8 PHP Extensions (List) * 0 = xslt * 1 = xml * 2 = tokenizer * 3 = standard * 4 = session * 5 = recode * 6 = posix * 7 = pdf * 8 = pcre * 9 = overload * 10 = odbc * 11 = mysql * 12 = mhash * 13 = mcrypt * 14 = gettext * 15 = gd * 16 = dba * 17 = db * 18 = curl * 19 = ctype * 20 = calendar * 21 = bcmath * 22 = zlib * 23 = Zend Optimizer SquirrelMail-specific information: Version: 1.4.4 Plugins (List) * 0 = compatibility * 1 = debugger * 2 = html_mail My IMAP server information: Server type: other Server info: * OK [HIDDEN] IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] cbwlondon.org IMAP4rev1 2004.352-p2k server ready at Thu, 24 Mar 2005 17:25:25 -0500 (EST) Capabilities: IMAP4REV1 LITERAL+ IDLE NAMESPACE MAILBOX-REFERRALS BINARY UNSELECT SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND SASL-IR LOGIN-REFERRALS AUTH=LOGIN > >><script DEFER language="javascript" type="text/javascript"> <!-- > > Oops, this actually means that the browser IS being recognized > correctly. Hmph. Well, try the above anyway. Make sure you see the browser and version reported at least two times on the compose screen and we'll go from there. > > Thanks, > > Paul > Thanks, Toni >> <script language="JavaScript"> >> <!-- >> var SymRealOnLoad; >> var SymRealOnUnload; >> function SymOnUnload() >> { >> window.open = SymWinOpen; >> if(SymRealOnUnload != null) >> SymRealOnUnload(); >> } >> function SymOnLoad() >> { >> if(SymRealOnLoad != null) >> SymRealOnLoad(); >> window.open = SymRealWinOpen; >> SymRealOnUnload = window.onunload; >> window.onunload = SymOnUnload; >> } >> SymRealOnLoad = window.onload; >> window.onload = SymOnLoad; >> //--> >> </script> > > -- > > Open Guild, LLC > http://openguild.net/ > Software.Systems.Solutions > |