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