View Full Version : page links
PatrickKawahara
Sep-19-2006, 06:37 PM
Alright onto my last problem...I hope. I hope I can put this into terms that are understandable. I cant figure out where to link my gallery button to. I also dont know where my gallery is. I put it on "hide" so that my slide show is the only thing on my homepage, but what do I do now that I want to have a gallery page? Like how do I get my gallery button to go to a gallery page with my albums on it?
...I hope this makes some sort of sense.
Barb
Sep-19-2006, 07:46 PM
Alright onto my last problem...I hope. I hope I can put this into terms that are understandable. I cant figure out where to link my gallery button to. I also dont know where my gallery is. I put it on "hide" so that my slide show is the only thing on my homepage, but what do I do now that I want to have a gallery page? Like how do I get my gallery button to go to a gallery page with my albums on it?
...I hope this makes some sort of sense.
Hi :)
This is what you're looking for:
http://www.dgrin.com/showthread.php?p=355505#post355505
PatrickKawahara
Sep-19-2006, 10:24 PM
Hi :)
This is what you're looking for:
http://www.dgrin.com/showthread.php?p=355505#post355505
Barb I tried to figure this out, and I still cant seem to get it. Big sigh, maybe some helpful hints?
SteveM
Sep-19-2006, 11:20 PM
Barb I tried to figure this out, and I still cant seem to get it. Big sigh, maybe some helpful hints?
That thread is kind of cryptic until you understand what they're talking about, then it makes perfect sense. Let me break down what it does, then how to do it...
Smugmug is designed to allow you to have EITHER a gallery list displayed on your homepage, OR a category list displayed on your homepage, or hide them both. Until Devbobo, there was no way to access a separate "gallery" or "categories" page, without referencing the exact category you wanted, like "http://yourname.smugmug.com/Horses", which you can do and incorporate, but...
What Devbobo did was come up with javascript that tricked your browser into thinking the same homepage, was a different homepage, but have it display different elements for each (like no gallery on one, and a gallery but no slideshow on the other) through CSS. At least, that's what I THINK it does, and it works for my non-JS mind, so lets go with that. Heh. The EXAMPLE creates, in addition to your normal homepage, a page called "http://yourname.smugmug.com/featured" that is identical to your homepage and even when you go directly to that URL, it will appear no different than your homepage, UNTIL you modify it with CSS. Until then, it'll just look like you're reloading your homepage over and over again. So, you'll need to exclude things from your homepage and include things for this new 'featured' page or whatever you choose to name it, before you'll see the difference, using CSS in your CSS section. Here's how to do it:
Add this to your footer section:
<*script*>
if (hasPath("featured"))
YAHOO.util.Dom.addClass(document.body, "featured");
</*script*> * withOUT the asterisks.
Then add this to your Javascript section:
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
That's it! Can you believe it? You now have your normal homepage and a /featured vanity type URL. But now you have to modify them so they're different. Here are some suggestions to add to your CSS section:
.homepage #featuredBox {display:none;}
.featured #featuredBox {display:block !important;}
.featured #categoriesBox {display:none !important;}
Some things to remember: You can have just about as many of these, named whatever you like, as you want. Just add the footer section again making SURE it's enclosed in it's own SCRIPT tags, and change "featured" to whatever new page you'd like. I also found that, sometimes I had difficulty getting things to show up on my "virtual" homepages if they were "hide"'d on my homepage using the hide/show box. I found that if I "show"'d everything on my real homepage, then just excluded what I didn't like using CSS (as shown above), everything was properly hidden, and properly shown on the "virtual" homepages. That should do it!
Good luck!
Steve
http://www.downriverphotography.com
sdreagan
Oct-01-2006, 08:37 PM
www.sandrareagaphoto.smugmug.com (http://www.sandrareagaphoto.smugmug.com)
I finally got this to work, but it's backwards in the address bar. I will try to explain. When you first go to my site it shows all the galleries, which I was trying not to do. If you click on the nav. bar and click Home the page display is correct without the galleries, but the address bar shows "galleries" behind my site name. If you click on galleries in the nav. bar the page displays correctly, but the address bar show just my site name. I hope I explained this o.k. I just need to fix the address bar display. Thanks for any help.
Sandy
SteveM
Oct-01-2006, 09:04 PM
www.sandrareagaphoto.smugmug.com (http://www.sandrareagaphoto.smugmug.com)
I finally got this to work, but it's backwards in the address bar. I will try to explain. When you first go to my site it shows all the galleries, which I was trying not to do. If you click on the nav. bar and click Home the page display is correct without the galleries, but the address bar shows "galleries" behind my site name. If you click on galleries in the nav. bar the page displays correctly, but the address bar show just my site name. I hope I explained this o.k. I just need to fix the address bar display. Thanks for any help.
Sandy
No matter what I type to access your site, I end up at the Smugmug landing page and never see your site at all. Have you by chance recently purchased a domain name and tried to set it up for Smugmug?
richW
Oct-01-2006, 09:12 PM
Sandy, Same problem here, can't get into your site. You might want to update your signiture with your address to make things a little easier.
Just a thought...
richW
Oct-01-2006, 11:44 PM
Sandy, I think i found your site. If I'm reading your statement correctly. Is this what you want to do?
1. Hide the categories box on your home page.
2. Show the categories box when you go to this address: http://sandrareaganphoto.smugmug.com/galleries/
If so, try this. Replace this line in your custom css
.galleries #categoriesBox {display:none !important;}
With these
.homepage #categoriesBox {display:none;}
.galleries #categoriesBox {display:block !important;}
In your navBar code replace these lines.
<li><a href="<A href="http://sandrareaganphoto.smugmug.com/galleries">Home</a></li">
<li><a href="<A href="http://sandrareaganphoto.smugmug.com">Galleries</a></li">
With these
<li><a href="<A href="http://sandrareaganphoto.smugmug.com/">Home</a></li">
<li><a href="<A href="http://sandrareaganphoto.smugmug.com/galleries/">Galleries</a></li">
Please, prior to replacing any code. Copy and paste all of your original code into a text file for safe keeping so if there is any problems you can recover your site easily.
See if this works, it's getting late and all the code is beginning to blur.
Hope this helps..If any css masters stop by could you double check? Thanks
sdreagan
Oct-02-2006, 06:33 AM
Thanks everyone for the help. :bow
No matter what I type to access your site, I end up at the Smugmug landing page and never see your site at all. Have you by chance recently purchased a domain name and tried to set it up for Smugmug?
No matter what I type to access your site, I end up at the Smugmug landing page and never see your site at all. Have you by chance recently purchased a domain name and tried to set it up for Smugmug?
No, it's the same one I have had for ever. Haven't done anything with the domain name. I have notice it doing that sometimes. I did put the "www" in front of it and I have notice no one else has it. Would it be something at smugmug? Isn't this the name I have through them? Just guessing.
http://sandrareaganphoto.smugmug.com
Let's try it and see if it works.
Rich - that is correct. I will try this when I get home this afternoon and will let you all know if it works.
I have seen all the cool stuff everyone is doing and wanted to have a site like those. I think I'm a little over my head. Thanks for the support.
Sandy
richW
Oct-02-2006, 09:36 AM
Sandy, You can drop the "www"
I did put the "www" in front of it and I have notice no one else has it. Would it be something at smugmug? Isn't this the name I have through them? Just guessing.
http://sandrareaganphoto.smugmug.com
Sandy
In this post you left out the "n" in your address.
www.sandrareagaphoto.smugmug.com (http://www.sandrareagaphoto.smugmug.com/)
I finally got this to work, but it's backwards in the address bar.
Sandy
sdreagan
Oct-02-2006, 04:39 PM
Need some more help. I did the above, but now my galleries don't show up at all.
Sorry about the typing of my site name.
sdreagan
Oct-02-2006, 05:14 PM
:clap I finally got it work!!!! Thanks everyone for your help. :clap
Sandy
richW
Oct-02-2006, 05:33 PM
:clap I finally got it work!!!! Thanks everyone for your help. :clap
Sandy
I'm glad you got it up and running. :thumb
sdreagan
Oct-02-2006, 05:37 PM
Watch out, I'm looking at the instructions to put a slideshow on my homepage.:help Any tips?
richW
Oct-02-2006, 05:47 PM
Watch out, I'm looking at the instructions to put a slideshow on my homepage.:help Any tips?
You are already ahead of the game by reading the instructions.
http://www.dgrin.com/showthread.php?t=28348
I printed them out and followed step by step without any problems. Give it a try. Remember backup all of your code first. Also if you do run into some problems, it might be easier to start a new thread for any needed help..
mmrphoto
Oct-08-2006, 08:22 PM
That thread is kind of cryptic until you understand what they're talking about, then it makes perfect sense. Let me break down what it does, then how to do it...
Smugmug is designed to allow you to have EITHER a gallery list displayed on your homepage, OR a category list displayed on your homepage, or hide them both. Until Devbobo, there was no way to access a separate "gallery" or "categories" page, without referencing the exact category you wanted, like "http://yourname.smugmug.com/Horses", which you can do and incorporate, but...
What Devbobo did was come up with javascript that tricked your browser into thinking the same homepage, was a different homepage, but have it display different elements for each (like no gallery on one, and a gallery but no slideshow on the other) through CSS. At least, that's what I THINK it does, and it works for my non-JS mind, so lets go with that. Heh. The EXAMPLE creates, in addition to your normal homepage, a page called "http://yourname.smugmug.com/featured" that is identical to your homepage and even when you go directly to that URL, it will appear no different than your homepage, UNTIL you modify it with CSS. Until then, it'll just look like you're reloading your homepage over and over again. So, you'll need to exclude things from your homepage and include things for this new 'featured' page or whatever you choose to name it, before you'll see the difference, using CSS in your CSS section. Here's how to do it:
Add this to your footer section:
<*script*>
if (hasPath("featured"))
YAHOO.util.Dom.addClass(document.body, "featured");
</*script*> * withOUT the asterisks.
Then add this to your Javascript section:
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
That's it! Can you believe it? You now have your normal homepage and a /featured vanity type URL. But now you have to modify them so they're different. Here are some suggestions to add to your CSS section:
.homepage #featuredBox {display:none;}
.featured #featuredBox {display:block !important;}
.featured #categoriesBox {display:none !important;}
Some things to remember: You can have just about as many of these, named whatever you like, as you want. Just add the footer section again making SURE it's enclosed in it's own SCRIPT tags, and change "featured" to whatever new page you'd like. I also found that, sometimes I had difficulty getting things to show up on my "virtual" homepages if they were "hide"'d on my homepage using the hide/show box. I found that if I "show"'d everything on my real homepage, then just excluded what I didn't like using CSS (as shown above), everything was properly hidden, and properly shown on the "virtual" homepages. That should do it!
Good luck!
Steve
http://www.downriverphotography.com
SO I'm obviously not understanding this because if I was, I would get it right. I put the code in the appropriate spots but it didn't work. I removed the last bit of CSS code because when I put that in, it made my slideshow disapear and my bio show up. So I took it out for the time being. I think I must be missing the WHOLE picture, because I'm also not sure if I have to alter code for each gallery. :dunno
SteveM
Oct-08-2006, 08:36 PM
SO I'm obviously not understanding this because if I was, I would get it right. I put the code in the appropriate spots but it didn't work. I removed the last bit of CSS code because when I put that in, it made my slideshow disapear and my bio show up. So I took it out for the time being. I think I must be missing the WHOLE picture, because I'm also not sure if I have to alter code for each gallery. :dunno
The usual problem isn't the code not working, or your execution, but what you were expecting it to do. :D
It looks to me like it's working just fine! Visit http://mmrphoto.smugmug.com/featured
It's a different homepage that you can now use CSS to include, or exclude things from. It looks to me like everything is in place and you just need to customize it and your homepage now. Hollar with any questions!
mmrphoto
Oct-08-2006, 08:47 PM
The usual problem isn't the code not working, or your execution, but what you were expecting it to do. :D
It looks to me like it's working just fine! Visit http://mmrphoto.smugmug.com/featured
It's a different homepage that you can now use CSS to include, or exclude things from. It looks to me like everything is in place and you just need to customize it and your homepage now. Hollar with any questions!
OK. I see what you mean. Here is what I desire....I want my homepage to have my slide shpw going and I would like people to be able to click on the galleries button and be taken to what my homepage is now without the slideshow. Does that make since? I think I'm confused by th "feature" thing. How would people be able to get to the featured page anyway?:scratch
SteveM
Oct-08-2006, 09:17 PM
OK. I see what you mean. Here is what I desire....I want my homepage to have my slide shpw going and I would like people to be able to click on the galleries button and be taken to what my homepage is now without the slideshow. Does that make since? I think I'm confused by th "feature" thing. How would people be able to get to the featured page anyway?:scratch
Magic and voodoo! :roflThey're not supposed to know about it, cuz these are smoke and mirror parlor tricks, just for the web developer (you!) to fool their browser with. It's actually using the exact same code for both pages, but through CSS, each URL (featured and homepage) will display different elements.
So, what we're going to do is eliminate your gallery/category view from your real homepage and leave the slideshow. Then on the "featured" page, eliminate the slideshow and INclude the gallery/category view. Then to get to that one, we're going to link your "galleries" navbar button to this featured page. See? Tricks and slight of hand. :ivar
Ready? Here goes!
Add these to your CSS customization box:
.homepage #categoriesBox {display:none;}
.featured #categoriesBox {display:block !important;} Hides your categories on your homepage, but shows it on your new featured page.
.homepage #bioBox {display:block;}
.featured #bioBox {display:none important!;} This is going to make sure your bioBox (AKA slideshow) shows on your homepage always, but not on your "featured" page.
All the above goes in your CSS section that you're probably good and familiar with by now.
Lastly, we're going to link your navbar to your new featured page. In your HTML section, change the red galleries word to featured.
<!-- Next Main Menu Item -->
<li><a class="drop" href="http://www.mmrphoto.smugmug.com/galleries" title="Galleries">Galleries<!--[if IE 7]><!--></a><!--<![endif]--> to
<!-- Next Main Menu Item -->
<li><a class="drop" href="http://www.mmrphoto.smugmug.com/featured" title="Galleries">Galleries<!--[if IE 7]><!--></a><!--<![endif]-->
That's just about it, unless there are other things you want to include or exclude. Keep in mind, now that this is in place, you can make up separate pages for ANYTHING. You can add another block of code the same way, but instead of "featured", you could make say, "map" and have a page with just the Map box on it, or just your popular photos, or the list goes on and on. Come back and reread this after you install that code and it'll make more sense.
Hollar if I broke anything, if you have questions or want more!
mmrphoto
Oct-08-2006, 10:04 PM
Magic and voodoo! :roflThey're not supposed to know about it, cuz these are smoke and mirror parlor tricks, just for the web developer (you!) to fool their browser with. It's actually using the exact same code for both pages, but through CSS, each URL (featured and homepage) will display different elements.
So, what we're going to do is eliminate your gallery/category view from your real homepage and leave the slideshow. Then on the "featured" page, eliminate the slideshow and INclude the gallery/category view. Then to get to that one, we're going to link your "galleries" navbar button to this featured page. See? Tricks and slight of hand. :ivar
Ready? Here goes!
Add these to your CSS customization box:
.homepage #categoriesBox {display:none;}
.featured #categoriesBox {display:block !important;} Hides your categories on your homepage, but shows it on your new featured page.
.homepage #bioBox {display:block;}
.featured #bioBox {display:none important!;} This is going to make sure your bioBox (AKA slideshow) shows on your homepage always, but not on your "featured" page.
All the above goes in your CSS section that you're probably good and familiar with by now.
Lastly, we're going to link your navbar to your new featured page. In your HTML section, change the red galleries word to featured.
<!-- Next Main Menu Item -->
<li><a class="drop" href="http://www.mmrphoto.smugmug.com/galleries" title="Galleries">Galleries<!--[if IE 7]><!--></a><!--<![endif]--> to
<!-- Next Main Menu Item -->
<li><a class="drop" href="http://www.mmrphoto.smugmug.com/featured" title="Galleries">Galleries<!--[if IE 7]><!--></a><!--<![endif]-->
That's just about it, unless there are other things you want to include or exclude. Keep in mind, now that this is in place, you can make up separate pages for ANYTHING. You can add another block of code the same way, but instead of "featured", you could make say, "map" and have a page with just the Map box on it, or just your popular photos, or the list goes on and on. Come back and reread this after you install that code and it'll make more sense.
Hollar if I broke anything, if you have questions or want more!
SO now my home page is like I want it and when I click the gallery button it takes me to another page.... but where are my galleries:dunno? How do I get all of them on my page? Also, cany your give me a basic run down as to what each of those codes do so I could make other pages like that if I want. I still don't really understand what I'm doing.
SteveM
Oct-08-2006, 10:24 PM
SO now my home page is like I want it and when I click the gallery button it takes me to another page.... but where are my galleries:dunno? How do I get all of them on my page? Also, cany your give me a basic run down as to what each of those codes do so I could make other pages like that if I want. I still don't really understand what I'm doing.
Oops! Sorry, I should have paid closer attention. Near the very beginning of your CSS section you have this:
.homepage #featuredBox {display:none;}
.featured #featuredBox {display:block !important;}
.featured #categoriesBox {display:none !important;}
You can go ahead and remove that as we define and redefine those near the end of your CSS code.
Now near the end of your CSS you have this, which is good:
/* End Navbar Code */
.homepage #galleriesBox {display: none;}
.featured #galleriesBox {display: block;}
.featured #bioBox {display: none;}
.homepage #featuredBox {display:none;}
.featured #featuredBox {display:block !important;}
.featured #categoriesBox {display:none !important;}
BUT, you can either have your galleries displayed, OR your categories. You can't have both (somebody correct me if I'm wrong and there's a way to do this). You need to toggle this with the little clicky on your real homepage where it says (display: gallery - category) as to which you want. Right now it's set to category view, so to display that on your "featured" page, you would change .featured #categoriesBox {display:block !important;} This will make your categories view appear on your featured page.
As for the other pages you could make... there really isn't a concise list of them, but basically any option you see on your page that you would like to isolate to it's own page, we can probably do. The "#featuredBox" would consist of those galleries that you selected "Feature this Gallery" from the gallery tools pulldown. The #mapBox would be the Google map thingie if you geotag your photos. You can also do popular photos, the dateline search, etc. If you can think of a specific option you'd like on a separate page like you have your categories let us know and we'll set you up.
mmrphoto
Oct-09-2006, 08:30 PM
Oops! Sorry, I should have paid closer attention. Near the very beginning of your CSS section you have this:
.homepage #featuredBox {display:none;}
.featured #featuredBox {display:block !important;}
.featured #categoriesBox {display:none !important;}
You can go ahead and remove that as we define and redefine those near the end of your CSS code.
Now near the end of your CSS you have this, which is good:
/* End Navbar Code */
.homepage #galleriesBox {display: none;}
.featured #galleriesBox {display: block;}
.featured #bioBox {display: none;}
.homepage #featuredBox {display:none;}
.featured #featuredBox {display:block !important;}
.featured #categoriesBox {display:none !important;}
BUT, you can either have your galleries displayed, OR your categories. You can't have both (somebody correct me if I'm wrong and there's a way to do this). You need to toggle this with the little clicky on your real homepage where it says (display: gallery - category) as to which you want. Right now it's set to category view, so to display that on your "featured" page, you would change .featured #categoriesBox {display:block !important;} This will make your categories view appear on your featured page.
As for the other pages you could make... there really isn't a concise list of them, but basically any option you see on your page that you would like to isolate to it's own page, we can probably do. The "#featuredBox" would consist of those galleries that you selected "Feature this Gallery" from the gallery tools pulldown. The #mapBox would be the Google map thingie if you geotag your photos. You can also do popular photos, the dateline search, etc. If you can think of a specific option you'd like on a separate page like you have your categories let us know and we'll set you up.
WHOHOOOOO!:barbThanks again for the help. I have to double check it in IE but it appears to be working great.
I still don't understand what part of the code makes a new page though.
Speaking of not understanding code, what part of my slideshow code actually determines what slides play?
SteveM
Oct-10-2006, 03:49 AM
WHOHOOOOO!:barbThanks again for the help. I have to double check it in IE but it appears to be working great.
I still don't understand what part of the code makes a new page though.
Speaking of not understanding code, what part of my slideshow code actually determines what slides play?
<*script*>
if (hasPath("featured"))
YAHOO.util.Dom.addClass(document.body, "featured");
</*script*>
This code in your footer (again minus the asterisks) is what actually makes a "new" page, name featured. You could of course name this anything you like. If you wanted another/a different page, you would repeat this entire block of code in your footer naming it say, 'maps' instead of 'featured' and go about customizing .maps #mapsBox {display: block !important;} or whatever you wanted to include or exclude from it in the CSS section.
There is a little block of javascript code that checks to see if there are any of these virtual pages defined in your footer, then carries out the shennanigans of fooling the browser.
As for the slideshow, if you could post to the slideshow thread, we'll tackle that there.
So glad you got everything working!
Tip Toe Shooter
Oct-10-2006, 08:35 AM
I've been having problems with this area as well. My javascript slideshow appears in the "homepage" as well as "galleries" page. Was expecting the galleries to show thumbnail links to the various gallery to no avail.
Any help appreciated. Thanks!
www.tiptoephotos.com
SteveM
Oct-10-2006, 10:40 AM
I've been having problems with this area as well. My javascript slideshow appears in the "homepage" as well as "galleries" page. Was expecting the galleries to show thumbnail links to the various gallery to no avail.
Any help appreciated. Thanks!
www.tiptoephotos.com (http://www.tiptoephotos.com)
Hi Tip Toe,
To remove the slideshow from your Galleries page, use:
.galleries #ssSlide {display: none;}
I've found that if you have things disabled on your homepage using the "show/hide" clickies, it's not possible (for me) to force them to display on another virtual homepage (galleries page). Instead, everything on your homepage should be enabled with the show/hide clickies, then using CSS, removed from the homepage and enabled on the virtual page. Such as:
.homepage #galleriesBox {display: none;}
.galleries #galleriesBox {display: block;}
Now also keep in mind for this to work, you would have to choose the galleries view instead of the categories view on your homepage. You can have one or the other, but not both to my knowledge. If you have and prefer the categories view instead of the galleries view, use #categoriesBox instead in the above example.
Hope this helps! Let us know how you progress.
mmrphoto
Oct-10-2006, 08:39 PM
<*script*>
if (hasPath("featured"))
YAHOO.util.Dom.addClass(document.body, "featured");
</*script*>
This code in your footer (again minus the asterisks) is what actually makes a "new" page, name featured. You could of course name this anything you like. If you wanted another/a different page, you would repeat this entire block of code in your footer naming it say, 'maps' instead of 'featured' and go about customizing .maps #mapsBox {display: block !important;} or whatever you wanted to include or exclude from it in the CSS section.
There is a little block of javascript code that checks to see if there are any of these virtual pages defined in your footer, then carries out the shennanigans of fooling the browser.
As for the slideshow, if you could post to the slideshow thread, we'll tackle that there.
So glad you got everything working!
Ok. THis is the part of my slideshow in my Java section. Let me know if this isn't the code I need.
/*=========================*/
/*== SLIDE SHOW ==*/
/*== version 0.56 ==*/
/*== Updated 03 May 2006 ==*/
/*=========================*/
var SLIDE_SHOW = 0;
var RANDOM_PHOTO = 1;
var slideshowContainer;
var sSlide;
var sCaption;
var ssSlides;
var ssSlideTotal;
var ssSlideTimer;
var ssOldSlide;
var ssFadeTimer;
var ssFade;
var ssTimerId;
var blank;
function PrepSlideEnvironment()
{
tmpCookie = getCookie("Template");
blank = new Image();
blank.src = "/img/spacer.gif";
if (typeof(slideshowType) == "undefined" || (slideshowType != SLIDE_SHOW && slideshowType != RANDOM_PHOTO))
slideshowType = SLIDE_SHOW;
if (slideshowType == RANDOM_PHOTO)
randomSlides = true;
if (typeof(slideshowContainerId) == "undefined")
return false
else if (typeof(slideshowContainerId) == "string")
slideshowContainer = document.getElementById(slideshowContainerId);
if (!slideshowContainer)
return false;
if (typeof(slideshowUrl) == "undefined" || typeof(slideshowUrl) != "string")
return false;
else
slideshowUrl = /(?:http:\/\/[^\/]+)?(\/\S+)/.exec(slideshowUrl)[1];
if (/\/gallery\/[0-9]+/.test(slideshowUrl))
slideSourceIsGallery = true;
else
slideSourceIsGallery = false;
if (typeof(slideHeight) == "undefined" || isNaN(slideHeight))
slideHeight = "200";
if (typeof(slideWidth) == "undefined" || isNaN(slideWidth))
slideWidth = "300";
if (typeof(photoHeight) == "undefined" || isNaN(photoHeight))
photoHeight = slideHeight;
if (typeof(photoWidth) == "undefined" || isNaN(photoWidth))
photoWidth = slideWidth;
if (typeof(slideDuration) == "undefined" || isNaN(slideDuration))
slideDuration = 3;
if (typeof(firstSlideUrl) == "undefined" || typeof(firstSlideUrl) != "string")
firstSlideUrl = blank.src;
if (typeof(showSlideTransition) == "undefined" || typeof(showSlideTransition) != "boolean")
showSlideTransition = true;
if (typeof(resizeToPhoto) == "undefined" || typeof(resizeToPhoto) != "boolean")
resizeToPhoto = true;
if (typeof(quickStart) == "undefined" || typeof(quickStart) != "boolean")
quickStart = true;
if (typeof(randomSlides) == "undefined" || typeof(randomSlides) != "boolean")
randomSlides = false;
if (typeof(slideControls) == "undefined" || typeof(slideControls) != "boolean")
slideControls = false;
if (typeof(slideCaptions) == "undefined" || typeof(slideCaptions) != "boolean")
slideCaptions = false;
if (typeof(slidesClickable) == "undefined" || typeof(slidesClickable) != "boolean")
slidesClickable = false;
return true;
}
function loadSlideshow()
{
if (!PrepSlideEnvironment())
return false;
slideshowContainer.innerHTML = '<img src="http://www.smugmug.com/img/spacer.gif" alt="" id="ssSlide" height="' + slideHeight + '" width="' + slideWidth + '" style="opacity: .99; background-image: url(' + firstSlideUrl + '); background-repeat: no-repeat; background-position: center;" />';
if (slideCaptions)
slideshowContainer.innerHTML += '<div id="ssCaption"></div>';
if (slideControls)
slideshowContainer.innerHTML += '<div id="ssControl"><a title="Previous Slide" id="ssPrev" class="ssBtn" href="javascript: void(0);" onclick="prevSlide();"><img src="/img/spacer.gif" border="0" /></a><a title="Next Slide" id="ssNext" class="ssBtn" href="javascript: void(0);" onclick="nextSlide();"><img src="/img/spacer.gif" border="0" /></a><a title="Pause Slideshow" id="ssPause" class="ssBtn" href="javascript: void(0);" onclick="pauseSlideshow();"><img src="/img/spacer.gif" border="0" /></a><a title="Resume Slideshow" id="ssPlay" class="ssBtn" href="javascript: void(0);" onclick="resumeSlideshow();"><img src="/img/spacer.gif" border="0" /></a></div>';
sSlide = document.getElementById('ssSlide');
sCaption = document.getElementById('ssCaption');
if (slidesClickable) {
sSlide.style.cursor = 'pointer';
if (firstSlideUrl != blank.src)
ssAddSlideClick(slideshowUrl);
}
ssSlides = new Array(null);
ssSlideTotal = 0;
ssSlideTimer = 0;
ssOldSlide = 0;
ssFadeTimer = 100;
ssFade = "out";
if (slideSourceIsGallery)
ajax_query(slideshowHandler, '/photos/sspopup.mg?AlbumID=' + /\/gallery\/([0-9]+)/.exec(slideshowUrl)[1], null, true);
else {
var postArray = new Array();
postArray['TemplateID'] = '8';
postArray['origin'] = slideshowUrl;
ajax_query(slideshowHandler, '/homepage/templatechange.mg', postArray, true);
}
}
function slideshowHandler(response)
{
if (!slideSourceIsGallery) {
if (tmpCookie && tmpCookie != "") {
var postArray = new Array();
postArray['TemplateID'] = tmpCookie;
postArray['origin'] = slideshowUrl;
ajax_query(function(){}, '/homepage/templatechange.mg', postArray, true);
}
else
deleteCookie("Template", "/", "smugmug.com");
}
var re = /imageID\[\d+\] = "\d+";/g;
var re2 = /width\[\d+\] = "\d+";/g;
var re3 = /height\[\d+\] = "\d+";/g;
var re4 = /caption\[\d+\] = ".*";/g;
s = response.match(re);
w = response.match(re2);
h = response.match(re3);
c = response.match(re4);
var oSlide;
for (i = 0; i < s.length; i++)
{
oSlide = new Object;
temp = s[i].split(/"/);
oSlide.ImageId = temp[1];
oSlide.File = 'http://upload.smugmug.com/photos/toolthumbs.mg?ImageID=' + temp[1] + '&tool=slideshowXL&winHeight=' + photoHeight + '&winWidth=' + photoWidth;
oSlide.Gallery = slideshowUrl + '/1/' + oSlide.ImageId;
temp = h[i].split(/"/);
oSlide.Height = temp[1];
temp = w[i].split(/"/);
oSlide.Width = temp[1];
temp = c[i].split(/"/);
oSlide.Caption = temp[1];
oSlide.Loaded = false;
if ((oSlide.Width > photoWidth) || (oSlide.Height > photoHeight))
{
if (oSlide.Width >= oSlide.Height)
{
oSlide.Height = Math.round((oSlide.Height / oSlide.Width) * photoWidth);
oSlide.Width = photoWidth;
}
else
{
oSlide.Width = Math.round((oSlide.Width / oSlide.Height) * photoHeight);
oSlide.Height = photoHeight;
}
}
ssSlideTotal = ssSlides.push(oSlide);
}
ssSlideTotal -= 1;
if (randomSlides)
{
ssSlides.shift();
ssSlides.shuffle();
ssSlides.unshift(0);
}
if (quickStart)
ssSlideTimer = (slideDuration * 1000);
ssPrepSlide(1);
window.setTimeout("ssPrepSlide(2);", 0);
window.setTimeout("ssPrepSlide(ssSlideTotal);", 0);
if (slideshowType == SLIDE_SHOW)
ssPlaySlideshow();
else
ssSlideSwap(1);
}
function ssPauseSlideshow()
{
window.clearTimeout(ssTimerId);
ssTimerId = null;
}
function ssResumeSlideshow()
{
if (!ssTimerId)
ssTimerId = window.setTimeout("ssPlaySlideshow()", 10);
}
function ssPrepSlide(prep)
{
if (ssSlides[prep].Loaded == false)
{
ssSlides[prep].Image = new Image();
ssSlides[prep].Image.src = ssSlides[prep].File;
ssSlides[prep].Loaded = true;
}
}
function ssMoveSlide(i) {
ssSlideTimer = 0;
ssFadeTimer = 100;
ssTransition(ssFadeTimer);
ssFade = "out";
ssSlideSwap(i);
}
function ssPlaySlideshow()
{
if (ssSlideTimer >= (slideDuration * 1000))
{
if (ssFade == 'out')
ssTransition(ssFadeTimer -= 10);
if (ssFadeTimer == 0)
{
ssSlideSwap(1);
ssFade = 'in';
}
if (ssFade == 'in')
ssTransition(ssFadeTimer += 10);
if (ssFadeTimer == 100)
{
ssSlideTimer = 0;
ssFade = 'out';
}
}
else
ssSlideTimer += 10;
ssTimerId = window.setTimeout("ssPlaySlideshow()", 10);
}
function ssTransition(opacity)
{
if (showSlideTransition)
{
if (opacity != 100)
sSlide.style.opacity = (opacity / 100);
// one case where mozilla sucks: the image will flash if you turn opacity up to 1 suddenly
else
sSlide.style.opacity = (.99);
// only affects Win IE
sSlide.style.filter = 'alpha(opacity=' + opacity + ')';
if (sCaption) {
sCaption.style.opacity = sSlide.style.opacity;
sCaption.style.filter = sSlide.style.filter;
}
}
}
function ssSlideSwap(i)
{
var newSlide = ssOldSlide + i;
if (newSlide > ssSlideTotal)
newSlide = 1;
if (newSlide < 1)
newSlide = ssSlideTotal;
if (ssSlides[newSlide].Loaded != false)
{
document.images['ssSlide'].src = blank.src;
sSlide.style.backgroundImage = 'url(' + ssSlides[newSlide].File + ')';
if (resizeToPhoto)
{
document.images['ssSlide'].height = ssSlides[newSlide].Height;
document.images['ssSlide'].width = ssSlides[newSlide].Width;
}
if (slidesClickable)
ssAddSlideClick(ssSlides[newSlide].Gallery);
if (slideCaptions)
document.getElementById('ssCaption').innerHTML = ssSlides[newSlide].Caption;
ssPrepSlide(newSlide < ssSlideTotal ? newSlide + i : 1);
ssOldSlide = newSlide;
}
else
{
ssPrepSlide(newSlide);
ssSlideSwap(i);
}
}
function ssAddSlideClick(sUrl) {
addEvent(sSlide, 'click', function(){location.href=sUrl;});
}
Array.prototype.shuffle = function()
{
var len = this.length;
var rand, temp, i;
for (i = 0; i < len; i++)
{
rand = Math.floor(Math.random()*len);
temp = this[i];
this[i] = this[rand];
this[rand] = temp;
}
}
function pauseSlideshow()
{
document.getElementById('ssPause').style.display = "none";
document.getElementById('ssPlay').style.display = "inline";
ssPauseSlideshow();
}
function resumeSlideshow()
{
document.getElementById('ssPause').style.display = "inline";
document.getElementById('ssPlay').style.display = "none";
ssResumeSlideshow();
}
function prevSlide()
{
pauseSlideshow();
ssMoveSlide(-1);
}
function nextSlide()
{
pauseSlideshow();
ssMoveSlide(1);
}
function getCookie(name) {
var start = document.cookie.indexOf(name + "=");
var len = start + name.length + 1;
if ((!start) && (name != document.cookie.substring(0, name.length)))
return null;
if (start == -1)
return null;
var end = document.cookie.indexOf(";", len);
if (end == -1)
end = document.cookie.length;
return unescape(document.cookie.substring(len, end));
}
function deleteCookie(name, path, domain) {
if (getCookie(name))
document.cookie = name + "=" + ((path) ? ";path=" + path : "") + ((domain) ? ";domain=" + domain : "") + ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
Tip Toe Shooter
Oct-11-2006, 08:13 AM
Hi Tip Toe,
To remove the slideshow from your Galleries page, use:
.galleries #ssSlide {display: none;}
I've found that if you have things disabled on your homepage using the "show/hide" clickies, it's not possible (for me) to force them to display on another virtual homepage (galleries page). Instead, everything on your homepage should be enabled with the show/hide clickies, then using CSS, removed from the homepage and enabled on the virtual page. Such as:
.homepage #galleriesBox {display: none;}
.galleries #galleriesBox {display: block;}
Now also keep in mind for this to work, you would have to choose the galleries view instead of the categories view on your homepage. You can have one or the other, but not both to my knowledge. If you have and prefer the categories view instead of the galleries view, use #categoriesBox instead in the above example.
Hope this helps! Let us know how you progress.
Hey Steve,
Thanks for the help there! My slideshow finally disappeared from the galleries page! Unfortunately, the galleries didn't appear even after I've enabled
.galleries #galleriesBox {display: block;}
I'm already showing everything on my control panel except these
[1] Photo timeline
[2] Around the world
[3] Top 100 photo keywords
[4] Photo communities
Does this affect?
On my control panel, I used to be able to see the galleries/categories tumbnails layout. They've "disappeared" ever since I throw in more coding. Have tried removing to bare minimum to no avail. There's this error message whenever I access my control panel,
"there was a problem retrieving the xml data:
undefined: undefined
null"
Could this be the culprit? Thanks much!
Tip Toe Shooter
Oct-11-2006, 09:26 AM
I was entering all the codings bit by bit and everything seems alright till I hit upon the code to create a clean landing page.
This was how it goes,
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
went into the Javascript section.
******** language="javascript">
if (hasPath("galleries"))
YAHOO.util.Dom.addClass(document.body, "galleries");
</********
went into the Footer section.
and
.homepage #galleriesBox {display: none;}
.galleries #galleriesBox {display: block;}
.galleries #ssSlide {display: none;}
went into the CSS section.
The slideshow did not show up in the "/galleries" page, neither did anything appear there. The landing page on my "homepage" seems unaffected. Any advice on this? :scratch
SteveM
Oct-11-2006, 04:55 PM
Hey Tiptoe,
I'm tinkering around with your CSS and I cannot get the gallery or category view to appear on your homepage. That's the main problem. We have to get it to appear on your homepage, which will in turn make it appear on your /galleries page. Afterward we can disable it from your homepage with .homepage #galleriesBox OR #categoriesBox depending on which you choose.
Temporarily remove this from your CSS section:#categoriesBox .boxTop {
display: block;
}
#homepage {
text-align: center;
}
/* =========================================== */
/* This code is to create a clean landing page */
/* =========================================== */
.homepage #galleriesBox {
display: none;
}
.galleries #galleriesBox {
display: block;
}
.galleries #ssSlide {
display: none;
}
.galleries #ssControl {
display: none;
}
See if you can get either the category view or the gallery view to appear on your homepage. You may have to enable it from your control panel, you may have to hide/show, and you'll have to decide whether you want category view/gallery view all with clickies. Once you can get that to display on your homepage, reply back and it'll be easy from there.
Tip Toe Shooter
Oct-11-2006, 08:53 PM
I toyed around with the codings and it seems that when I removed the slideshow script, everything else came back to normal.
Disabled this liner,
#categoriesBox .boxTop {
display: none;
}
and left these in the CSS section,
.homepage #galleriesBox {display: none;}
.galleries #galleriesBox {display: block;}
with that, the site seems to conform to the ** clean landing page ** codes.
see www.tiptoephotos.com and www.tiptoephotos.com/galleries
SteveM
Oct-12-2006, 10:22 AM
I toyed around with the codings and it seems that when I removed the slideshow script, everything else came back to normal.
Disabled this liner,
#categoriesBox .boxTop {
display: none;
}
and left these in the CSS section,
.homepage #galleriesBox {display: none;}
.galleries #galleriesBox {display: block;}
with that, the site seems to conform to the ** clean landing page ** codes.
see www.tiptoephotos.com (http://www.tiptoephotos.com) and www.tiptoephotos.com/galleries (http://www.tiptoephotos.com/galleries)
Looking good. To get rid of the other stuff on your homepage, add these:
.homepage #popularPhotos {display: none;}
.homepage #keywordsTitle {display: none;}
.homepage #keywordList {display: none;}
.homepage #datesBox {display: none;}
Also decide if you want any of that to show on your galleries page as well and choose to keep or exclude it the same way. Now we just need to get your slideshow back and not interfering. Let us know how far you get!
Tip Toe Shooter
Oct-13-2006, 02:08 AM
Greaaat!! Things are looking good already :clap
After your instructions, here's what I did further.
I enabled the slideshow and the customisation that was showing on the "galleries" page disappeared. Even the bios box that was showing on the "homepage" originally, snapped out of sight. I'm leaving my website as is now so you can see what I mean.
I downloaded the slideshow script from Dgrin's customisation pages. It's version 0.56 and updated 03 May 2006. This script goes into the "javascript" customisation.
Another script goes into the footer,
<*script type="text/javascript"*>
/* required slideshow variables */
slideshowContainerId = "homepage";
slideshowUrl = "http://www.smugmug.com/gallery/1965583/1/99980626";
slideControls = true;
slideHeight = "450";
slideWidth = "666";
loadSlideshow();
<*/script*>
The slideshow is enabled by,
<*body onload="OnLoadHandler();"*>
in the "body tag"
I'll put up the javascript if you require.
Thanks! I can feel it happening! :clap
SteveM
Oct-13-2006, 10:27 AM
I enabled the slideshow and the customisation that was showing on the "galleries" page disappeared. Even the bios box that was showing on the "homepage" originally, snapped out of sight. I'm leaving my website as is now so you can see what I mean.
I downloaded the slideshow script from Dgrin's customisation pages. It's version 0.56 and updated 03 May 2006. This script goes into the "javascript" customisation.
Another script goes into the footer,
<*script type="text/javascript"*>
/* required slideshow variables */
slideshowContainerId = "homepage";
slideshowUrl = "http://www.smugmug.com/gallery/1965583/1/99980626";
slideControls = true;
slideHeight = "450";
slideWidth = "666";
loadSlideshow();
<*/script*>
The slideshow is enabled by,
<*body onload="OnLoadHandler();"*> in the "body tag"
I'll put up the javascript if you require.
Thanks! I can feel it happening! :clap
I'm really not a slideshow guy, and this has been driving me nuts for a while, but... looking at your code, it appears to me that for the slideshow, instead of using your footer or biobox as the container, you're using the entire Homepage as the container, so, when we disable the slideshow through CSS on the "galleries" page, it's basically shutting off the entire virtual homepage and customizations. I THINK.
I'd really like some BigWebGuy or more advanced input on this one. In the meantime, I think you should try to make your container ID the #bioBox and try including that on your homepage instead and see what happens.
Tip Toe Shooter
Oct-13-2006, 11:02 AM
Hey Steve,
It totally works!!
As suggested by you, I replaced the "homepage" with "bioBox" and everything just click into place. You're the genius! :bow :bow :bow Couldn't thank you enough for your tremendous help. :thumb :thumb :thumb Really appreciate it. I'll put a note in the slideshow discussion on "what not to do".
:barb :barb
SteveM
Oct-13-2006, 11:45 AM
Hey Steve,
It totally works!!
As suggested by you, I replaced the "homepage" with "bioBox" and everything just click into place. You're the genius! :bow :bow :bow Couldn't thank you enough for your tremendous help. :thumb :thumb :thumb Really appreciate it. I'll put a note in the slideshow discussion on "what not to do".
:barb :barb
Awesome. That was totally a guess/shot in the dark. I have to say, your page looks great!
mmrphoto
Oct-13-2006, 02:00 PM
Awesome. That was totally a guess/shot in the dark. I have to say, your page looks great!
So I have a new question. If I want to make my slideshow bigger on my homepage, what do I need to do to change the size? I have a lot of empty space and right now my pics are not that big.
Jcox
Oct-21-2006, 08:24 PM
I'm just dumb as a bag of hammers i guess. :huh I'm as frustrated as ever and all over not being able to make my galleries show up when you click the galleries button on the navbar. I must be missing something. :scratch
Please help me understand.
http://jcox.smugmug.com/
richW
Oct-21-2006, 09:28 PM
I'm just dumb as a bag of hammers i guess. :huh I'm as frustrated as ever and all over not being able to make my galleries show up when you click the galleries button on the navbar. I must be missing something. :scratch Please help me understand.
What address do you want to use to get to your galleries page?
Your navBar and css are set at http://jcox.smugmug.com/featured
Devbobo's js hack you put in is set to point to "galleries"
Either way you want to go it can be worked out....
Jcox
Oct-22-2006, 12:44 PM
What address do you want to use to get to your galleries page?
Your navBar and css are set at http://jcox.smugmug.com/featured
Devbobo's js hack you put in is set to point to "galleries"
Either way you want to go it can be worked out....I had it as "galleries" but it wasn't working. Since i don't really understand the code or script, i just tried a little trial and error... with no success of course.
To answer your question; to me, it makes sense to be set as http://jcox.smugmug.com/galleries
Thanks for your time & help.
richW
Oct-22-2006, 10:43 PM
To answer your question; to me, it makes sense to be set as http://jcox.smugmug.com/galleries
Add this to your css to see how it works.
#mySlideshow {display: none;}
.homepage #mySlideshow {display: block;}
.homepage #galleriesBox {display: none;}
.galleries #galleriesBox {display: block;}
.galleries #mySlideshow {display: none;}
Jcox
Oct-23-2006, 05:19 AM
Add this to your css to see how it works.
#mySlideshow {display: none;}
.homepage #mySlideshow {display: block;}
.homepage #galleriesBox {display: none;}
.galleries #galleriesBox {display: block;}
.galleries #mySlideshow {display: none;}It works!! Awesome!! Thanks so much for your time!!
Now i have to get the other buttons working. :D
Thanks again!
oddstuff
Dec-24-2007, 08:11 AM
Hi, I tried to replicate the success of other members and found it to be tough.
I tried to point my page http://oddstuff.smugmug.com/galleries to point to my "gallery categories" format (not galleries format) alone without the flash slideshow.
My Homepage has both bioBox and categoriesBox turned on.
I have these in the CSS:
.homepage #categoriesBox {display: none;}
.homepage #galleriesBox {display: none;}
.homepage #featuredBox {display: none;}
.homepage #bioBox {display: block;}
.galleries #categoriesBox {display: block !important;}
.galleries #galleriesBox {display: none;}
.galleries #featuredBox {display: none;}
.galleries #bioBox {display: none;} block;}
.galleries #bioBox {display: none;}
And these in the footer:
<skript type="text/javascript">
/* display only "galleries" page */
if (hasPath("galleries"))
YAHOO.util.Dom.addClass(document.body, "galleries");
</skript>
And these in my javascript:
function hasPath(sPath)
{
re = new RegExp("\/" sPath "(\/|$)");
return re.test(window.location)
}
Can anyone help me with my codes? I'm sure something's missing and yet I couldn't locate it...
Allen
Dec-24-2007, 08:28 PM
Hi, I tried to replicate the success of other members and found it to be tough.
I tried to point my page http://oddstuff.smugmug.com/galleries to point to my "gallery categories" format (not galleries format) alone without the flash slideshow.
My Homepage has both bioBox and categoriesBox turned on.
...
Can anyone help me with my codes? I'm sure something's missing and yet I couldn't locate it...
I don't understand why these two are in your footer, popular and keyword pages are
already built in the base code.
<script type="text/javascript">
/* display only "popular" page */
if (hasPath("popular"))
YAHOO.util.Dom.addClass(document.body, "popular");
</script>
<script type="text/javascript">
/* display only "keyword" page */
if (hasPath("keyword"))
YAHOO.util.Dom.addClass(document.body, "keyword");
</script>
There is only one defined galleries/categories box and either galleries or
categories can be toggle to show. So on any duplicate "homepage" you
create they will all show the same I think.
oddstuff
Dec-25-2007, 04:00 PM
I don't understand why these two are in your footer, popular and keyword pages are
already built in the base code.
<script type="text/javascript">
/* display only "popular" page */
if (hasPath("popular"))
YAHOO.util.Dom.addClass(document.body, "popular");
</script>
<script type="text/javascript">
/* display only "keyword" page */
if (hasPath("keyword"))
YAHOO.util.Dom.addClass(document.body, "keyword");
</script>
There is only one defined galleries/categories box and either galleries or
categories can be toggle to show. So on any duplicate "homepage" you
create they will all show the same I think.
This is what I have done so far.
I have removed the scripts for "popular" and "keyword" from the footer.
I have toggled "on" for "categories" box - this is already in display anyway.
I have trimmed the CSS codes as follows:
.homepage #categoriesBox {display: none;}
.homepage #bioBox {display: block;}
.galleries #categoriesBox {display: block !important;}
.galleries #bioBox {display: none;}
Unfortunately, the /galleries page still tag to homepage and not displaying just "categories" - whereas homepage displays correctly only the bioBox.
Need more help still.
Allen
Dec-25-2007, 05:15 PM
This is what I have done so far.
I have removed the scripts for "popular" and "keyword" from the footer.
I have toggled "on" for "categories" box - this is already in display anyway.
I have trimmed the CSS codes as follows:
Unfortunately, the /galleries page still tag to homepage and not displaying just "categories" - whereas homepage displays correctly only the bioBox.
Need more help still.
Why is every nav link opening in a new browser, target="_blank"? I for one
would not want to navigate your site.
If you're trying to link to the galleries page this should be changed
<td><a href="http://oddstuff.smugmug.com/#Categories" target="_blank" class="menulink">gallery</a></td>
to this
<td><a href="http://oddstuff.smugmug.com/galleries" target="_blank" class="menulink">gallery</a></td>
You have errors in your javascript, getting an error of hasPath not being
defined so it's croaking on something. Reason galleries page is not defined.
oddstuff
Dec-25-2007, 06:50 PM
Why is every nav link opening in a new browser, target="_blank"? I for one
would not want to navigate your site.
If you're trying to link to the galleries page this should be changed
<td><a href="http://oddstuff.smugmug.com/#Categories" target="_blank" class="menulink">gallery</a></td>
to this
<td><a href="http://oddstuff.smugmug.com/galleries" target="_blank" class="menulink">gallery</a></td>
You have errors in your javascript, getting an error of hasPath not being
defined so it's croaking on something. Reason galleries page is not defined.
Thx for pointing out the target="_blank" annoyance - that was fixed.
The javascript is also fixed - some signs were missing - so I copied a fresh one from forum.
I am now down to the bare codes, as follows:
.homepage #categoriesBox {display: none;}
.homepage #bioBox {display: block;}
.galleries #categoriesBox {display: block;}
.galleries #bioBox {display: none;}Apparently, only the .homepage codes work and .galleries codes have no effect - the /galleries page is controlled by the .homepage codes really.
I have double-checked the javascript in both Javascript and Footer; I believe I'm close (and yet far) and there are still mistakes somewhere.
Where else should I fix?
Allen
Dec-25-2007, 07:25 PM
Thx for pointing out the target="_blank" annoyance - that was fixed.
The javascript is also fixed - some signs were missing - so I copied a fresh one from forum.
I am now down to the bare codes, as follows:
.homepage #categoriesBox {display: none;}
.homepage #bioBox {display: block;}
.galleries #categoriesBox {display: block;}
.galleries #bioBox {display: none;}Apparently, only the .homepage codes work and .galleries codes have no effect - the /galleries page is controlled by the .homepage codes really.
I have double-checked the javascript in both Javascript and Footer; I believe I'm close (and yet far) and there are still mistakes somewhere.
Where else should I fix?
Still getting this error pointing to line 4 below.
missing ) after argument list
re = new RegExp(sClass "( |$)") \n
1function isClass(sClass) {
2 sClassName = document.body.className;
3
4 re = new RegExp(sClass "( |$)")
5
6 if (!sClassName)
7 return false;
8 return re.test(sClassName);
9}
oddstuff
Dec-25-2007, 08:27 PM
Still getting this error pointing to line 4 below.
missing ) after argument list
re = new RegExp(sClass "( |$)") \n
1function isClass(sClass) {
2 sClassName = document.body.className;
3
4 re = new RegExp(sClass "( |$)")
5
6 if (!sClassName)
7 return false;
8 return re.test(sClassName);
9}That didn't come across my mind... I fixed that but it ain't working the way it should be. Man, this is tougher than I thought. :scratch
I perused http://dgrin.smugmug.com/gallery/2160039 - nothing there helps. I read devbobo's guide which is similar in nature.
Could it be bcoz my slideshow is a flash-based one? I don't think it should matter... I guess. Or perhaps due to conflicting scripts...?
Btw, I'm not a script person, so a little more guide will really help.
Allen
Dec-25-2007, 08:31 PM
That didn't come across my mind... I fixed that but it ain't working the way it should be. Man, this is tougher than I thought. :scratch
I perused http://dgrin.smugmug.com/gallery/2160039 - nothing there helps. I read devbobo's guide which is similar in nature.
Could it be bcoz my slideshow is a flash-based one? I don't think it should matter... I guess. Or perhaps due to conflicting scripts...?
Btw, I'm not a script person, so a little more guide will really help.
Me no nuthin about js either, just using Firebug to troubleshoot. :D
Ok, next error.
missing ) after argument list
var gallery = unescape(path.substr(path.lastIndexOf("/") 1));\n
pointing to line 65 below.
// **********************************************
57// User Friendly Gallery URL w/Yahoo Panel Popup
58// 2007/04/20 vA0.11
59// **********************************************
60function checkGalleryURL() {
61 if (YD.hasClass(document.body,"category")) {
62 // Get the location path
63 var path = window.location.pathname.toLowerCase();
64 // Take the name of gallery
65 var gallery = unescape(path.substr(path.lastIndexOf("/") 1));
...
...
oddstuff
Dec-25-2007, 08:56 PM
Me no nuthin about js either, just using Firebug to troubleshoot. :D
Ok, next error.
missing ) after argument list
var gallery = unescape(path.substr(path.lastIndexOf("/") 1));\n
pointing to line 65 below.
// **********************************************
57// User Friendly Gallery URL w/Yahoo Panel Popup
58// 2007/04/20 vA0.11
59// **********************************************
60function checkGalleryURL() {
61 if (YD.hasClass(document.body,"category")) {
62 // Get the location path
63 var path = window.location.pathname.toLowerCase();
64 // Take the name of gallery
65 var gallery = unescape(path.substr(path.lastIndexOf("/") 1));
...
...Done! Added the "\n"...
Nothing has changed. Aaiiee... I'm still hanging on.
Allen
Dec-25-2007, 09:16 PM
Done! Added the "\n"...
Nothing has changed. Aaiiee... I'm still hanging on.
Don't think the /n was to be added, it is just some kind of error indication I think.
Something about a missing }.
Check the source of the js and see if it's in the correct.
oddstuff
Dec-25-2007, 09:29 PM
Don't think the /n was to be added, it is just some kind of error indication I think.
Something about a missing }.
Check the source of the js and see if it's in the correct.OMG! The /galleries page just sprang into action, right after I removed the "\n"...
Thx so much, Allen. I was expecting help after new year and you have been ultra-patient with my scripts.
:bow
Time to back up all my scripts...
Reibs
Feb-17-2008, 06:43 AM
hey guys, a couple of problems here.... (tobeframed.smugmug.com)
My goal is to have
1) a home page with JUST a title, nav bar and slideshow.
2) a galleries page, with just title, nav bar and my public galleries
3) Information page with a title, nav bar and a map to where I'm located
4) Guestbook, with title, nav bar and guestbook
I think I am well on my way to achieving this, but I am having trouble with my pages all being the same except for the guestbook
I put the following in my CSS box:
.homepage #galleriesBox {display: none;}
... it removes the gallery from my homepage as well as my "about" page (which I named incorrectly to begin with, it should have been named "galleries", but thats another story.
When I take the code above out of the CSS, my galleries show on my homepage Information page and Galleries page.
So I'm thinking that since my "home" page, "about" page and "information" page are all taking the changes I try to make to my home page, I must have some code incorrect in a higher level than what I am tinkering with.
Any ideas... can someone please have a look at my code?
:scratch
Reibs
Allen
Feb-17-2008, 07:36 AM
hey guys, a couple of problems here.... (tobeframed.smugmug.com)
My goal is to have
1) a home page with JUST a title, nav bar and slideshow.
2) a galleries page, with just title, nav bar and my public galleries
3) Information page with a title, nav bar and a map to where I'm located
4) Guestbook, with title, nav bar and guestbook
I think I am well on my way to achieving this, but I am having trouble with my pages all being the same except for the guestbook
I put the following in my CSS box:
.homepage #galleriesBox {display: none;}
... it removes the gallery from my homepage as well as my "about" page (which I named incorrectly to begin with, it should have been named "galleries", but thats another story.
When I take the code above out of the CSS, my galleries show on my homepage Information page and Galleries page.
So I'm thinking that since my "home" page, "about" page and "information" page are all taking the changes I try to make to my home page, I must have some code incorrect in a higher level than what I am tinkering with.
Any ideas... can someone please have a look at my code?
:scratch
Reibs
You have a duplicate homepage for your galleries but none show so all
galleries must be private. Only public galleies will show.
This is the link you'll need to use for the galleires page.
http://tobeframed.smugmug.com/galleries
Tkae a look at this page (http://allen-steve.smugmug.com/gallery/3819841) for one example of how to set up "guestbook", "about" page and "information".
On this page (http://dgrin.smugmug.com/gallery/2160039) scroll down to The Galleries Page III and you'll see the CSS for
showing/hiding the galleries on the homepage and galleries pages.
Reibs
Feb-17-2008, 07:38 AM
thanks.. again Allen
I'll give'r a try
Brit583
Jan-25-2009, 08:38 AM
I've gone through a bunch of threads and finally reached this one and have read it all and still not quite sure what I need to do. I was able to create a featured homepage, but this is exactly what I want and I'm trying to figure out how to make this happen:
When viewers type in my web address: www.brit583.smugmug.com (http://www.brit583.smugmug.com)
I want them to:
1. come to a page with my banner (only) that they click to enter
2. once they're in my page, I want the slideshow and nav bar and header.
How do I make that happen? Your help is greatly appreciated!
Thanks!
Brit583
Jan-25-2009, 12:35 PM
*bump* anyone out there with some pointers to my previous post?
J Allen
Jan-25-2009, 12:42 PM
For your homepage, you could set your banner as an image link, that when clicked, would take you to a gallery, that you have set up with a slide show only, and it would show everything else you want....does this sound like what your trying to do?
Brit583
Jan-26-2009, 04:38 AM
If you look at this site...this is what I want.. www.debspics.smugmug.com (http://www.debspics.smugmug.com)
It has the front page with a logo/picture that you click to enter...then once you get inside, it has the nav bar and all the options for people view galleries...I want to do that. LOL :)
any help is greatly appreciated!
J Allen
Jan-26-2009, 05:30 AM
To get started:
1- Create an unlisted gallery named homepage. Add your slide show code from your bio-box to your new homepage album description area.
2- Post back when your done with that, and A direct link to that gallery.
J Allen
Jan-26-2009, 06:22 AM
Also lets go ahead and start a new thread on this, titled maybe "Brits's Customizing thread" or something like that. :D
Brit583
Jan-26-2009, 10:54 AM
Also lets go ahead and start a new thread on this, titled maybe "Brits's Customizing thread" or something like that. :D
Okay, I've created the new "homepage" gallery and copied the bio-box slide show code and inserted it into the description. Here's the direct link to the homepage gallery: http://brit583.smugmug.com/gallery/7198109_JqyM9
Should I really start a new thread? I'm a newbie...so I don't want to get yelled at :D
Thanks so much for your help!
J Allen
Jan-26-2009, 12:06 PM
Brittany-
This code will hide the smugmug link in your footer, but I've created a hidden one
also. Its under your banner, on the left side, just move your mouse around till you see it change from the pointer to the hand link. Also please back-up all your existing codes into a text file or something so you do not lose your original site should you not like this.
Add this to your CSS Box:
/*===Displays only banner on Homepage===*/
.homepage #navcontainer,
.homepage #bioBox
{display:none;}
/*==Move banner down on home page==*/
.homepage #my_banner
{margin: 20px auto;}
/*===Footer of Web Page===*/
.cartlink_footer {display: none;}
.loginLink {display: none;}
#feedHelp {visibility: hidden;}
#footer .nav {display: none;}
#feeds {display: none;}
#footer .text {font-size:50%;}
.homepage #footer {margin-top:-20px;}
/* ====== Hidden Login Link ======== */
.loggedIn #hiddenMenu {display:none !important;}
#hiddenMenu {display:block !important;}
#hiddenMenu ul li {display: inline;}
#hiddenMenu ul li a
{text-decoration: none;
padding: .2em 1em;
background:none;
color: black; cursor: pointer;}
.gallery_7198109 .pageNav,
.gallery_7198109 .play_slideshow,
.gallery_7198109 #albumNav_top,
.gallery_7198109 #albumNav_bottom,
.gallery_7198109 .nophotos h3,
.gallery_7198109 #breadcrumb
{display: none;}
Change your Custom Header Box to this:
<div id="my_banner"><a href="http://brit583.smugmug.com/gallery/7198109_JqyM9">
<img border="0" src="http://brit583.smugmug.com/photos/460799913_FUm5c-O.jpg" width="750" height="300">
</a></div>
<div id="navcontainer">
<ul>
<li><a href="/gallery/7198109_JqyM9">Home</a></li>
<li><a href="/gallery/7124881_kRRgK">Children</a></li>
<li><a href="/galleries">Galleries</a></li>
<li><a href="/gallery/7135963_PWFbk">Couples</a></li>
<li><a href="/gallery/7124885_Ppyx4">Families</a></li>
</ul>
</div>
<!-- ------------ hiddenMenu ------------ -->
<div id="hiddenMenu">
<ul>
<li> <a href="javascript:void(0)"
onclick="window.location='https://secure.smugmug.com/login.mg?goTo='+window.location.href"></a></li>
</ul>
Add this to your bottom java script:
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
addEvent(window, "load", rem_pipes);
function rem_pipes () {
for (var i = 0; i<3; i++) {
var objElement = document.getElementById("footer")
if (objElement != null)
{
var str_a = new String(objElement.innerHTML);
str_a = str_a.replace('|', '')
objElement.innerHTML = str_a;
}
var objElement = document.getElementById("feeds")
if (objElement != null)
{
var str_b = new String(objElement.innerHTML);
str_b = str_b.replace('|', '')
objElement.innerHTML = str_b;
}
}
}
J Allen
Jan-26-2009, 12:33 PM
Should I really start a new thread? I'm a newbie...so I don't want to get yelled at :D
Always a good idea to start your own thread, so you can track all your updates and changes over time. Nobody will yell at you I promise :thumb
Brit583
Jan-26-2009, 12:51 PM
Okay, I entered all that code and the "splash" page with just my banner worked! However, when I clicked on it, the slideshow was gone and when I clicked on the different galleries no pictures showed up...it was like they disappeared. Thanks for telling me to back up my code...I would have been SOL!
I'm going to start a new thread!
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.