• 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 1  of  2
1 2
Old Apr-29-2007, 06:46 AM
#1
Sewerman is offline Sewerman OP
Always in the Sh**
Sewerman's Avatar
Google map
I would like to add my google map to my nav bar but not have it show up on my home page all the time is there a way to do this ?
smugmug page is
plumgraphics.smugmug.com
__________________
[FONT=verdana] Don't sweat the petty things and Don't pet the sweaty things!

http://plumgraphics.net
J D Plummer

[/FONT]
Old Apr-29-2007, 07:53 AM
#2
richW is offline richW
SmugMug Support Hero
richW's Avatar
Sample here: http://photos.lmsportspix.com/map

From the control panel enable your map to be viewed on the homepage.

In your footer change this:

<*script*>
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
<*/script*>

to this:

<*script type="text/javascript"*>
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("map"))
YD.addClass(document.body, "map");
<*/script*>

Remove *'s after you paste in the code.



Add to your css section:

.homepage #mapBox,
.galleries #mapBox {display:none;}

.map #galleriesBox,
.map #categoriesBox,
.map #featuredBox,
.map #bioBox {display: none;}

.map #mapBox {display: block;}

Add to your navBar:

<li><a href="http://plumgraphics.smugmug.com/map">Map</a></li>

We made need to adjust the css after you paste in the code.
This should get you going....
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial |
Old Apr-29-2007, 09:05 AM
#3
DavidTO is offline DavidTO
Mod Emeritus
DavidTO's Avatar
rich,

I tried all that, and http://davidrosenthal.smugmug.com/map just takes me to my homepage.
__________________
Moderator Emiritus
Dgrin FAQ | Me | Workshops
Old Apr-29-2007, 09:08 AM
#4
Sewerman is offline Sewerman OP
Always in the Sh**
Sewerman's Avatar
Quote:
Originally Posted by richW
Sample here: http://photos.lmsportspix.com/map

From the control panel enable your map to be viewed on the homepage.

In your footer change this:

<*script*>
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
<*/script*>

to this:

<*script type="text/javascript"*>
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("map"))
YD.addClass(document.body, "map");
<*/script*>

Remove *'s after you paste in the code.



Add to your css section:

.homepage #mapBox,
.galleries #mapBox {display:none;}

.map #galleriesBox,
.map #categoriesBox,
.map #featuredBox,
.map #bioBox {display: none;}

.map #mapBox {display: block;}

Add to your navBar:

<li><a href="http://plumgraphics.smugmug.com/map">Map</a></li>

We made need to adjust the css after you paste in the code.
This should get you going....
Thanks again Rich! looks good.
The red paint on the sock comment yesterday was in reference to Curt Shilling's bloody sock that the Baltimore annoncer said was paint.
__________________
[FONT=verdana] Don't sweat the petty things and Don't pet the sweaty things!

http://plumgraphics.net
J D Plummer

[/FONT]
Old Apr-29-2007, 09:19 AM
#5
richW is offline richW
SmugMug Support Hero
richW's Avatar
Quote:
Originally Posted by DavidTO
rich,

I tried all that, and http://davidrosenthal.smugmug.com/map just takes me to my homepage.
David, Did you put this in your js section?
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}


http://www.dgrin.com/showthread.php?p=355505#post355505
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial |
Old Apr-29-2007, 09:21 AM
#6
richW is offline richW
SmugMug Support Hero
richW's Avatar
Quote:
Originally Posted by Sewerman
Thanks again Rich! looks good.
The red paint on the sock comment yesterday was in reference to Curt Shilling's bloody sock that the Baltimore annoncer said was paint.
Your Welcome.... I thought is was regarding RED SOX
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial |
Old Apr-29-2007, 09:29 AM
#7
richW is offline richW
SmugMug Support Hero
richW's Avatar
David, Add this to your css:
.map #david_ss {display: none !important;}
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial |
Old Apr-29-2007, 09:34 AM
#8
DavidTO is offline DavidTO
Mod Emeritus
DavidTO's Avatar
Quote:
Originally Posted by richW
David, Did you put this in your js section?
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}


http://www.dgrin.com/showthread.php?p=355505#post355505

