I've put the DesktopCam back on the page after re-skinning .Text. For those that expressed interest, I've packaged up the ASP.NET code required to make it display as well as an example of my PageTemplate.ascx file so that you can do the same if you'd like.
I'm using a program called SCWebCam3 (donation ware) from http://www.harmlesslion.com. It takes a screenshot on a schedule and uploads a thumbnail and a large version via FTP. I posted about it originally in this post.
- Make a good backup of the .Text skin you'll be “playing“ with. :-)
- The DesktopCam control is super simple - it doesn't have to be a control at all...you could just edit the PageTemplate.ascx file and paste the code in there. It's just ASP.NET code to display a thumbnail of my desktop capture as a hyperlink to the larger version which opens in a new window.
- Open up the DesktopCam.ascx file and change the paths to the thumbnail and full-size screenshots to match your configuration. Then, copy the DesktopCam.ascx file to the “Controls” directory of the .Text skin you're using. (Download the DesktopCam.aspx file by clicking here.)
- Edit the PageTemplate.aspx file for the skin you're using with a text editor (or Visual Studio.NET). At the top, you must register the new DesktopCam control so that the PageTemplate.aspx file will be able to call it. To do this, just add the following line at the top of the file somewhere among the other control registrations you'll see: <%@ Register TagPrefix=“uc1“ TagName=“DesktopCam“ Src=“Controls/DesktopCam.ascx“ %>
Next, you need to actually call the DesktopCam control from the PageTemplate in the location you'd like it to be. To call the DesktopCam control, you would add the line: <uc1:DesktopCam id=“DesktopCam1“ runat=“server“></uc1:DesktopCam>
- The placement of the line above will determine where it shows up. I've posted my PageTemplate.ascx file so you can see what I'm talking about. (Download the PageTemplate.ascx file by clicking here.)
- Upload your PageTemplate.ascx file to the root of the directory of the .Text skin you're using. Refresh. You should be done!
I feel like I'm missing something here...let me know if I am.