CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 8/10/2004 5:14:45 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 16 Views: 124 Favorited: 0 Favorite
17 Items, 1 Pages 1 |< << Go >> >|
Boskone
Asp.Net User
FreeTextBox 2.0.7 editor provider.8/10/2004 5:14:45 PM

0

I have created a HtmlEditor provider for DNN that will use FreeTextBox version 2.0.7.
This provider includes an imagegallery with simple file management (upload and delete)

I do not take credit for writing most of this code, most of it was found in the forums at
FreeTextBox.com. I also found some code in the CommunityServer::Forums application.

You can get it at here on the downloads tab.
Please register to download the provider.
Thanks.

As a side note: Now that Dnn has a TextEditor provider, I am wondering why most of the
custom modules still use a hardcoded text editor. It seems to me that there is no need to
even have a provider for your editor if none of the modules use it (except of course for
the built in HTML module).
cjsmitty
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/10/2004 9:22:54 PM

0

Boskone,

I am anxious to try your provider, however after registering several hours ago (and an attempt to have my password sent), I have received no verification code.

There also is no contact information on your site...
~Chris

Net Data Design
706Horsman.us
Boskone
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/11/2004 4:02:36 AM

0

Thats odd, the email system worked before this. I also tested the email configuration just now and recieved the email. I will have to look in to it further.

I manually verified 4 recent registrations so you should be able to log in now.

cjsmitty
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/11/2004 10:29:13 AM

0

The site is still asking for a verification number. And email password is still not working.
~Chris

Net Data Design
706Horsman.us
joldham
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/11/2004 1:15:39 PM

0

Boskone,

For some reason when I click Insert Gallery Image, I am getting images from both of my portals, not just the current portal. Any ideas? When I upload a picture, it is going to the default portal (0) instead of the current portal that I am in (1). It is almost like it is not reading the _portalSettings.PortalId.ToString(), although it has to be getting the 0 PortalId from somewhere.
Jeremy
Boskone
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/11/2004 1:53:39 PM

0

The site is still asking for a verification number. And email password is still not working.

cjsmitty: I guess that must be a bug in DNN. If I manually authorize you, I would think the verification code would not be required. Perhaps your email server thinks my email server is sending spam.

This time I deleted your username. Please try again. I also noticed if you make a mistake with your email address, there is no way to change it.

I added a feedback module to my home tab. (Contact info as you suggested) I also removed the requirement to be registered to download the provider.
Boskone
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/11/2004 2:01:50 PM

0

Joldham: I have this working on my site with 4 portals. I don't have that problem.

Are you using child portals or parent portals for your sites? I am using all parent portals.

joldham
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/11/2004 2:23:25 PM

0

Well on my local server it uses child portals. When I upload to my live site it will use parent portals.

Also, I made a small enhancement to the ImageGal3.aspx file that you might want to include. Line 399 I reads as follows:


<asp:Button id=DeleteImage runat="server" text="Delete"></asp:Button>


This confirms the deletion of the picture.

Let me know if you have any ideas on why it would have trouble with child portals. I am still looking at this as well.
Jeremy
Boskone
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/11/2004 2:47:06 PM

0

Thanks for the enhancement.
I just tried on a test child portal and had the same thing happen. It would seem this bit of code is not correct.


private void Page_Load(object sender, System.EventArgs e) {
//base path could be set using querystring

DotNetNuke.PortalSettings _portalSettings = (DotNetNuke.PortalSettings)HttpContext.Current.Items["PortalSettings"];

//Get the application's URL
if (Request.ApplicationPath == "/")
basePath = Request.ApplicationPath;
else
basePath = Request.ApplicationPath + "/";

thumbPath = basePath;

basePath = basePath + "Portals/" + _portalSettings.PortalId.ToString() + "/";
//basePath += "Images/";

if (!IsPostBack){
ListFiles();
}
}



This may have been written for version 2.0.1 of Dnn and may no longer be correct.
I do not see "PortalID" as a property in the portalsettings class. The closest property I see is GetPortalByAlias.
I am not sure how to use that property, but I will work on it.

Thanks for the feedback.
Boskone
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/11/2004 4:25:30 PM

0

I think the child portal problem is caused by the user being logged off when the pop-up window opens. This happens in other modules as well and has been noted in these forums.
The TabID is not being included in the querystring.

