PDA

View Full Version : Slide show without the show


Mossback
Jun-12-2009, 03:32 PM
I just need something to fill some space on the front page of the SmugMug site. I liken it to a slide show, I would eventually like to have a slide show, but do not have the time a tthis point to make a cool slide show.

Is there a code to just add one picture and all is awesome? one day maybe do the slide show thing

J Allen
Jun-12-2009, 04:57 PM
See if you like this.....


Change your whole CSS box to this:




/*=====Nav-Bar=====*/
#navcontainer ul
{margin: 0;
padding: 0;
list-style-type: none;
text-align: center;}

#navcontainer ul li
{display: inline;}

#navcontainer ul li a
{text-decoration: none;
padding: .2em 1em;
color: #fff;
background-color: #036;}

#navcontainer ul li a:hover
{color: #fff;
background-color: #369;}







/*=====Homepage=====*/
.galleries #bioBox,
.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #featuredBox
{display: none;}
.galleries #galleriesBox,
.galleries #categoriesBox,
.galleries #featuredBox
{display: block;}





/*=====Bio-Box=====*/
#bioBox .photo
{display:none;}
#userBio
{text-align: center !important;}
#bioBox
{background: none;}






/*====No More Border====*/
.galleryPage,
.boxBottom,
.boxTop,
.box
{border:none !important;}






/*====No More Background====*/
.boxBottom,
.boxTop,
.box
{background:none !important;}





/*====Tighten Homepage====*/
#userBio {padding:0;}
#homepage {padding-top:0;}
.homepage #breadcrumb
{display:none;}







/*=====Galleries 4 Across=====*/
.miniBox {width:122px; text-align:center; height:210px; margin:0 28px;}
.miniBox .photo {float:none; width:122px; height:auto; _height:1px;}
.miniBox .albumTitle {width:122px;}
.miniBox .description {width:122px;}
.miniBox .updated {width:122px;}
.loggedIn .miniBox {height:auto; min-height:300px;}
.loggedIn .miniBox .smbuttons {margin:0 auto; width:122px;}
.loggedIn .miniBox input {width:122px;}
.loggedIn .miniBox textarea {width:112px;}
.boxBottom .albumLarge {width:192px; height:350px; text-align:center; margin:0 24px;}
.albumLarge .photoLarge {float:none; width:192px; height:auto; _height:1px;}
.albumLarge .albumTitle {width:192px;}
.albumLarge .description {width:192px;}
.albumLarge .updated {width:192px;}
.loggedIn .boxBottom .albumLarge {height:auto; min-height:450px;}
.loggedIn .albumLarge .smbuttons {margin:0 auto; width:192px;}
.loggedIn .albumLarge input {width:192px;}
.loggedIn .albumLarge textarea {width:182px;}







/*=====Wide Gallery Thumbs=====*/
.galleries #homepage,
#content.userKeywords,
#header_wrapper, #footer_wrapper, #cobrand_footer,
#category, #subcategory, #header,
#smugmug, .smugmug #header, .smugmug #footer
{margin-left: 15px;
margin-right: 15px;
min-width: 755px;
width: auto;
_width: expression
(document.documentElement.clientWidth < 790? "760px" : "auto");}


#homepage
{width:1100px !important;
text-align:center !important;
margin: 0 auto !important;}





/*=====No Titles!!=====*/
#galleryTitle,
#categoryTitle,
#subcategoryTitle,
#subCatGalleryTitle
{display:none;}






Go to your bio-box:

http://dgrin.smugmug.com/photos/454835860_Nv8MV-XL-1.jpg......



and add this code:




<html>
<script>
var ssConfig = {
AlbumID: '8525757',
newWindow: 'false',
transparent: 'true',
imgAlign: 'top',
showLogo: 'false',
clickUrl: 'http://gusinskyphoto.com/galleries',
showThumbs: 'false',
showButtons: 'false',
crossFadeSpeed: '350'
};

SM.flash.insertSlideshow(600, 600, ssConfig, 'transparent');
</script>
</html>






Add this to your "Bottom Java-Script Box":


//===Start 2nd Home Page/Galleries Page====

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");





Then add this red line to your Custom header box:



<div id="navcontainer">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/galleries">Galleries</a></li>
<li><a href="/Hockey">Hockey</a></li>
<li><a href="/Baseball">Baseball</a></li>
<li><a href="/Private%20Galleries">Private Galleries</a></li>
<li><a href="/Gusinsky">Gusinsky</a></li>
<li><a href="/gallery/8524373_EiU5c">Aboutn me</a></li>
<li><a href="/I%20want%20extra%20photos%20of%20my%20player">I want extra photos of my player</a></li>
<li><a href="javascript:norobotmail('Gusinsky', 'Comcast.net')">Email me</a></li>
</ul>
</div>





:ear

Mossback
Jun-13-2009, 05:15 AM
What is all that going to do for me J Allen?

J Allen
Jun-13-2009, 05:18 AM
This will give you a homepage slideshow...save a copy of your current customization to fall back on in case you dont like it :thumb

Mossback
Jun-13-2009, 06:23 AM
This will give you a homepage slideshow...save a copy of your current customization to fall back on in case you dont like it :thumb

I obviously have done something wrong, check it out.

J Allen
Jun-14-2009, 07:59 AM
I obviously have done something wrong, check it out.

On your "homepage layout" tools button, make sure that "your bio" is checked.

Mossback
Jun-15-2009, 08:32 AM
On your "homepage layout" tools button, make sure that "your bio" is checked.
SWEET! I have a slide show showing..........two questions.

1) How do I put in only certain photos?

2)For now, till I have time. Can i simply just put one photo in the slide show. i know, one photo doesn't make a show but for now I think it best

J Allen
Jun-15-2009, 08:41 AM
1) How do I put in only certain photos?

The best thing to do (IMO), is to make a new unlisted gallery and name it "Slide-Show", then just make copies of all the photos you want in your slide-show and move them to your slide show gallery. :thumb

Once you make the gallery you'll need to go to your slide show code and change the gallery number to match your slideshow gallery:


<script>
var ssConfig = {
AlbumID: '8525757',
newWindow: 'false',
transparent: 'true',
imgAlign: 'top',
showLogo: 'false',
clickUrl: 'http://gusinskyphoto.com/galleries',
showThumbs: 'false',
showButtons: 'false',
crossFadeSpeed: '350'
};

SM.flash.insertSlideshow(600, 600, ssConfig, 'transparent');
</script>






2)For now, till I have time. Can i simply just put one photo in the slide show. i know, one photo doesn't make a show but for now I think it best

yep..one photo should work :thumb