Cool. Now I just have to dig into the CSS to format it. Thanks!
__________________
Moderator Emiritus
Dgrin FAQ | Me | Workshops
Old Apr-29-2007, 09:49 AM
#9
richW is offline richW
SmugMug Support Hero
richW's Avatar
Quote:
Originally Posted by DavidTO
Cool. Now I just have to dig into the CSS to format it. Thanks!
Your Welcome....
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial |
Old May-13-2007, 02:23 AM
#10
mrweisfeld is offline mrweisfeld
Photostar Media
mrweisfeld's Avatar
Eek7 Opps ... I used my registered domain name
I followed these instructions to a T, but made the mistake of using www.photostarmedia.com as the URL for my Google maps API. However, I think i needed to use http://photostar.smugmug.com. How do I edit the key?? I does not appear to be an option any more?

Thanks
Old Jul-02-2008, 02:53 AM
#11
Adriano61 is offline Adriano61
Beginner grinner
I followed all the suggestions and it was easy enough to set my /map page.
I have only one problem: I found the Goggle map covering just partially the block and not working properly (easier to see than explain it: adrianomongini.smugmug.com/map).

The page is working properly only when the map is displayed also in the main page (not including in the CSS code: .homepage #mapBox {display: none;} ).

I think there is another piece of code that is interfering but I can't find it.
I have finished my resources investigating it so I have to ask help to you guys!
Old Nov-06-2008, 10:06 AM
#12
Pactus45 is offline Pactus45
Big grins
Pactus45's Avatar
Google map only on homepage
[FONT=Comic Sans MS]Hi ![/FONT]

[FONT=Comic Sans MS]I'm Christophe from France. [/FONT]
[FONT=Comic Sans MS]On my Smugmug site (www.christophemouton.com ), I've a Google Map that I include in the Custom Header of my control panel.[/FONT]
[FONT=Comic Sans MS]But I see it on each page of my site ! I only want to see it on the homepage....[/FONT]
[FONT=Comic Sans MS]Can you help me please ?[/FONT]

[FONT=Comic Sans MS]Thanks a lot and sorry for my English
[/FONT]

[FONT=Comic Sans MS]Christophe Mouton[/FONT]
Old Nov-06-2008, 10:22 AM
#13
digismile is offline digismile
Major grins
digismile's Avatar
Quote:
Originally Posted by Pactus45
[FONT=Comic Sans MS]Hi ![/FONT]

[FONT=Comic Sans MS]I'm Christophe from France. [/FONT]
[FONT=Comic Sans MS]On my Smugmug site (www.christophemouton.com ), I've a Google Map that I include in the Custom Header of my control panel.[/FONT]
[FONT=Comic Sans MS]But I see it on each page of my site ! I only want to see it on the homepage....[/FONT]
[FONT=Comic Sans MS]Can you help me please ?[/FONT]

[FONT=Comic Sans MS]Thanks a lot and sorry for my English
[/FONT]

[FONT=Comic Sans MS]Christophe Mouton[/FONT]
Bonjour Christophe!

Try adding this to your CSS code and see if this is what you want.

#navcontainer {display: none;}

.homepage #navcontainer {display: block;}
__________________
Brad

www.digismile.ca
Old Nov-06-2008, 10:24 AM
#14
richW is offline richW
SmugMug Support Hero
richW's Avatar
Quote:
Originally Posted by Pactus45
[FONT=Comic Sans MS]Hi ![/FONT]

[FONT=Comic Sans MS]I'm Christophe from France. [/FONT]
[FONT=Comic Sans MS]On my Smugmug site (www.christophemouton.com ), I've a Google Map that I include in the Custom Header of my control panel.[/FONT]
[FONT=Comic Sans MS]But I see it on each page of my site ! I only want to see it on the homepage....[/FONT]
[FONT=Comic Sans MS]Can you help me please ?[/FONT]

[FONT=Comic Sans MS]Thanks a lot and sorry for my English
[/FONT]

[FONT=Comic Sans MS]Christophe Mouton[/FONT]
Welcome to dgrin....

You can wrap all the map code in a division and give the division an i.d., then you can hide the map as needed.

Use the following in your header section:
Code:
<div align="center" id="myMap">

<iframe src="http://www.my-google-maps.com/my-google-maps.php?SID=1224358537-UeVCt" width="706" height="380" frameborder="0" hspace="0" vspace="0" marginheight="0" marginwidth="0" scrolling="no"></iframe>

</div>
Add to the css section:

#myMap {display: none;}
.homepage #myMap {display: block;}

See how this works. Need more help? Yell :)
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial |
Old Nov-06-2008, 11:55 AM
#15
Pactus45 is offline Pactus45
Big grins
Pactus45's Avatar
Quote:
Originally Posted by digismile
Bonjour Christophe!