FreeTextBox will only allow one parameter to be passed to the openwindow function and that is the ftbname.

This is the current command for the imagegallery button.
myButton9.ScriptBlock = "function FTB_InsertGalImage(ftbName) {myWindow = window.open('controls/ftb2/ImageGal3.aspx?textboxname=' + ftbName, 'window', 'width=600,height=450');}"



I have changed it to this:
myButton9.ScriptBlock = "function FTB_InsertGalImage(tabid,ftbName) {myWindow = window.open('controls/ftb2/ImageGal3.aspx?tabid=' + tabid + '&textboxname=' + ftbName, 'window', 'width=600,height=450');}"



As I look at the source for the page. FTB generates the following:
<script type="text/javascript">function FTB_InsertGalImage(tabid,ftbName) {myWindow = window.open('controls/ftb2/ImageGal3.aspx?tabid=' + tabid + '&textboxname=' + ftbName, 'window', 'width=600,height=450');}</script>



And the source command when the button is clicked:
<td id="_ctl0__ctl6__ctl0_TextEditor1_FtbCntrl_Button_Insert Gallery Image" class="ctl0__ctl6__ctl0_TextEditor1_FtbCntrl_ButtonNormal" onclick="FTB_InsertGalImage('_ctl0__ctl6__ctl0_TextEditor1_FtbCntrl');" 


Only one parameter is sent.

When the button is clicked, an error is generated : Input string was not in correct format.

I do not know if there is a solution to this or not.
joldham
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/11/2004 4:57:12 PM

0

Boskone,

Not sure if the user is really logged off. I have created an additional ImageGal4.aspx page and add another button for your editor through the provider that searches for a User Gallery and creates the directory if it doesn't exist. I created a folder structre before that is Portals\portalid\UserGallery\userId. The new ImageGal4.aspx reads in the Context.User.Identity.Name property to determine the UserId. My intent was to allow all users to have there own upload folder to upload pictures to. All is working well if we can figure out how to to get the PortalId to populate properly. Will continue looking at it. When we figure this out, I can provide my enhancements if you want. Basically, I modified the ImageGal3.aspx to be read only and ImageGal4.aspx allows users to upload files. I am also going to look at seeing if I can incorporate the two pages together and place a size limit on the User Gallery folder size. RHoward asked a similar question about the Regular FTB (1.0?) in the main forum. I would think this would be a useful enhancement.

Let me know what you think.
Jeremy
Boskone
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/11/2004 5:29:35 PM

0

Thanks Jeremy,
I am sure the user is logged off. When I click 'update' to update the html text, and error message is displayed stating the editor is no longer available, and when I go back to the home tab, I am logged off.
There have been other problems like this noted in the forums about this when pop-up windows are used from child portals.

Yes I am very interested in any of the enhancements you do and apreciate the help.

I saw that post and will keep an eye on it.

I may not be back here for a few days so if you like you can send me an email through my website feedback if you wish.

joldham
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/11/2004 9:36:18 PM

0

Will send you an email with enhancements. I spent most of the day trying to figure out a way to pass the darn PortalId to the ImageGal3.aspx. I tried appending it to the windows.open JS. I am guessing that the FTB strips out unecessary items. I tried using the FTB helper stuff like in the original image gallery "portalid=" etc. Nothing worked. I will keep looking at it.

I basically have the user gallery written. When the window gallery page opens, it looks for the Portal/portalid/UserGallery/userid folder and if it doesn't exists, it creates it. Then when the user uploads a picture, it is added to his/her folder. I am also thinking of writing a module to allow users to create there own Albums selecting from the photos they have uploaded into their user directory. Like I said everything is working with the 0 portal, if I could just access that PortalId.

I also added another button that will pull from the YAF emoticons folder. will send that as well.
Jeremy
Boskone
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/11/2004 10:30:50 PM

0

Thank you Jeremy, I will look forward to that.
Boskone
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/19/2004 2:24:50 PM

0

I have released version 1.1 of the provider.

Changes:
- Improved security of the image gallery function.
-New icons for the Image gallery and user gallery.
-Allows separate directories for different users.
-Inserts smilies from YetAnotherForum.Net (if installed).
-No longer logs off user if running from a child portal.

Thanks to Jeremy Oldham for his assistance.

