Products

Solutions

Resources

Partners

Community

About

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...Skins, Themes, ...Skins, Themes, ...Logo for seasonLogo for season
Previous
 
Next
New Post
12/2/2008 4:47 AM
 

Thnx a lot for the suggestions,

Which way would you prefer? Is it dificult to change/customize an .ascx file?

 
New Post
12/2/2008 12:51 PM
 

Difficult? That depends on who you ask :)

If you're more comfortable with customizing CSS I would look at Dang's approach. If you're a developer and want to play with some code I would look at working with an ASCX file.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
 
New Post
12/3/2008 3:14 AM
 

you wrote "Does anyone know if this is possible in DNN (5) without manually having to change the logofile every season."

Please note that the current DNN5 RC2 release is not meant to be used in production!

 
New Post
12/3/2008 4:22 PM
 

Nice problem BTW, I couldn't resist

In your ASCX add this on top:

<script runat="server">
    Private Function GetSeason() As String
        'Returns the current Season
       
        Dim dDate As Date = Now() ' change Now() to "2008-3-21" , to test other dates
       
        Dim decDate As Decimal = dDate.Month + dDate.Day / 100
        Dim sSeason As String = String.Empty
       
        If decDate > 3.2 And Not decDate > 12.2 Then
            If decDate > 6.2 Then
                If decDate > 9.22 Then
                    sSeason = "Fall"
                Else
                    sSeason = "Summer"
                End If
            Else
                sSeason = "Spring"
            End If
        Else
            sSeason = "Winter"
        End If
       
        Return sSeason
    End Function
   
</script>

This would be your Seasons Logo:

<img src="<%=SkinPath%>Logo<%=GetSeason()%>.png" alt="Season Logo" />

 
New Post
12/11/2008 3:02 PM
 

Thnx a lot Timo for your help!

Greetz, Marcel

Timo Breumelhof wrote
 

Nice problem BTW, I couldn't resist

In your ASCX add this on top:

This would be your Seasons Logo:

Season Logo

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Logo for seasonLogo for season


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