Try adding this to your CSS code and see if this is what you want.

#navcontainer {display: none;}

.homepage #navcontainer {display: block;}


Thank you for your response Brad
richW's solution was the good one
The Smugmugers community is really great !
Fast and efficient !!
Old Nov-06-2008, 12:02 PM
#16
Pactus45 is offline Pactus45
Big grins
Pactus45's Avatar
Quote:
Originally Posted by richW
Welcome to dgrin....

You can wrap all the map code in a division and give the division an i.d., then you can hide the map as needed.

Use the following in your header section:
Code:
<div align="center" id="myMap">

<iframe src="http://www.my-google-maps.com/my-google-maps.php?SID=1224358537-UeVCt" width="706" height="380" frameborder="0" hspace="0" vspace="0" marginheight="0" marginwidth="0" scrolling="no"></iframe>

</div>
Add to the css section:

#myMap {display: none;}
.homepage #myMap {display: block;}

See how this works. Need more help? Yell :)

Maestro, what I yell is YOU'RE GREAT !
Thank you !

So, I've another map on my homepage which is "Around the World" but, if it's ok in owner's view, there is a white screen in visitors' view... stange ?...
Old Jan-24-2009, 11:44 AM
#17
Pactus45 is offline Pactus45
Big grins
Pactus45's Avatar
Quote:
Originally Posted by digismile
Bonjour Christophe!

Try adding this to your CSS code and see if this is what you want.

#navcontainer {display: none;}

.homepage #navcontainer {display: block;}

Hi Brad
I watch your site very often and I'd want to have the same type of scrolling menus than you. But infortunately, I don't succeed...
Can you help me please ?
I have lots of buttons-menus as you can see... And I think scrolling menus are the solution
Thank you

Christophe
__________________
[FONT=Comic Sans MS]Loire Valley, the heart of France !
Christophe Mouton
www.christophemouton.com
[/FONT]
Old Mar-17-2009, 11:13 AM
#18
psjames is offline psjames
Beginner grinner
/map not showing
Not sure what I did but it is now working.

Paul


I had it so that psjames.com/map would show my map. I was getting an error and made a change in my sitewide customization and now the map does not show. I want the slide show to show at www.psjames.com then galleries at www.psjames.com/galleries and then map at www.psjames.com/map the smugmug url is lpjames.smugmug.com.

any help would be appriciated.

Thank you,

Paul

Last edited by psjames; Mar-17-2009 at 11:47 AM.
Old Aug-02-2009, 04:25 PM
#19
Vana is offline Vana
Spring chicken
Google Map
I was able to display the map on my homepage. but i like it on my About page: http://www.localcolor7.com/gallery/9123419_KZmh5

A good example will be Andy's Find page: http://www.moonriverphotography.com/find
__________________
Vana
Old Aug-23-2009, 09:11 PM
#20
RuSu is offline RuSu
Absolute Beginner
Close but no cigar
Seems I'm getting closer based on these codes provided by Rich. However, I now have an error on my site, which I suspect, though am not sure, is because I haven't any code pointing to my google map which is
[FONT=Arial][/FONT]
[FONT=Arial]?feedType=geoUser&Data=RuSu.[/FONT]
[FONT=Arial][/FONT]
[FONT=Arial]Instead, when clicking on my nav bar map link I'm brought to a map category showing a map gallery when what I want is to have it bring the viewer directly to the map itself as does Rich's.[/FONT]
[FONT=Arial][/FONT]
[FONT=Arial]http://photos.lmsportspix.com/map
[/FONT]

[FONT=Arial]What do I need to add, delete, do?[/FONT]
[FONT=Arial][/FONT]
[FONT=Arial]Thanks.
[/FONT]


Quote:
Originally Posted by richW
Sample here: http://photos.lmsportspix.com/map

From the control panel enable your map to be viewed on the homepage.

In your footer change this:

<*script*>
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");
<*/script*>

to this:

<*script type="text/javascript"*>
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("map"))
YD.addClass(document.body, "map");
<*/script*>

Remove *'s after you paste in the code.



Add to your css section:

.homepage #mapBox,
.galleries #mapBox {display:none;}

.map #galleriesBox,
.map #categoriesBox,
.map #featuredBox,
.map #bioBox {display: none;}

.map #mapBox {display: block;}

Add to your navBar:

<li><a href="http://plumgraphics.smugmug.com/map">Map</a></li>

We made need to adjust the css after you paste in the code.
This should get you going....
Page 1  of  2
1 2
Tell The World!  

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