Ha, IE7! -FreeTextBox is incompatible with IE7 in dudu CNBlogs DotText 1.0 Beta 2

Source: Internet
Author: User

Some time ago, I was asked by my friends. the Text0.95 program was upgraded to dudu's CNBlogs DotText 1.0 Beta 2. It mainly looked at his verification code :) And looked pretty good. Two or three problems were found shortly after the result:
(1) FreeTextBox that Post and comment cannot be used.
(2) You cannot see the previous comments in the background management comments, but you can see the comments after the system is upgraded.
(3) A Post page can view previous comments, but the blog owner cannot delete the comments.

After carefully checking the installation steps, I had to read the code honestly and decompiled the FreeTextBox control dll. The first problem was that the control code only determined IE5, IE6, I don't know IE7 :) Because I used IE7Beta3 (now I installed the published IE7), I couldn't see FreeTextBox. I changed the two parts and then compiled it. The steps are as follows:
(1) DottextWeb \ FreeTextBox \ FreeTextBox-MainScript.js put the original isIE = (ie5 | ie55 | ie6 )? _ T: _ f; changed
] Ie7 = (_ nv. indexOf ("msie 7.0 ")! =-1 )? _ T: _ f;
IsIE = (ie5 | ie55 | ie6 | ie7 )? _ T: _ f;
(2) decompile DottextWeb/bin/FreeTextBox. dll with Reflector, save the code to FreeTextBox_Source, and make a slight modification so that it can be compiled.
(3) FreeTextBox_Source \ FreeTextBoxControls. Suppor \ BrowserInfo. cs
Info1.isIE5plus = (text1.IndexOf ("MSIE 5")> 0) | (text1.IndexOf ("MSIE 6")> 0); changed
Info1.isIE5plus = (text1.IndexOf ("MSIE 5")> 0) | (text1.IndexOf ("MSIE 6")> 0) | (text1.IndexOf ("MSIE 7")> 0 );
(4) modify the FreeTextBox of the DottextWeb and Admin projects to reference the new FreeTextBox. dll. (or add the FreeTextBox_Source project to the current solution and point two references to the project) to compile the solution.

The problem above (2) (3) is that the dudu version uses posttype = 8 to represent comment, and the original database uses posttype = 3 to represent comment, you need to update the original database star blog_content set posttype = 8 where posttype = 3

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.