Sure,
First: All modifications and tricks i use are done without changing the GSP database or code, to stay compatible with any future updates. So all changes can be made without much programming knowledge.
In DNN create a new page with an Iframe. Set the Iframe not to show it's container.
Point the iframe url to the auto-login page for GSP.
To have GSP show nicely in DNN, without the header, i modded the site masterpage.
Since we cannot remove the header (the code will start complaining that objects in the page are missing etc) another solution is to just hide that section. Then the code thinks the objects are still there, but we just don't show them in the end. Again - only not to touch the code itself.
To hide the header section, i've put it in a panel, and hide it. (Visible=false)
Here's my modded masterpage template:
Code:
<%@ Master Language="C#" AutoEventWireup="true" Codebehind="site.master.cs" Inherits="GalleryServerPro.Web.Master.site" MasterPageFile="~/master/global.master" %>
<%@ MasterType TypeName="GalleryServerPro.Web.Master.global" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../uc/footer.ascx" TagName="footer" TagPrefix="uc1" %>
<%@ Register Src="../uc/albummenu.ascx" TagName="albummenu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cpContent" runat="server">
<div id="wrapper">
<div id="header_mod"><!-- MODDED -->
<asp:Panel ID="pnlheaderloginandsearch" runat="server" CssClass="headerloginandsearch" Visible="False"> <!-- MODDED -->
<asp:LoginView ID="LoginView1" runat="server" EnableViewState="false">
<LoggedInTemplate>
<asp:Panel ID="Panel1" runat="server" CssClass="headerloginview" EnableViewState="false">
<asp:LoginName ID="LoginName1" runat="server" meta:resourcekey="LoginName1Resource1" EnableViewState="false" />
<asp:LoginStatus ID="LoginStatus1" runat="server" meta:resourcekey="LoginStatus1Resource1" EnableViewState="false" OnLoggedOut="LoginStatus1_LoggedOut" />
<asp:HyperLink runat="server" NavigateUrl="~/myaccount.aspx" Text="My account" CssClass="fs" />
</asp:Panel>
</LoggedInTemplate>
<AnonymousTemplate>
<asp:Login ID="Login1" runat="server" DisplayRememberMe="False" Orientation="Horizontal" LabelStyle-CssClass="fss" TextBoxStyle-CssClass="loginwidth"
TextLayout="TextOnTop" TitleText="" meta:resourcekey="Login1Resource1" LoginButtonType="Button" LoginButtonStyle-CssClass="loginbutton"
EnableViewState="False" OnLoginError="Login1_LoginError" OnLoggedIn="Login1_LoggedIn">
</asp:Login>
</AnonymousTemplate>
</asp:LoginView>
<asp:Panel ID="pnlSearch" runat="server" DefaultButton="btnSearch" CssClass="search">
<p>
<asp:TextBox ID="txtSearch" runat="server" CssClass="searchbox" />
<asp:Button ID="btnSearch" runat="server" CausesValidation="false" CssClass="searchbutton" PostBackUrl="~/search.aspx"
Text="<%$ Resources:GalleryServerPro, Master_Site_Search_Button_Text%>" ToolTip="<%$ Resources:GalleryServerPro, Master_Site_Search_Button_Tooltip%>" /></p>
</asp:Panel>
</asp:Panel>
<asp:Panel ID="pnlTitle" runat="server" Visible="False"> <!-- MODDED -->
<cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtSearch" WatermarkCssClass="searchboxwatermark searchbox"
WatermarkText="Search">
</cc1:TextBoxWatermarkExtender>
<asp:PlaceHolder ID="phHeaderTitle" runat="server" EnableViewState="false" />
</asp:Panel>
</div>
<uc1:albummenu ID="Albummenu1" runat="server" />
<asp:ContentPlaceHolder ID="cpNavigation" runat="server" />
<div id="content" runat="server" class="content">
<noscript>
<p class="msgwarning">
<asp:Literal ID="litNoScript" runat="server" Text="<%$ Resources:GalleryServerPro, Msg_NoScriptDefaultText%>" EnableViewState="false" /></p>
</noscript>
<asp:ContentPlaceHolder ID="cpContent" runat="server">
</asp:ContentPlaceHolder>
<uc1:footer ID="Footer1" runat="server" />
</div>
</div>
</asp:Content>
Besides the DNN integration and auto-login i also implemented:
Album and object ownership (using triggers on the gsp tables)
Every owner his own name, copyright and weblink on every photo
Windows management application for albums and user management (under development)
The windows applications are strictly for the site owner, to have a much more powerful tool for his management.