View Full Version : yet another Slideshow, Galleries Page I,II,III etc HELP...
JohnL
Mar-26-2008, 08:19 AM
I searched, read, and screwed up for last 2 days still can't figure it out... :cry
Plan:
johnling.smugmug.com
-header, Navbar, Slideshow
johnling.smugmug.com/galleries
-header, Navbar, Featured Galleries, Categories (clean)
(similar setup to http://www.photoscapedesign.com/)
-- In the instrustion: "Add this to your Javascript:" is this in Header Javascript or Footer Javascript or both??
-- Does the order of coding matter in HTML/Javascript??
JohnL
Mar-26-2008, 08:28 AM
these are my codes :scratch
css
.homepage #featuredBox {display:none;}
.galleries #categoriesBox {display:block !important;}
#bioBox .photo {
display: none;
}
#my_banner {
width: 529px;
height: 151px;
margin: 0 auto;
margin-bottom: 13px;
background: url(http://johnling.smugmug.com/photos/257437009_Hp2kV-O.jpg) no-repeat;
}
#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 3em;
color: #fff;
background-color: #000000;
}
#navcontainer ul li a:hover {
color: #fff;
background-color: #383838;
}
/* hides your name (including any 's) */
#userName {
display: none;
}
/* hides the word home */
#userHome {
display: none;
}
/* removed the 's */
.possess {
display: none;
}
/* turn off the login link on the minifooter */
.loginLink { display: none; }
/* turn off the cart link on the minifooter */
.cartlink_footer { display: none; }
Header JavaScript
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
YE.onAvailable('galleryTitle', function() {this.innerHTML = ''});
head tag
<a href="http://www.johnlingstudio.com"><div id="my_banner"></div></a>
<div id="navcontainer">
<ul>
<li><a href="http://johnling.smugmug.com">Home</a></l>
<li><a href="http://johnling.smugmug.com/gallery/4459107_PGUbD/1/262221330_UY3r2/Original">About Me</a></li>
<li><a href="http://johnling.smugmug.com/galleries">Galleries</a></li>
<li><a href="http://johnling.smugmug.com/gallery/4459107_PGUbD/1/262221330_UY3r2/Original">Information</a></li>
<li><a href="http://johnling.smugmug.com/gallery/4459107_PGUbD/1/262221330_UY3r2/Original">Guestbook</a></l>
</ul>
</div>
<***meta*** http-equiv="imagetoolbar" content="no">
<***meta*** http-equiv="imagetoolbar" content="false">
footer
<***script***noStar>
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
<***/script***noStar>
Allen
Mar-26-2008, 08:39 AM
these are my codes :scratch
css
Header JavaScript
head tag
footer
First off, this goes in the header not head tag.
<a href="http://www.johnlingstudio.com"><div id="my_banner"></div></a>
<div id="navcontainer">
<ul>
<li><a href="http://johnling.smugmug.com">Home</a></l>
<li><a href="http://johnling.smugmug.com/gallery/4459107_PGUbD/1/262221330_UY3r2/Original">About Me</a></li>
<li><a href="http://johnling.smugmug.com/galleries">Galleries</a></li>
<li><a href="http://johnling.smugmug.com/gallery/4459107_PGUbD/1/262221330_UY3r2/Original">Information</a></li>
<li><a href="http://johnling.smugmug.com/gallery/4459107_PGUbD/1/262221330_UY3r2/Original">Guestbook</a></l>
</ul>
</div>
Allen
Mar-26-2008, 08:42 AM
these are my codes :scratch
css
Header JavaScript
head tag
footer
Try changing this
.homepage #featuredBox {display:none;}
.galleries #categoriesBox {display:block !important;}
to this
.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #featuredBox {
display: none;
}
.galleries #bioBox {
display: none;
}
.galleries #galleriesBox,
.galleries #categoriesBox,
.galleries #featuredBox {
display: block;
}
JohnL
Mar-26-2008, 09:14 AM
:bow THANKS!! :clap
Any tips on how can I have both Featured Galleries and Categories (clean) on
http://johnling.smugmug.com/galleries (http://johnling.smugmug.com/galleries)?
I couldn't found this topic here: http://dgrin.smugmug.com/gallery/2160039
Thanks again... can't believe I spent 10 hours on debugging... :noob
Allen
Mar-26-2008, 01:55 PM
:bow THANKS!! :clap
Any tips on how can I have both Featured Galleries and Categories (clean) on
http://johnling.smugmug.com/galleries (http://johnling.smugmug.com/galleries)?
I couldn't found this topic here: http://dgrin.smugmug.com/gallery/2160039
Thanks again... can't believe I spent 10 hours on debugging... :noob
The CCS above says to show featured, is it in your control panel under the
homepage tab? Click "show". Or do have you featured any galleries?
JohnL
Mar-26-2008, 03:38 PM
I can have it show "featured galleries", but cannot get the /galleries page to list Categories(clean) instead of the rest of galleries below.
EDIT: I GOT iT NoW!! just ONE click on "display"... I must be blind!! :lol It is so simple , no wonder there is no help topic about this... got to catch some slzzp.
Thanks again! :thumb
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.