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?