Boskone
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.8/20/2004 2:16:38 PM

0

I have posted another version of the provider that uses the StaticDustUploadDialog for the image gallery portion.
This is a vey nice web dialog and allows for more options than what I was using before.

You can see more about the Upload Dialog at StaticDust.

WARNING: This provider will NOT work on child portals if you use the gallery functions.
alw8871
Asp.Net User
Re: FreeTextBox 2.0.7 editor provider.9/3/2004 8:57:41 AM

0

Boskone,

I have registered but I didn't receive my e-mail that contains the verification code. My username is the same as the username here. Please e-mail me the verification code. Thanks.




17 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
FreeTextBox FreeTextBox is the most-used HTML editor for ASP.NET. It is compatible with IE on the PC, and Mozilla and Firefox on all platforms. ...
FreeTextBox 2.0.7 editor provider. - ASP.NET Forums FreeTextBox 2.0.7 editor provider. Last post 09-03-2004 5:17 AM by alw8871. 16 replies. Sort Posts: Oldest to newest, Newest to oldest ...
FreeTextBox 2.0.7 editor provider. - ASP.NET Forums I have posted another version of the provider that uses the StaticDustUploadDialog for the image gallery portion. This is a vey nice web dialog and allows ...
FreeTextBox 2.0.0.7 FreeTextBox 2.0.0.7 - FreeTextBox is a Free, customizable ASP. ... Users can therefore edit text and click on buttons to format their text, just like in a text editor. ... Some developers have noted that it has problems in Opera 7. ...
FreeTextBox - New Apple Safari 1.3 and 2.0 now support HTML ... New Apple Safari 1.3 and 2.0 now support HTML Editing/contenteditable ... in Safari support of FreeTextBox editor, as more than 7% of our users use Safari. ... Cutesoft.net editor does offer this since quite some time! ...

FreeTextBox 2.0.7 editor provider. - ng.asp-net-forum.dotnetnuke ... FreeTextBox 2.0.7 editor provider., > ROOT > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules, ...
Message: FreeTextBox has not been correctly installed - ng.asp-net ... (2) Save the FreeTextBox image and javascript files to a location on your website and set up FreeTextBox as follows ... The rich text editor looks normal, but is not functional. ... FreeTextBox - .Net 2.0 Installation Error I keep getting the ... 3.0.x/3.0.7 issue? cannot navigate deployed web site ...
FreeTextBox developer question - ng.asp-net-forum.dotnetnuke ... I'm the developer of FreeTextBox (the rich editor included with DNN). ... Re: FreeTextBox developer question, 4/15/2003 2:12:38 PM ...
FreeTextBox do not change the Language! - ng.asp-net-forum ... If that is really your path the path seems to be wrong and the providers path is .... FreeTextBox 2.0 - Ancora Imparo The FreeTextBox website has not been ...
Advanced Email and News Manager 2.0 for DNN 1.x and DNN 2.x - ng ... Advanced Email and News Manager 2.0 for DNN 1.x and DNN 2.x, ... 4) FCKeditor Provider -- A replacement editor for the built-in FreeTextBox .... 7. digRotate 2 2.1.1 - Standard. Product Rating: (0.00) # of Ratings: 0 . ...






what is the best faq module?

top users dnn 3 compatible beta

idea: upcoming events module

crystal reports release 2 and dotnetnuke... why does viewer give minmax persistance error?!

problem with datagrid

minmax persistance type of cookie requires a moduleid

how to check user role

rogueproeliator v3 modules (free)

advanced ftb provider for dotnetnuke 3.2.0 released

how to write the code of switching from one control to another control in dnn

dotnetnuke retrieve a blob containing a pdf file

help with creating modules in vs2002

announcements module modification

how to get connectionstring in web.config

how can i clear module tables when module is deleted?

why doesn't this work??

custom module documentation

how to call a aspx page inside text/html module?

frustrated - delete moduledefinition

module error

list of rss reader modules?

mypage (my yahoo) customization

datagrids in dnn3

schedulerclient / module settings

is there a module that can automatically include the contributor's bio along with the contributed content?

coohya page redirector – free module. new!

how do i use localizecontroltitle?

site logo

new free module - "downloads"

<%#iseditable%> always evaluating to true

   
  Privacy | Contact Us
All Times Are GMT