copyright

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
6/19/2008 6:23:23 AM
Gravatar
Total Posts 180
Thomas F. Heringer

copyright

I would like to have a changeable copy right appear just above the footer? My first example I like it, however I also have doubts about it working and so I have a second example, which is possibly a little easyer.  I am not sure if it is correct semantically or not? As to the second one my impression is it would work better, but is it correct? I have already set up styles for it in stylelayout and stylecolor.

(1)<div>protected void Page_Load(object sender, EventArgs e)
{
lblYear.Text = DateTime.Now.Year.ToString();
lblEmail.Text = "<a href='mailto:webmaster@"
+ Request.Url.Host.Replace("www.", "") + "'>webmaster</a>";
}</div>

(2)<div id="wrapcopy">&copy; 2006-2008<asp:label runat="server" id="lblYear"></asp:label>Comments, questions, or problems? Contact the <a href="mailto:tfheringer@whybaptist.com">Webmaster</a></div>

6/19/2008 7:07:48 AM
Gravatar
Total Posts 18439

Re: copyright

Hi Thomas,

You are actually trying to do 2 things. The first thing is the automating the year part of a copyright and the second is showing an email link for webmaster. To me these are totally separate things with no connection between them.

Niether of your examples will work for automating the copyright year. Your second example is fine as far as the email link part, except I would note that you are inviting spam displaying this email link. You could just link to a page with a contact form on it instead.

This morning I implemented in 5 minutes a control to do what you want to do with the copyright, however it won't be available until the next release of mojoportal so adding this to your layout.master right now would only cause an error, it would not work. After you upgrade to the next release of mojoportal, you will be able to add a copyright label to your layout.master like this:

<portal:CopyrightLabel id="cl1" runat="server" BeginYear="2006" CopyrightBy="Source Tree Solutions, LLC" />

and it will do the magic of incrementing the year automatically for the current year.

Best,

Joe

6/19/2008 7:45:29 AM
Gravatar
Total Posts 180
Thomas F. Heringer

Re: copyright

Joe, thanks I got an email back from David Neal saying the same thing about having an email link resulting in being inundated with spamers. I definately do not want that. Thanks

You must sign in to post in the forums. This thread is closed to new posts.