Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 9th, 2006, 05:00 PM
Registered User
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default FCKeditor in wrox blog

Hello

Chapter 6: Wrox blog

I run the application in chapter 6 fine except of the FCKeditor.
The box where it should be is gray, and it seems it's not loading
properly. The path seems correct as changing it gives a message that
the resource cannot be found, while it just hangs if it's the original
path.

Also is there any explanation what the WroxBlog ToolbarSet in FCKeditor
control do, and how to modify it for other projects (location of it).
I tried to use a new version found on the FCKeditor homepage,
and it gave me an error that the WroxBlog toolbar was missing.

regards, nakori.
 
Old June 10th, 2006, 02:57 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi nakori,

Did you try the new version in combination with the existing site and got the gray area? Or did you also get it with the full installation, using version 2.0 of the editor?

Did you try to run the examples that come with the editor's download? Did they work for you?

Look at page 158. At the top, it explains where the toolbar sets are defined, and how that works.

In the definition, you'll see a toolbar setup called FCKConfig.ToolbarSets["Default"]

Below it, you see a toolbarset called WroxBlog. This was basically a copy of the original Default set, but a lot of buttons have been removed. In your new FCK installation, you can copy the existing Default set, rename it to WroxBlog and delete any buttons you don't like. Alternatively, you can copy the existing definition from the installation into your new file, as both sets should be compatible.

Does this help?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old June 10th, 2006, 04:09 PM
Registered User
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply, I found out where to edit the toolbar.

I started a new empty project and put fckeditor in its default.aspx file. This worked fine both for the newest version, and the version you have included in you project files.

However when I put <FCKeditorV2:FCKeditor> and <Register..> lines in its own usercontrol ascx file that I included in the default.aspx it would not render. It just hangs trying to find something. So it looks like my problem is not directly connected to the blog project. (Although I did run the install too and everthing else seems to work)

BasePath="~/FCKeditor/" looks correct (for both files) as anything else will generate a http not found error. But starting the project it looks like the project hangs trying to find something. It will render the first fckeditor found in default.aspx, but not the one included from test.ascx. (tested with no control in default.aspx too)

Anything I forgot to configure?

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 
Old June 10th, 2006, 04:26 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

When you look at the path for the rendered FCK editor, what do you get? Do you see a path you don't expect / doesn't map to the correct folder?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old June 10th, 2006, 07:32 PM
Registered User
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually I got it to work now. Seems for me that I can put FCKeditor in an ascx control only with the updated Bin and FCKeditor folder.
In the project with only the fckeditor I got it rendered with the wrox files in default.aspx, but not in an ascx included file. I copied the project to a new folder, and replaced Bin and FCKeditor folder with the updated versions. This worked.

I tried this with my wrox blog project, copied the entire blog folder to a new one, deleted Bin and FCKeditor folders, and replaced them with the updated ones. It then worked for me.

It may be that it was some old references lurking when I tested the updated files the first time.

On a sidenote, what should the hashcode for the Administrator password
in this project be for the access version.

PasswordHash in Access db for Administrator/Admin123#:
1327E811606505F48CE612A22B2979E6

PasswordHash that I get when I enter Admin123#:
61CC0E405F4B518D264C089AC8B642EF

Administrator/Admin123# worked for me in SQLExpress, but not in Access. I made a new user admin with the same role and Password Admin123# that got my hash above displayed when viewed in Access, and when using a check like
labeltest.Text = FormsAuthentication.HashPasswordForStoringInConfig File(Login1.Password, "MD5");



 
Old June 11th, 2006, 02:48 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, it must be something like that. I tried reproducing the problem here and on two other machines, but the editor worked all the time. Glad it's working now.

Re the password: in the Access database, the password seems to be Admin#123. Not sure what happened here though. I made sure all my chapters used the same user name and password combination, but I guess this one slipped through. If you switch to Access, don't forget to change the roleManager element in the web.config file as well.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrox Blog in C# madAlan BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 22 June 12th, 2011 04:09 AM
Wrox Blog tblessed23 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 16 May 14th, 2007 04:08 PM
Wrox Blog: Viewing individual blog entries Tawanda BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 May 7th, 2007 12:06 PM
Blog with FCKeditor not working in Firefox cwh BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 March 20th, 2007 01:35 AM
Wrox blog suggestions nakori BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 June 15th, 2006 04:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.