Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

customize or template
famous
#1 Posted : Wednesday, 1 February 2012 3:49:04 PM(UTC)
Rank: Newbie

Joined: 1/02/2012(UTC)
Posts: 3
Location: los angeles

how do I customize or add a template for gallery server pro. I edited the default.aspx file, however it carried over to all the pages. I just want to customize the default page, or the login page. How do I do this?

Thanks
Roger Martin
#2 Posted : Wednesday, 1 February 2012 4:09:16 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

The login page is defined in gs\pages\login.ascx.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
famous
#3 Posted : Wednesday, 1 February 2012 4:42:20 PM(UTC)
Rank: Newbie

Joined: 1/02/2012(UTC)
Posts: 3
Location: los angeles

Maybe I should of asked what I really want to know instead. Quick background (html, php, css), slighttt aspx. I tried altering the login.ascx, however it seem to have broke the site.

I have two urls coming into one site. I would like to show different login pages (html background pictures) for each then they would login to the same site. My first try was to create two different default.aspx' , no dice cause it carries through the whole site like an index page.

How would I do this?

html {
background:#f0f1f2 url(images/thisImage.jpg) no-repeat center center fixed;

-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;

}


Thanks
daveburke
#4 Posted : Wednesday, 1 February 2012 7:31:20 PM(UTC)
daveburke

Rank: Advanced Member

Joined: 12/01/2009(UTC)
Posts: 62
Location: Vermont

Roger may have a far superior approach for you, but here should be one way to apply a style to the login page based on the previous default page.

Most if not all GSP pages inherit from /CodeFiles/GalleryPage.cs, so you could add the stylesheet in a GalleryPage.cs method like AddUserControls() where we can see that the page is the login page (PageId == PageId.login) and then add a CSS based on the Request.UrlReferrer.

It requires some coding, and I don't have access to GSP in Visual Studio so I'm winging it, but it should do the job.

Good luck,
Dave
daveburke attached the following image(s):
daveburke attached the following image(s): gsp0201a.png
Roger Martin
#5 Posted : Wednesday, 1 February 2012 10:23:27 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I like Dave's suggestion. If you prefer javascript, you could do it there, too. That has the advantage of not requiring compilation of the source code. Instead, you just add it to login.ascx.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
famous
#6 Posted : Thursday, 2 February 2012 2:53:38 PM(UTC)
Rank: Newbie

Joined: 1/02/2012(UTC)
Posts: 3
Location: los angeles

Thanks Dave, however I won't be compiling code so that option wouldn't work. The image you attached should help those that compile code, however my only option would probably be the javascript method. Do you have any examples Roger? Thanks

By the way does anybody template or redesign the look? It seems as though most people use as is?
Rss Feed  Atom Feed
Users browsing this topic
Guest (2)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.