Google search and Local Business results
|
Oct. 06, 2010, 10:59 PM
(This post was last modified: Oct. 07, 2010 04:22 AM by JJoe.)
Post: #1
|
|||
|
|||
Google search and Local Business results
Google search occasionally has "Local business" results for some U.S. searches. The code sent for this depends on the user agent. The set hides the google map for at least Opera, Mozilla 2, and ChromePlus.
Problem appears to be solved by forcing a Firefox 3.0 user-agent. Haven't tried to modify google-css-alt.css yet. EDIT: Best I've been able to do with css is to add a min-width statement to google-css-alt.css. Not very elegant but does seem to work in all affected browsers tested. Code: #lu_map { Am attaching images and relevant (I hope) code for Good and Broken pages but in brief. Good Code: <td valign=top style="padding-right:8px" width=252> Broke Code: <td valign=top style="padding-right:8px"> |
|||
Oct. 07, 2010, 04:05 PM
Post: #2
|
|||
|
|||
RE: Google search and Local Business results
(Oct. 06, 2010 10:59 PM)JJoe Wrote: EDIT: Best I've been able to do with css is to add a min-width statement to google-css-alt.css. Not very elegant but does seem to work in all affected browsers tested. I have tested with the current minor version of Opera 10 and a US IP at http://www.google.com/search?q=dog . It doesn't look like there is an elegant way. The responsible property is "width" in this google-css-alt.css rule: Code: /* News content tables */ It's actually not just about news tables, but also "Videos" etc.. If width isn't set, then the tables don't stretch to the entire window width. If width or min-width is set to a fixed value, then the layout is broken in Firefox. So, i agree that your suggestion is an acceptable work-around; i'll add it. |
|||
Oct. 07, 2010, 06:51 PM
(This post was last modified: Oct. 07, 2010 06:57 PM by ProxRocks.)
Post: #3
|
|||
|
|||
RE: Google search and Local Business results
i "think" i found a fix...
but allow me to cross-browser test this evening before i post... edit: that is, for the "local businesses" width issue - may i have a "videos" width issue link to use as a test, please? |
|||
Oct. 07, 2010, 07:06 PM
Post: #4
|
|||
|
|||
RE: Google search and Local Business results | |||
Oct. 07, 2010, 10:19 PM
Post: #5
|
|||
|
|||
RE: Google search and Local Business results
i "thought" i might be onto something 'cause my "old" default (based on the 2/13 with 6/6 updates) displays the "local businesses" map correctly...
but now that i'm on the 9/19, i'm seeing what JJoe posted above... so i started some mixing-and-matching on a "test.cfg" with only three filter changes from the 9/19 out-of-the-box... with those three filters, my "old" default Google view is back and the "local businesses" map is displayed correctly - BUT in trying to "rewrite" the three filters that those three 'replace' isn't as easy as it might sound... i'll do more digging over the weekend... but for the curious, these are the three filters: Code: Name = "Google Search: Alternate Display 10.08.22 (multi) [sd ku] (d.s) PFR [add]" i'll see if i can pinpoint it more precisely over the weekend... |
|||
Oct. 07, 2010, 10:26 PM
Post: #6
|
|||
|
|||
RE: Google search and Local Business results
Code: #lu_map { i'm sure i can find a three-browser fix, but i'll need the weekend to come up with something... fingers crossed, i'll keep ya posted... |
|||
Oct. 07, 2010, 11:29 PM
(This post was last modified: Oct. 07, 2010 11:30 PM by JJoe.)
Post: #7
|
|||
|
|||
RE: Google search and Local Business results
(Oct. 07, 2010 10:26 PM)ProxRocks Wrote: IE8 doesn't require it. Adding it doesn't or didn't appear to break anything. I think I see/understand something that you don't see/understand and will try to review and explain (if necessary) in a little while. |
|||
Oct. 08, 2010, 04:22 AM
(This post was last modified: Oct. 08, 2010 03:55 PM by JJoe.)
Post: #8
|
|||
|
|||
RE: Google search and Local Business results
(Oct. 07, 2010 11:29 PM)JJoe Wrote: I think I see/understand something that you don't see/understand and will try to review and explain (if necessary) in a little while. First, I'm not a css expert and it has been a while. So... The Local business results are in a table Code: <table class=ts width=100% style="margin-top:7px;line-height:100%"> "class=ts" also appears elsewhere in the page and other Google pages. sidki has found that, for sidki's mods, the TD elements inside the cells given the 'ts' class must have and not have certain properties sidki Wrote:If width isn't set, then the tables don't stretch to the entire window width. If width or min-width is set to a fixed value, then the layout is broken in Firefox. So, sidki uses a separate style sheet that overrules Google's choices with Code: .ts td { The thing is Code: <td width=62% valign=top> follows the google map and its width property is change to "auto" by the style sheet. When the google map is provided by "<span id=lu_map style="background:url('http://mt0.google.com/vt/data=", the span's image is partially hidden. When the google map is provided by "<img border="0" width="100%" id="lu_map" alt="" src="http://mt0.google.com/vt/data=", the image is not hidden. For me, what happens depends on the code that google sends not the browser used. IOW, IE8 renders the span's image as partially hidden and the <img*> as totally visible. Adding a minimum width property to the span's styling allows the background image to show and doesn't seem to affect the page that uses the img tag. Your ". + Google Light Blue Theme 10.05.08 (!nn) [ozo] (o.s) PFR [add]" filter contains the css styling. From what I can decypher, the filter appears to be like sidki's style sheet but without the part causing the problem. So, there may still be problems with Firefox. Rewriting filters and the required testing... I think I'd rather add a little css to the style sheet and make better use of our weekend HTH Edit for spelling |
|||
« Next Oldest | Next Newest »
|