|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Always in the Sh**
|
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] |
|
|
|
|
#2
|
|
|
SmugMug Support Hero
|
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 | |
|
|
|
|
#3
|
|
|
Mod Emeritus
|
|
|
|
|
|
#4
|
||
|
Always in the Sh**
|
Quote:
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] |
|
|
|
||
|
#5
|
||
|
SmugMug Support Hero
|
Quote:
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 | |
|
|
|
||
|
#6
|
||
|
SmugMug Support Hero
|
Quote:
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial | |
|
|
|
||
|
#7
|
|
|
SmugMug Support Hero
|
David, Add this to your css:
.map #david_ss {display: none !important;}
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial | |
|
|
|
|
#8
|
||
|
Mod Emeritus
|
Quote:
Cool. Now I just have to dig into the CSS to format it. |
|
|
|
||
|
#9
|
||
|
SmugMug Support Hero
|
Quote:
__________________
Rich | My Site | SmugHelp | Customizing SmugMug Simplified | FAQ | Webdev Tutorial | |
|
|
|
||
|
#10
|
|
|
Photostar Media
|
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 |
|
|
|
|
#11
|
|
|
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! |
|
|
|
|
#12
|
|
|
Big grins
|
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] |
|
|
|
|
#13
|
||
|
Major grins
|
Quote:
Try adding this to your CSS code and see if this is what you want. #navcontainer {display: none;} .homepage #navcontainer {display: block;} |
|
|
|
||
|
#14
|
||
|
SmugMug Support Hero
|
Quote:
![]() 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> #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 | |
|
|
|
||
|
#15
|
||
|
Big grins
|
Quote:
Thank you for your response Brad richW's solution was the good one The Smugmugers community is really great ! ![]() Fast and efficient !! |
|
|
|
||
|
#16
|
||
|
Big grins
|
Quote:
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 ?... |
|
|
|
||
|
#17
|
||
|
Big grins
|
Quote:
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] |
|
|
|
||
|
#18
|
|
|
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. |
|
|
|
|
#19
|
|
|
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 |
|
|
|
|
#20
|
||
|
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:
|
|
|
|
||
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|