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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsSimple modificationSimple modification
Previous
 
Next
New Post
11/7/2007 3:04 PM
 

Hello all,

I want to make a simple change to the events module, I want the Event Name to not show up on the month calendar, but to show up when hovering over it, instead of having the description hover over it.


I changed the following in EventMonth.ascx.vb:

                    dailyLink.Text = "<br><img src=" + ResolveUrl("navlink.gif") + " border=0 align=absmiddle> " + objEvent.EventName.Trim

to

                    dailyLink.Text = "<br><img src=" + ResolveUrl("navlink.gif") + " border=0 align=absmiddle> "


And I changed:

  ' See If Description Tooltip to be added
                    If CType(Settings("eventtooltip"), Boolean) Then
                        dailyLink.Attributes.Add("onMouseOver", "ShowTip('" + System.Web.HttpUtility.HtmlDecode("<b>" + objEvent.EventTimeBegin.ToString("g") + " - " + objEvent.EventTimeBegin.AddMinutes(objEvent.Duration).ToString("g") + "</b><br>  " + objEvent.EventDesc).Replace(vbCrLf, "").Trim.Replace("'", "\'") + "');")
                        dailyLink.Attributes.Add("onMouseOut", "HideTip();")
                    End If

To:

If CType(Settings("eventtooltip"), Boolean) Then
                        dailyLink.Attributes.Add("onMouseOver", "ShowTip('" + System.Web.HttpUtility.HtmlDecode("<b>" + objEvent.EventTimeBegin.ToString("g") + " - " + objEvent.EventTimeBegin.AddMinutes(objEvent.Duration).ToString("g") + "</b><br>  " + objEvent.EventName).Replace(vbCrLf, "").Trim.Replace("'", "\'") + "');")
                        dailyLink.Attributes.Add("onMouseOut", "HideTip();")
                    End If


Should be pretty simple.


Here's the complicated part...


How do I get the site to recompile?


I downloaded the Event Source and converted it to work in Visual Studio 2007,Hello all,

I want to make a simple change to the events module, I want the Event Name to not show up on the month calendar, but to show up when hovering over it, instead of having the description hover over it.


I changed the following in EventMonth.ascx.vb:

                    dailyLink.Text = "<br><img src=" + ResolveUrl("navlink.gif") + " border=0 align=absmiddle> " + objEvent.EventName.Trim

to

                    dailyLink.Text = "<br><img src=" + ResolveUrl("navlink.gif") + " border=0 align=absmiddle> "


And I changed:

  ' See If Description Tooltip to be added
                    If CType(Settings("eventtooltip"), Boolean) Then
                        dailyLink.Attributes.Add("onMouseOver", "ShowTip('" + System.Web.HttpUtility.HtmlDecode("<b>" + objEvent.EventTimeBegin.ToString("g") + " - " + objEvent.EventTimeBegin.AddMinutes(objEvent.Duration).ToString("g") + "</b><br>  " + objEvent.EventDesc).Replace(vbCrLf, "").Trim.Replace("'", "\'") + "');")
                        dailyLink.Attributes.Add("onMouseOut", "HideTip();")
                    End If

To:

If CType(Settings("eventtooltip"), Boolean) Then
                        dailyLink.Attributes.Add("onMouseOver", "ShowTip('" + System.Web.HttpUtility.HtmlDecode("<b>" + objEvent.EventTimeBegin.ToString("g") + " - " + objEvent.EventTimeBegin.AddMinutes(objEvent.Duration).ToString("g") + "</b><br>  " + objEvent.EventName).Replace(vbCrLf, "").Trim.Replace("'", "\'") + "');")
                        dailyLink.Attributes.Add("onMouseOut", "HideTip();")
                    End If


Should be pretty simple.


Here's the complicated part...


How do I get the site to recompile?


I downloaded the Event Source and converted it to work in Visual Studio 2007, using Dan Slades excellent directions... and I can build the site, but as soon as I go to install the Events Module I get a ton of errors when it tries to recompile...

I tried to create a new module definition and copy all the source code over, but it was getting really complicated, and I would like a simpler way to make this easy change.

Is there a way I can force the site to recompile the ascx.vb files when I launch it?


  I can build the site, but as soon as I go to install the Events Module I get a ton of errors when it tries to recompile...

I tried to create a new module definition and copy all the source code over, but it was getting really complicated, and I would like a simpler way to make this easy change.

Is there a way I can force the site to recompile the ascx.vb files when I launch it?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsSimple modificationSimple modification


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