![]() |
GoogleMaps Profile Tab Strange Problem
1 Attachment(s)
Hi all,
i add a profile tab with User Location on GoogleMaps. I have a very strange problem, After Profile page koaded , if you go to the User Location GoogleMap the map are not Ok. (See First Image). If you press Zoom In/Zoom Out from Browser View Menu the Map Fixed automaticaly! (See Second Image). Another Info may help you understand what happen... If you switch to User Location GoogleMap Tab when Profile Page Loading(Before finished) then load the map ok. I need your Help !!! First Image: https://vborg.vbsupport.ru/attachmen...1&d=1291198155 Second Image: https://vborg.vbsupport.ru/attachmen...1&d=1291198155 |
I don't know anything about google maps, but my guess would be that it's just because it's not visible when the page loads (but maybe that's the obvious part).
Is this a mod or did you code this yourself? I'm thinking if you can somehow change the tab switch js function for that tab you could add some call to refresh it (or maybe not load it at all until the user actually goes to that tab). |
Quote:
Quote:
Quote:
|
Well, maybe you could use a plugin on member_complete hook and do a str_replace of the javascript call. There may be a better way to handle it but I don't remember offhand how tabs are added to the profile.
I guess I should have let someone else help you...:) ETA: On my test site there's one custom tab (added by a modification), and it's got it's own template. In that case it would be easy because the javascript "toggle_collapse" call is in the template code. If you know what GMap method would refresh the map, you could try putting it in there after the toggle_collapse(); |
Quote:
Code:
onclick="return toggle_collapse('vbgooglemaps_ul')" but how? |
I haven't tried it, but maybe something like this:
Code:
onclick="var ret = toggle_collapse('vbgooglemaps_ul'); Load_Map(); return ret;" |
Here the code i use:
Quote:
i check the source with mozilla and the replace work !!! any idea? |
No, it looks OK to me. Could you post that section from the mozilla source?
ETA: except that, shouldn't it be Load_Map()? I'm not a js expert, I can't remember if you need the "()" for a function call. And in any case it seems like the alert should show up (unless it all gets ignored if there's an error an it somewhere). ETA more: I tried it and you do need it to be "Load_Map();" for the function to be called, but using just "Load_Map;" doesn't cause any error. |
i add the ()
here the code i view with Mozilla sources: Quote:
|
I created this html file for a test:
HTML Code:
<html> And it works, I get three alerts: toggle_collapse, Geo, Load_Map. But I'm not including the CSS classes or the real toggle_collapse function, so maybe that's the difference. |
no idea why not work :(:(:(
|
Me either. I spent some time trying to figure it out but couldn't.
I may have steered you in the wrong direction - I don't know if toggle_collapse() is even the right javascript function to be looking at for the tabs. That may be why you're not seeing the alerts. I'll look at it more on Friday if you haven't figured out something by then. |
Quote:
I Solve my problem, i modify vbulletin_tabctrl.js and now i'm ok!!!! You give me the idea :):):):):):):):):). you know about css? look here if u can give any good idea https://vborg.vbsupport.ru/showthread.php?t=234195 ;) |
All times are GMT. The time now is 01:20 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|