View Full Version : How to get both "featured galleries" and "all galleries" in nav bar?
xenonsupra
Sep-30-2008, 09:37 PM
I'm looking for a way to create two separate pages.
I want one to be for my "featured galleries" and one to be for "all galleries"
You can see my site here: www.jcerone.com
I assume there is a trick somewhere or another that I haven't been able to find.
So far I've done well with all the tricks/ workarounds, but this one has got me stumped so I finally registered to make a post about it.
Thanks! :D
Joey
xenonsupra
Oct-03-2008, 07:19 AM
bump.
Allen
Oct-03-2008, 10:09 PM
I'm looking for a way to create two separate pages.
I want one to be for my "featured galleries" and one to be for "all galleries"
You can see my site here: www.jcerone.com (http://www.jcerone.com)
I assume there is a trick somewhere or another that I haven't been able to find.
So far I've done well with all the tricks/ workarounds, but this one has got me stumped so I finally registered to make a post about it.
Thanks! :D
Joey
You'll need to create another duplicate homepage just like your galleries page.
Add the red to your footer javascript. Don't forget to move the featured galleries
out of your control panel under the homepage tab.
function hasPath(sPath){
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
if (hasPath("featured"))
YD.addClass(document.body, "featured");
Your nav link would be.
http://www.jcerone.com/featured
Remember this CSS you added for the galleries hack? You will have to add
the featured gallery to it. I think this CSS combo should show the featured
galleries only on the new featured page.
.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #featuredBox {
display: none;
}
.featured #bioBox
.galleries #bioBox {
display: none;
}
.galleries #galleriesBox,
.galleries #categoriesBox {
display: block;
}
.featured #featuredBox {
display: block;
}
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.