Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to disable this checkbox?How to disable this checkbox?
Previous
 
Next
New Post
5/3/2007 4:23 AM
 

Hi all,

In my continuing quest for ease of use I want to remove another couple of tick-boxes. In the Links module, when adding a new link, there are two tick-boxes, one for tracking the number of clicks and one for logging the user and date etc.

I've tracked the check-boxes down to line 37 in controls/urlcontrol.ascx and want to set them to visible false, but I also need the tracking box to be un-ticked by default. I can't see what's making it ticked.

The box in question looks like this:

<asp:checkbox id="chkTrack" resourcekey="Track" CssClass="NormalBold" Runat="server" Text="Track?" TextAlign="Right"></asp:checkbox>

Does anyone know how to make it un-ticked by default? Am I even in the right place?

Rob

 
New Post
5/3/2007 4:31 AM
 

please have a look at library/controls/urlcontrol.vb, Line 234:

        Public ReadOnly Property Track() As Boolean
            Get
                If chkTrack.Visible = True Then
                    Track = chkTrack.Checked
                Else
                    Track = False
                End If
            End Get
        End Property

and Line 128

        Public ReadOnly Property Log() As Boolean
            Get
                If chkLog.Visible = True Then
                    Log = chkLog.Checked
                Else
                    Log = False
                End If
            End Get
        End Property

HTH


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/3/2007 4:41 AM
 

w00t fastest reply ever, thanks Leupold

That looks to me like it's in the source code? Bugger.. now I really will have to learn how to compile stuff. Do you have any pointers in your 6k posts !! where someone can learn how to do a basic compile of a module.. I really need to get to grips with it at some point and this may as well be the point.

I've got Visual Web Builder Express downloaded. Is there a basic walkthrough around.. just for doing something like I need to do for this fix?

Thanks for the reply above, looks like it's the right thing.

Rob

 
New Post
5/3/2007 4:50 AM
 

Rob,

the issue is, that the control is compiled with the source into dotnetnuke.dll, you will need VS 2005 Professional to compile the core. Another option is to move the control into a separate project (your modified module) and alter the reference.

But as far as I read this code, both check boxes are automatically disabled, when not shown and as I read your request, this meets exactly your needs - am I wrong?

if you want to ensure that tis works as expected: Try to add some links, call them a few times and check table URLtracking, whether new records have been created.

HTH


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/3/2007 4:59 AM
 

I see, yes, I'd definitely want to avoid building a whole new dotnetnuke.dll just for something minor like this.

I also see what you mean about the code.. it certainly does read like it will make it un-checked if the item is invisible. That's perfect then!

I am a little confused by the second one, which has the same code, but is normally un-checked by default. Even so, i'll test it out now and report back what happens in a few minutes.

Rob

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to disable this checkbox?How to disable this checkbox?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out