hgs yükleme
My Cart (0)  |  My Orders  |  My Downloads  |  My Auction  |  My Account  |  Help


Login |Register        Search

How to using Multiline Text Box for dnn user profiles

                Print      Add To Favorite     Add To Watch List     Contact Author

Creator: host   5/24/2012 11:17:04 AM    Author: Sebastian Leupold   Source: http://www.dotnetnuke.com/Resources/Blogs/EntryId/2906/DotNetNuke-5-Tip-Use-Multiline-Text-Box-for-User-Profile.aspx   Views: 2460    0    0  
Tags:
User Profile Dotnetnuke


Posted by: Sebastian Leupold
12/6/2010  

In many cases, a Rich Text Box is not adequate for publically entered text, e.g. for Biography in user profile. While you may limit displayed toolbars by role (in FCKEditor, CKEditor and dnnWerk Rad Editor providers), it is sometimes preferable, simply to display a plain text box with a vertical scroll bar.
Biography Text box

The necessary control for the profile editor is already contained in DotNetNuke, but not properly registered. To add it, run the following statement from inside Host :: SQL as script:
IF NOT EXISTS (SELECT value FROM
 {databaseOwner}{objectQualifier}Lists
 WHERE ListName ='DataType' AND Value = 'Textbox')
INSERT INTO {databaseOwner}{objectQualifier}Lists
(ListName, Value, Text, DefinitionId, PortalId, SystemList)
VALUES ('DataType', 'TextBox', 'DotNetNuke.UI.WebControls.MultiLineTextEditControl, DotNetNuke', -1, -1, 1)

Now enter Manage Profile Properties in Admin :: User Accounts menu item. Select edit pen for Biography and switch data type to Textbox:
Biography Textbox settings


If a new user registers, he may no enter his bio in a plain text box:
Biography Text box
Which is too small for a bio - ouch.

Unfortunately there is no setting for size - but in this case, CSS is able to help.

Go to Site Settings in Admin menu and add the following lines to the end of the text inside:

.ModSecurityC textarea {
                width: 500px;
                height: 300px;}



Save the Style Sheet (!) and go back to the registration screen:
Biography Textbox

I hope, you like it - have fun using DNN!

Rating People: 7   Average Rating:     

     DnnModule.com is built to provide DNN quality modules and DNN skins, some of them are free, some not. We wish these stuffs (free or not ) can be useful to you.

     Besides that, we also provide a full range of professional services, ranging from web site build, seo, system management, administration, support, senior consultancy and security services. We act as if your development project or network was ours, with care and respect. We are not satisfied until it works the way you want it to, and we don't silently ignore found issues as somebody else's problem.