Recently Viewed...
To help you navigate to pages you most recently visited, select from the links below.
Sharepoint Forums
Product Forums
Newsletter
Dynamic Forms Demonstrations
Page Tags
DNN Modules
SnowCovered Top Sellers

'Relationship Building' and 'Communication' are two essential nuts and bolts for a business to prosper. This module allows you to bridge both of these and easily generate continuous awareness of your web site, products and services. Your prospects and customers will greatly appreciate this featur

A 16-in-1 dnn module.Powerful yet easy to use. Capable of producing a multitude of functions including:Image rotator/Numeric rotator/ Mp3 player/Wmv player/ Flash video player /YouTube video player/Multimedia player / Text-to-speech podcast / Flipping book player/Banner topic player/Silverlight albu

Version 5 of the perennial best-selling tool for creating data-based solutions in DNN without custom programming. This version focuses on greater flexibility, expandability, and ease-of-use.

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to add videos in various format and automatically convert them to flv format, you also can add videos from embed code and play them in our integrated flash video player.

The award winning discussion forum and community solution for DotNetNuke is now even better. When you need to build the best community site, you need the best module, Active Forums!

Gloss is the first ALL COLORS! skin, featuring a powerful XML-based flash and being 100% W3C CSS XHMTL1.0 compliant. Tune it yourself on the fly, changing colors, backgrounds, containers, text color and size, width and more! Brilliant!Available for DNN4 and DNN5

Powerful, Ajax Enabled, Easy to Use. Document Management has never been better. Open-DocumentLibrary allows DotNetNuke users to share and manage documents in a flexible, intelligent way, offering granular control over Folder and Document access.

ALL NEW ! - Minimalist includes skin packs in 12 great colors. Each color has Flat, Gradient and Glass versions. Feature rich XML Flash header, perfect for just about any purpose. 9 Different menu options in each skin pack; 3 horizontal menus, 3 vertical menus and 3 all-new Twin level menus . . .

Live Content uses Web 2.0 approach to provide a Rich User Interface and streamlines content presentation by overlaying content on current page. Overlay images, videos, audio, text/html content, flash, dotnetnuke modules, and external content. Experience the demo...

Ultra Media Gallery is the most popular photo gallery and media gallery solution for DotNetNuke, UMG offers 10 different flash player to browse your gallery with completely different user interface experience.

    |   Register   |   Thursday, January 08, 2009   
Data Springs Product Forums...
Subject: Captcha field textbox cannot be styled
Prev Next
You are not authorized to post a reply.

Author Messages
Tom
Posts:26
going with the flow
going with the flow

04/10/2008 8:03 AM  

I can't use a captcha field for this reason.

I have text and texbox fields which I can style, but the captcha textbox resists styling, I will double-check again in my skin stylesheet...

I think this could easily be fixed by adding a CSS ID to each captcha field's text field, and then telling people to set a style on this ID, since there would only be one captcha per form...

Thank you, Tom

Chad
Posts:2387
river guide
river guide

04/10/2008 10:11 AM  
Tom,

At a quick glance at the code it is setting the Captcha textbox stylesheet class to either NormalRed (if using the Core), DynamicForms_Captcha (if using custom), or the questions field class if you are choosing the override option. I do see that its hard coding the Background color to blue though so I am reviewing this now on a test environment to see if these properties are actually being rendered etc...

-Chad
Tom
Posts:26
going with the flow
going with the flow

04/10/2008 10:35 AM  
Thank you for looking at this.
I wasn't aware of that class, I can try it, I can add this into my stylesheets.
My captcha textbox was showing a standard HTML white background etc.
Using the questions field class override does not work because the captcha image itself AND the textbox (which stays whilte) get styled with this class and that does not look right at all.
Thank you, Tom
P.S. Information is posted on the DNN site itself about making logins persist for more than five (5) minutes so people don't keep having to login over and over again just to answer a forum post.
Tom
Posts:26
going with the flow
going with the flow

04/10/2008 10:55 AM  

I just now tried this style class  It does not work properly.

Here is the code that DF generates for me:

 

 

 




                                   
                                       
                                   
                               

 




<div class="DynamicForms_Captcha" style="width: 300px;">
                                           

                                               


                                           
<input maxlength="6" name="dnn$ctr399$DynamicForms$Captcha_4cd842e3-9be9-4501-8708-b5c18aac09fb" value="" style="width: 300px;" type="text">
                                        <t. It is CaSe Sebr>Please type the text exactly as you see iNsiTivE.

The first part in bold shows that the captcha style is applying incorrectly for me. I don't want the captcha table cell or whatever to to be styled, only its text box.

The second part in bold should be styled like otther textboxes. It is not getting styled at all.

The part in underline is also not displaying properly compared to other similar footers, it is one line lower than it should be. I don't know why, but this wrecks how my form looks if I use a captcha.

Due to the low quality of DNN's rich text editor, I make no guarantees to the readability of the code posted here. Please advise if you would like an email with the code in it.

Thank you, Tom

 

Chad
Posts:2387
river guide
river guide

04/10/2008 11:16 AM  
Tom,

