• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Page 4  of  17
1 2 3 4 5 6 7 8 14 Last »
Old Feb-25-2011, 02:29 PM
#61
Mohamed.Ghuloom is offline Mohamed.Ghuloom
Eyes are my Camera
Mohamed.Ghuloom's Avatar
Quote:
Originally Posted by jfriend View Post
In your top javascript, you have only a partial copy of the DuplicateHomepage code (it's truncated at the end). Get a fresh copy and fix up the top javascript.

I don't understand exactly what you're trying to do, but I do see that neither the photoVideoBox nor the bioBox are enabled for display on your homepage (in the homepage layout button). If you're trying to use either of them on copies of the homepage, then you need to enable them for display and then your CSS can control which copy of the homepage they show on. Also, you'll have to get that full screen slideshow off all your other copies of the homepage.
Thanks jfriend, I fixed the top javascript code. Now the two pages /about and /ads work and the appropriate box in each appears. One more problem remains, the slideshow still works behind the /ads page and I don't know why that happens. I have added it to the fullscreen slideshow code just like I did for the /about page. /about worked (no slideshow in it), but /ads didn't... Strange..
__________________
Mohamed Photos
Give a Message
Old Feb-25-2011, 02:31 PM
#62
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by Mohamed.Ghuloom View Post
Thanks jfriend, I fixed the top javascript code. Now the two pages /about and /ads work and the appropriate box in each appears. One more problem remains, the slideshow still works behind the /ads page and I don't know why that happens. I have added it to the fullscreen slideshow code just like I did for the /about page. /about worked (no slideshow in it), but /ads didn't... Strange..
I'm sorry, but I'm not familiar with how that full screen slideshow interacts with the different copies of the homepage. I'd suggest you post your question in the thread for the full screen slideshow.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Feb-25-2011, 02:36 PM
#63
Mohamed.Ghuloom is offline Mohamed.Ghuloom
Eyes are my Camera
Mohamed.Ghuloom's Avatar
Quote:
Originally Posted by jfriend View Post
I'm sorry, but I'm not familiar with how that full screen slideshow interacts with the different copies of the homepage. I'd suggest you post your question in the thread for the full screen slideshow.
Thanks jfriend, I'll just keep it as it is, until I figure it out myself. It looks nice anyways :P
__________________
Mohamed Photos
Give a Message
Old Feb-28-2011, 01:55 AM
#64
joehawks is offline joehawks
Big grins
Quote:
Originally Posted by jfriend View Post
Yes, if each navbar has it's own unique CSS ID:

<div id="navbar1"> ... </div>
<div id="navbar2"> ... </div>

Then, you could use CSS like this to show a different navbar on the galleries page:

/* hide navbar2 by default */
#navbar2 {display: none;}

/* on galleries page, show navbar2, hide navbar1 */
.galleries #navbar2 {display: block;}
.galleries #navbar1 {display: none;}
I have setup a second homepage, but I use drop down menu which is described as <div class="menu">,not ID,
I also setup another class <div class="menu1"> to be a defferent menu on my second homepage,
but when I get all these to work ,both my default homepage and my second homepage display two dropdown bars

so ,what can I do ? thanks!
__________________
Keep Your Wedding All The Life

www.joehawks.com
Old Feb-28-2011, 02:14 AM
#65
joehawks is offline joehawks
Big grins
Quote:
Originally Posted by joehawks View Post
I have setup a second homepage, but I use drop down menu which is described as <div class="menu">,not ID,
I also setup another class <div class="menu1"> to be a defferent menu on my second homepage,
but when I get all these to work ,both my default homepage and my second homepage display two dropdown bars

so ,what can I do ? thanks!
Solved ,thanks!
__________________
Keep Your Wedding All The Life

www.joehawks.com
Old Mar-01-2011, 01:06 AM
#66
joehawks is offline joehawks
Big grins
Quote:
Originally Posted by joehawks View Post
Solved ,thanks!
speak too soon ,
now it doesnt work , after clicking on the link to the second homepage "english", the menu for the second homepage dosen't appear ,instead,the menu for the real homepage still stay there!

why?
pls help .
thanks!
__________________
Keep Your Wedding All The Life

www.joehawks.com

Last edited by joehawks; Mar-01-2011 at 01:48 AM.
Old Mar-01-2011, 06:55 AM
#67
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by joehawks View Post
speak too soon ,
now it doesnt work , after clicking on the link to the second homepage "english", the menu for the second homepage dosen't appear ,instead,the menu for the real homepage still stay there!

why?
pls help .
thanks!
Even though you are currently using a class on your menu, you can also add an ID (an object can have both). So, you can add id="navbar1" and id="navbar2" to the different menus and use my earlier code to control which shows where. If you want further help, then please be more specific about exactly which navbar you want to show on which pages.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Mar-01-2011, 06:06 PM
#68
joehawks is offline joehawks
Big grins
Quote:
Originally Posted by jfriend View Post
Even though you are currently using a class on your menu, you can also add an ID (an object can have both). So, you can add id="navbar1" and id="navbar2" to the different menus and use my earlier code to control which shows where. If you want further help, then please be more specific about exactly which navbar you want to show on which pages.
Thanks John!
it works again now because I forgot something in top java.
I put the code this way:

keep the "menu" and "menu1" as classes ,
then use
.homepage .menu1 {display: none} to hide the second menu on the default homepage;
use
.galleries .menu1 {display: block} to show it on the second homepage.

don't know much about coding , just had a try,and it seems to be working properly.

AND:
Could I have a different page title for my second homepage? thanks!
__________________
Keep Your Wedding All The Life

www.joehawks.com
Old Mar-01-2011, 06:09 PM
#69
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by joehawks View Post
Thanks John!
it works again now because I forgot something in top java.
I put the code this way:

keep the "menu" and "menu1" as classes ,
then use
.homepage .menu1 {display: none} to hide the second menu on the default homepage;
use
.galleries .menu1 {display: block} to show it on the second homepage.

don't know much about coding , just had a try,and it seems to be working properly.

AND:
Could I have a different page title for my second homepage? thanks!
You could have a different title for the galleries page with this code in your bottom javascript:

Code:
if (YD.hasClass(document.body, "galleries"))
{
    document.title = "My Second Page Title";
}
Obviously, you please "My Second Page Title" with whatever you want it to be.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Mar-04-2011, 12:28 AM
#70
joehawks is offline joehawks
Big grins
Quote:
Originally Posted by jfriend View Post
You could have a different title for the galleries page with this code in your bottom javascript:

Code:
if (YD.hasClass(document.body, "galleries"))
{
    document.title = "My Second Page Title";
}
Obviously, you please "My Second Page Title" with whatever you want it to be.
Thanks John!
__________________
Keep Your Wedding All The Life

www.joehawks.com
Old Mar-05-2011, 01:07 AM
#71
pfrize is offline pfrize
Big grins
Can't make it work
Here is what I am trying to achieve:
- slideshow on the default home page.
- recent photos on a "recent" page.
Both pages are accessed via a link in the navbar... and both do not show anything.


I think I carefully followed all the steps. I also removed any other piece of script like the (awesome) html5 slideshow. So I have :
- Slideshow and Recent Photos checked in the Homepage Layout dropbox.
- The "DuplicateHomepage" script in Top Javascript.
- In the Head Tag :
Code:
<script type="text/javascript">
DuplicateHomepage("recent");
</script>
- In the CSS:
Code:
/* hide all homepage items by default on the homepage */
.homepage #recentPhotosBox,
.homepage #datesBox,
.homepage #featuredBox,
.homepage #slideshowBox,
.homepage #photoVideoBox,
.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #eventsBox,
.homepage #bioBox {display: none;}

/* on the actual default homepage, show the item(s) we want here */
.homepageDefault #slideshowBox {display: block;}

/* CSS for the recent pictures page */
.recent #recentPhotosBox {display: block;}
Many thanks for your help.
Philippe
http://pfrize.smugmug.com
Old Mar-05-2011, 05:32 AM
#72
jasonscottphoto is offline jasonscottphoto
I'm Just the Assistant...
jasonscottphoto's Avatar
I already have multiple homepages (galleries and find) done the "old" way. Any reason I should update to this method?
__________________
Jason Scott Photography | FB | Twitter | Google+ | Blog | Site Map | Gear
Old Mar-05-2011, 05:43 AM
#73
Allen is offline Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by affdigphotos View Post
I already have multiple homepages (galleries and find) done the "old" way. Any reason I should update to this method?
Don't fix something that's not broken. Why would you want to add all that extra code?
Old Mar-05-2011, 05:45 AM
#74
jasonscottphoto is offline jasonscottphoto
I'm Just the Assistant...
jasonscottphoto's Avatar
Quote:
Originally Posted by Allen View Post
Don't fix something that's not broken. Why would you want to add all that extra code?
I don't Just wondered if there was something "Better" about this way Thanks!
__________________
Jason Scott Photography | FB | Twitter | Google+ | Blog | Site Map | Gear
Old Mar-05-2011, 07:01 AM
#75
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by pfrize View Post
Here is what I am trying to achieve:
- slideshow on the default home page.
- recent photos on a "recent" page.
Both pages are accessed via a link in the navbar... and both do not show anything.


I think I carefully followed all the steps. I also removed any other piece of script like the (awesome) html5 slideshow. So I have :
- Slideshow and Recent Photos checked in the Homepage Layout dropbox.
- The "DuplicateHomepage" script in Top Javascript.
- In the Head Tag :
Code:
<script type="text/javascript">
DuplicateHomepage("recent");
</script>
- In the CSS:
Code:
/* hide all homepage items by default on the homepage */
.homepage #recentPhotosBox,
.homepage #datesBox,
.homepage #featuredBox,
.homepage #slideshowBox,
.homepage #photoVideoBox,
.homepage #galleriesBox,
.homepage #categoriesBox,
.homepage #eventsBox,
.homepage #bioBox {display: none;}

/* on the actual default homepage, show the item(s) we want here */
.homepageDefault #slideshowBox {display: block;}

/* CSS for the recent pictures page */
.recent #recentPhotosBox {display: block;}
Many thanks for your help.
Philippe
http://pfrize.smugmug.com
Per step 4 of the instructions, the DuplicateHomepage("recent"); line goes in your custom header, not in the head tag where you have it. It won't work where you have it because that's before the <body> tag so it doesn't even exist yet so it can't do it's job.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Mar-05-2011, 08:43 AM
#76
pfrize is offline pfrize
Big grins
Quote:
Originally Posted by jfriend View Post
Per step 4 of the instructions, the DuplicateHomepage("recent"); line goes in your custom header, not in the head tag where you have it. It won't work where you have it because that's before the <body> tag so it doesn't even exist yet so it can't do it's job.
How stupid of me!
Thank you for your time - and for the script of course.

Philippe
Old Mar-06-2011, 09:53 AM
#77
OnwardRocinante is offline OnwardRocinante
Onward Rocinante
Hi, I am attempting to completely redo my site and tried this in conjunction with the easy customizer. When I click on my 'galleries" there is nothing there. Galleries are enabled on the homepage. Sorry, I am an idiot and have not done any of this stuff in a couple of years.
Old Mar-06-2011, 10:09 AM
#78
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by OnwardRocinante View Post
Hi, I am attempting to completely redo my site and tried this in conjunction with the easy customizer. When I click on my 'galleries" there is nothing there. Galleries are enabled on the homepage. Sorry, I am an idiot and have not done any of this stuff in a couple of years.
In your CSS, change this:

Code:
/* on the actual default homepage, show the item(s) we want here */
.homepageDefault #slideshowBox {display: block;}
.galleries #galleriesBox,
to this:

Code:
/* on the actual default homepage, show the item(s) we want here */
.galleries #galleriesBox,
.galleries #categoriesBox,
.homepageDefault #slideshowBox {display: block;}
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Mar-06-2011, 10:18 AM
#79
OnwardRocinante is offline OnwardRocinante
Onward Rocinante
That worked! Thank you. Now on to adding one for "about (aka bio)" and "contact" and getting rid of those white and green bars...

Thanks again!
Old Mar-06-2011, 11:27 AM
#80
OnwardRocinante is offline OnwardRocinante
Onward Rocinante
Ok, strange...it works the first time I click on "galleries" but it doesn't work when I go back to my homepage via my Onward Rocinante banner and then try to go back to galleries by clicking on "galleries" again. I don't get it.
Page 4  of  17
1 2 3 4 5 6 7 8 14 Last »
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
Stretchy slideshow customization for the Homepage jfriend SmugMug Customization 854 Jan-24-2013 01:37 PM
Accidentally deleted my homepage while editing html dfg1983 SmugMug Customization 4 Aug-08-2009 05:28 PM
Link to my homepage? tsinsf SmugMug Support 1 Feb-22-2009 03:04 PM
Setting feature photos for homepage categories sledgehammer SmugMug Customization 0 Jan-28-2009 08:30 AM
Hiding Search on homepage Desert-Rat SmugMug Customization 2 Sep-03-2007 01:51 PM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump