- Posts: 3
COMMUNITY FORUM
Problem using Google maps in K2
- Jeff Lin
-
- Offline
- New Member
Darell Sison said:I managed to fix this problem by editing the k2 css file from
div.itemFullText img {padding:2px;margin:4px;background:#fff;border:1px solid #ccc;}
to
div.itemFullText img {padding:2px;margin:4px;border:1px solid #ccc;}
Please Log in or Create an account to join the conversation.
- Peter Tran
-
- Offline
- New Member
- Posts: 5
An example link is here demo.gettranscend.com/index.php?option=com_k2&view=item&layout=item&id=78&Itemid=201
Any help will be much appreciated.
Thank you in advance.
Cheers,
Peter
Jeff Lin said:finally got it.. THANKS!Darell Sison said:I managed to fix this problem by editing the k2 css file fromdiv.itemFullText img {padding:2px;margin:4px;background:#fff;border:1px solid #ccc;}todiv.itemFullText img {padding:2px;margin:4px;border:1px solid #ccc;}
Please Log in or Create an account to join the conversation.
- Jeff Lin
-
- Offline
- New Member
- Posts: 3
you need to change both..
"Reply by Nick Texidor on June 10, 2010 at 2:15pm
I've just found this thread AFTER I discovered the 'fix' for this via a bit of CSSEdit work... however, in addition to the change mentioned in this thread, you may want to consider both the following, changes depending on how you use the maps:
Change
Line 158: div.itemFullText img {padding:2px;margin:4px;background:#fff;border:1px solid #ccc;}
To
Line 158: div.itemFullText img {padding:2px;margin:4px;border:1px solid #ccc;}
And change
Line 352: div.catItemIntroText img {padding:2px;margin:4px;background:#fff;border:1px solid #ccc;}
To
Line 352: div.catItemIntroText img {padding:2px;margin:4px;border:1px solid #ccc;}"
Peter Tran said:I modified com_k2/css/k2.css in both places to no avail.An example link is here demo.gettranscend.com/index.php?option=com_k2&view=item&...Any help will be much appreciated.Thank you in advance.Cheers,PeterJeff Lin said:finally got it.. THANKS!Darell Sison said:I managed to fix this problem by editing the k2 css file fromdiv.itemFullText img {padding:2px;margin:4px;background:#fff;border:1px solid #ccc;}todiv.itemFullText img {padding:2px;margin:4px;border:1px solid #ccc;}
Please Log in or Create an account to join the conversation.
- Nick Texidor
-
- Visitor
This has been developed to mainly work with the tags, due to the nature of the site, however, I can update as required. It went a long way from just being a module :^) It's now a full blown component with filtering options etc
Anyway, if you want to give it a try, please feel free to send me a message with your email address and I'll forward it over.
N
Please Log in or Create an account to join the conversation.
- Peter Tran
-
- Offline
- New Member
- Posts: 5
Any idea?
Jeff Lin said:copied from Nick's reply earlier in this thread..you need to change both.."Reply by Nick Texidor on June 10, 2010 at 2:15pmI've just found this thread AFTER I discovered the 'fix' for this via a bit of CSSEdit work... however, in addition to the change mentioned in this thread, you may want to consider both the following, changes depending on how you use the maps:ChangeLine 158: div.itemFullText img {padding:2px;margin:4px;background:#fff;border:1px solid #ccc;}ToLine 158: div.itemFullText img {padding:2px;margin:4px;border:1px solid #ccc;}And changeLine 352: div.catItemIntroText img {padding:2px;margin:4px;background:#fff;border:1px solid #ccc;}ToLine 352: div.catItemIntroText img {padding:2px;margin:4px;border:1px solid #ccc;}"Peter Tran said:I modified com_k2/css/k2.css in both places to no avail.An example link is here demo.gettranscend.com/index.php?option=com_k2&view=item&...Any help will be much appreciated.Thank you in advance.Cheers,PeterJeff Lin said:finally got it.. THANKS!Darell Sison said:I managed to fix this problem by editing the k2 css file fromdiv.itemFullText img {padding:2px;margin:4px;background:#fff;border:1px solid #ccc;}todiv.itemFullText img {padding:2px;margin:4px;border:1px solid #ccc;}
Please Log in or Create an account to join the conversation.
- Nick Texidor
-
- Visitor
It looks like you changed the K2.css file in the com_k2 folder, however you also have a copy in your template folder at templates/gk_corporate2/css/k2.css You need to change that one :^)
N
Peter Tran said:I did make th changes, but they did not work.
Any idea?
Please Log in or Create an account to join the conversation.
- Peter Tran
-
- Offline
- New Member
- Posts: 5
How did you know which template I am using?
Cheers,
Peter
Nick Texidor said:Hi Peter,It looks like you changed the K2.css file in the com_k2 folder, however you also have a copy in your template folder at templates/gk_corporate2/css/k2.css You need to change that one :^)NPeter Tran said:I did make th changes, but they did not work.Any idea?
Please Log in or Create an account to join the conversation.
- Nick Texidor
-
- Visitor
I looked at the source of the link you posted, at the top it shows the link to k2.css in your template folder. I had a quick look at the file and could see that the background was still set to white in the relevant tag.
Glad you got is fixed.
N
Peter Tran said:Thank you very much Nick. You ROCK!!!!! :)
How did you know which template I am using?
Cheers,
Peter
Nick Texidor said:Hi Peter,It looks like you changed the K2.css file in the com_k2 folder, however you also have a copy in your template folder at templates/gk_corporate2/css/k2.css You need to change that one :^)NPeter Tran said:I did make th changes, but they did not work.Any idea?
Please Log in or Create an account to join the conversation.
- Peter Tran
-
- Offline
- New Member
- Posts: 5
Thanks again Nick!
P
Nick Texidor said:Thanks Peter.I looked at the source of the link you posted, at the top it shows the link to k2.css in your template folder. I had a quick look at the file and could see that the background was still set to white in the relevant tag.Glad you got is fixed
Please Log in or Create an account to join the conversation.
- Johnny Violent
-
- Offline
- New Member
- Posts: 2
had the same issue - try this. Set "Character limit for autogenerated meta description tag in items" in K2 params to "0". Or set meta description tag for item to avoid autogenerated meta tag.
Hope it works for you as did for me.
Johnny.
Please Log in or Create an account to join the conversation.
- Depaul Snossis
-
- Offline
- New Member
- Posts: 5
this is what i did as well as the .css changeNick Texidor said:I know you asked Lorne, Mark, but I thought I'd chime in with an answer. I'm sure Lorne will provide more details though.
I believe there are two options currently:
1) Using the K2 Fields plugin. I believe this works in conjunction with the GoogleMaps Plugin available on JED. You create an Extra Field of map type, where you can specify the latitude and longitude of the location, and the K2 Item uses the GoogleMaps plugin to create the map with the marker on it on the Item page.
2) Using the K2 Maps plugin. This is the method I used. You simply install and enabled the K2 Maps plugin, and it adds some extra input fields underneath the Item text. When the Item is then displayed via the front end, a map is displayed under the extra fields. You can see the K2 Maps plugin in action over on a site I'm currently putting together for a client, www.gatorglob.com, just click on any of the restaurants in the drop down in the left hand side. I have no affiliation with the developer of the K2 Maps plugin, except for fixing a few small issues with it for him, however as mentioned earlier, I'm currently just finishing up development of a K2 Maps Module, which you can see on the home page of the aforementioned site, which dynamically plots all the co-ordinates for items in a category. What I might do, if I get the time, is see whether it's possible for me to extend this K2 Maps Module to work with the K2 Fields option mentioned above. That way, you can choose either plugin to specify the co-ordinates and still have a dynamically updated map of all locations.
I hope you don't mind me stepping into your conversation!
N
Mark Banks said:@ Lorne - what steps did you have to take to enable the Google Map plugin to work with K2 and show the maps in the articles? regards, Mark
Please Log in or Create an account to join the conversation.
- Depaul Snossis
-
- Offline
- New Member
- Posts: 5
I believe there are two options currently:
1) Using the K2 Fields plugin. I believe this works in conjunction with the GoogleMaps Plugin available on JED. You create an Extra Field of map type, where you can specify the latitude and longitude of the location, and the K2 Item uses the GoogleMaps plugin to create the map with the marker on it on the Item page.
2) Using the K2 Maps plugin. This is the method I used. You simply install and enabled the K2 Maps plugin, and it adds some extra input fields underneath the Item text. When the Item is then displayed via the front end, a map is displayed under the extra fields. You can see the K2 Maps plugin in action over on a site I'm currently putting together for a client, www.gatorglob.com, just click on any of the restaurants in the drop down in the left hand side. I have no affiliation with the developer of the K2 Maps plugin, except for fixing a few small issues with it for him, however as mentioned earlier, I'm currently just finishing up development of a K2 Maps Module, which you can see on the home page of the aforementioned site, which dynamically plots all the co-ordinates for items in a category. What I might do, if I get the time, is see whether it's possible for me to extend this K2 Maps Module to work with the K2 Fields option mentioned above. That way, you can choose either plugin to specify the co-ordinates and still have a dynamically updated map of all locations.
I hope you don't mind me stepping into your conversation!
N
Mark Banks said:@ Lorne - what steps did you have to take to enable the Google Map plugin to work with K2 and show the maps in the articles? regards, Mark
Please Log in or Create an account to join the conversation.
- ATHANASIOS ILIOPOULOS
-
- Offline
- Senior Member
- Posts: 46
Though i am new to K2 i think that it is a great, well designed component. In my site i am using google maps (Google Maps plugin) extensively so it is quite pitty for my that K2 items appear to be buggy when there is a google map loaded into an item.
I will try the solution proposed in this thread however i think that K2 developers should fix this bug.
Please Log in or Create an account to join the conversation.
- Paul
-
- Offline
- Senior Member
- Posts: 58
I changed my com/k2 css bg and in the template file, still showing no transparency on the marker on the google map,
When I look at firebug, i can see a background value of #ffffff at the line I have deleted in the template css file, odd
P
Please Log in or Create an account to join the conversation.
- Paul
-
- Offline
- Senior Member
- Posts: 58
Depaul Snossis said:
change the mootolls to the "not" mootools option in the plug in parameters Nick Texidor said:I know you asked Lorne, Mark, but I thought I'd chime in with an answer. I'm sure Lorne will provide more details though. I believe there are two options currently:
1) Using the K2 Fields plugin. I believe this works in conjunction with the GoogleMaps Plugin available on JED. You create an Extra Field of map type, where you can specify the latitude and longitude of the location, and the K2 Item uses the GoogleMaps plugin to create the map with the marker on it on the Item page.
2) Using the K2 Maps plugin. This is the method I used. You simply install and enabled the K2 Maps plugin, and it adds some extra input fields underneath the Item text. When the Item is then displayed via the front end, a map is displayed under the extra fields. You can see the K2 Maps plugin in action over on a site I'm currently putting together for a client, www.gatorglob.com, just click on any of the restaurants in the drop down in the left hand side. I have no affiliation with the developer of the K2 Maps plugin, except for fixing a few small issues with it for him, however as mentioned earlier, I'm currently just finishing up development of a K2 Maps Module, which you can see on the home page of the aforementioned site, which dynamically plots all the co-ordinates for items in a category. What I might do, if I get the time, is see whether it's possible for me to extend this K2 Maps Module to work with the K2 Fields option mentioned above. That way, you can choose either plugin to specify the co-ordinates and still have a dynamically updated map of all locations.
I hope you don't mind me stepping into your conversation!
N
Mark Banks said:
@ Lorne - what steps did you have to take to enable the Google Map plugin to work with K2 and show the maps in the articles? regards, Mark
Please Log in or Create an account to join the conversation.
- ATHANASIOS ILIOPOULOS
-
- Offline
- Senior Member
- Posts: 46
Please Log in or Create an account to join the conversation.