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 ForumsEventsEventsRemove Event List Time ReferenceRemove Event List Time Reference
Previous
 
Next
New Post
12/5/2006 1:33 PM
 
Hi,
Is there anyway to remove the time zone at the bottom of a Event List?  For example:

XYZ
(UTC -05:00) Eastern Time (US & Canada)

I'd like to remove the "
(UTC -05:00) Eastern Time (US & Canada)"

Do you use Oracle?  Then try GoldFish.Net

Get it from CNET Download.com! 

 
New Post
12/5/2006 11:30 PM
 

Although it is best not to modify core modules, this one is simple and benign.  Just remember that when you upgrade in the future, the change will be overwritten.

To make the change, open the file ..\DesktopModules\Evens\EventList.ascx, add the attribute and value Visible="False" to the <asp:Label> server control with id="NoScheduledEvents", resave the file, and upload it to the host server:  Do NOT simply delete the server control as it is referenced in the codebehind. The only other drawback is that should the EventList have no events scheduled for the time period shown, the message stating this may not be shown either.

<

asp:label id="NoScheduledEvents" runat="server" CssClass="NormalBold" Visible="False" />

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
12/6/2006 8:54 AM
 
Is there anyway to do it by the EventList container instance?  For example, I have two Event Lists, one on my main page, one on another.  I want the one on the main page to not have it, while the other one having it?

Do you use Oracle?  Then try GoldFish.Net

Get it from CNET Download.com! 

 
New Post
12/6/2006 8:14 PM
 

Needing two instances of the EventList - one with and the other without the time zone display would be a problem with this simple fix.  Short of adding a new "DisplayTimeZone" setting to the ModuleSettings page and checking it in the Page_Load of EventList.ascx.vb to set the visibility of the asp:Label control, I don't know any other way.  This would, of course, require a recompile of the module's dll using VS2003.

I just thought of another way that might work, provided that a container's CSS (style sheet) overrides that of the contained module:

1. Change the CssClass of the asp:Label control in EventList.ascx to a name (let's say "EventListTimeZone" of your choosing. It is now set for "NormalBold".
2. Define two containers - one with its container.css style sheet having the declaration block for the EventListTimeZone class selector set to match that of the "NormalBold" declaration, the second one with its container.css style sheeting having the declaration block for the EventListTimeZone class selector having the declaration "display: none".
2. When you want the Time Zone to display, use the first container. When you want no Time Zone displayed, use the second container.

A real kludge, but it might work without the problems of seriously modifying the event list module and having to recompile. Let me know if you try this!


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsRemove Event List Time ReferenceRemove Event List Time Reference


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