Ok. As I look at this I too confirmed that the stylesheet property is being set at the 'TD' level and not at the input / textbox level. Honestly I cannot find a way to control this as this is a DotNetNuke Web Control and we don't have a lot of say in what the stylesheet property is set too. I am trying to research levelled CSS that might possibly be able to set .input fields underneath the TD stylesheet class that is being set. From all of the controls attributes we set via code I don't see anything that is 'CaptchaField.TextboxField.CSSClass' etc... Only CaptchaField.CSSClass which is what we are setting and its setting the TD tag class and not the input field. I also see other properties for background color, border styles, captcha width and height, but again no textbox or input but stylesheet property that we can set. I would imagine this would come up if you wanted to use custom styles on the standard DNN implemented stylesheet class so ill research that as well (since it should be the same solution)

-Chad
Tom
Posts:26
going with the flow
going with the flow

04/10/2008 11:23 AM  
Thank you for looking at this again.

I repled via email because I could not paste a screen capture into the reply.

I sent a screen capture and the code, which should be easier to read in my email than in this forum thread.

Thank you, Tom
Tom
Posts:26
going with the flow
going with the flow

04/10/2008 11:35 AM  

I have read this...I really really really really don't like DNN any more.

Your comment made me think...

I added input to a class like so in the DF custom CSS:

input, .DynamicForms_Textbox
{
    /* 3.28.08 same as form_textbox in skin.css */
    /* background-color: #FFFFCC;*/
    border: 1px solid #b5c19f;
    padding: 2px 5px;
    background: #FFFFC8; /*ffffc8 or #ffffcc*/
    margin-bottom: 3px;
    margin-top: 3px;
    color: #666666;
    width:500px;
    overflow: hidden;
    font-size: 100%;

}

And this correctly styles the text box but not the captcha div!!

Thank you!! Now I or we have to figure out why the extra top/bottom white-space margins on the input...

More testing needed.

Thank you, Tom

 

Chad
Posts:2387
river guide
river guide

04/10/2008 11:51 AM  
Sweeettt... Lets not bash DNN too much though, its a great framework and after all it is free and open sourced

I am going to flag this thread with several stars in case any other users want or need to set a stylesheet class on a DNN Captcha control. Your stylesheet class would probably work for using Captcha within the core or within our modules.

I am checking on all of the BR tags. if I remember right removing these (its also on the Captcha property) was causing all types of issues on the form but ill find out during testing.


-Chad
Tom
Posts:26
going with the flow
going with the flow

04/10/2008 11:58 AM  
Problem I have come up against so far is that IE7 and FF2.x require different styling!!!

To get the "line spacing" to look right in either browser I need different negative top-margin ang bottom-margin numbers.

To get the captcha IMG styled I have to set an img tag in the Dynamic Forms custom CSS and put some top and bottom margins on that too, again different values for IE and FF, bottom has to be negative, top has to be positive...may remove the label tag and that would help a lot but then I lose consistency of the form's look and feel...so I don't want to do that...I will look at other captcha things over the next few days and update this thread with what I find.

For IE there's conditional styles I think but I should not have to do that...

Maybe I can play with the DynamicForms_Captcha DIV style itself...

I *like* to bash DNN. It's way over-hyped IMNSHO.

Thank you, Tom
Chad
Posts:2387
river guide
river guide

04/10/2008 12:03 PM  

As far as the BR tags within the Captcha Image VS Textbox. This is something that we added because if its not there then DNN defaults this to text 'Enter the code shown above'. When we initially reviewed this we thought this might be better to be empty as you could make use of example text, question header and footer, field label, and other areas of show this. We are thinking now we will set this to the default value for the 2.6 release.

See attached screenshot. The first screenshot represents what happens when you leave it at blank and no BR tag (and is the reason we added the BR tag). The 2nd image on the screenshot shows how the CORE typically renders this if we don't set it at all.

-Chad

 

 






Tom
Posts:26
going with the flow
going with the flow

04/10/2008 12:08 PM  

I understand now.

The BR tag behaves correctly for all my fields actually, then.

It only should be done with
rather than
...You should leave it in, OR give people the OPTION of automatically adding the BR vs. using the core's rendering....

Therefore maybe something else is going on with my captcha field that is messing up its display.

I have figured out the margins to my satisfaction etc., I have some more to do, I will update next week.

BTW do you know anything about what code or class or whatever it is that the CORE uses to emplace that 'Enter the code shown above:'???? If so, then I could style it with a display: none...

Thank you, Tom

Chad
Posts:2387
river guide
river guide

04/10/2008 12:44 PM  
I am not certain, this would have to be included in the DotNetNuke Web Controls source code and not directly in the DotNetNuke project / solution. I am changing this in the 2.6 release (just changed actually) to set this to the 'Default Value' property if you have a default value set, otherwise it will continue to keep it as a BR tag. I am going to respond do your other thread related to line spacing (or at least one you commented on) with a similar response on the question header/footer.
You are not authorized to post a reply.
Forums > Product Discussion - DotNetNuke Modules > Dynamic Forms > Captcha field textbox cannot be styled



ActiveForums 3.7

Copyright 2005 - 2009 by Data Springs, Inc.
Terms Of Use | Privacy Statement