Knowledgebase
View categorized listing of all common frequently asked questions.
Video Tutorials (jReviews 2.0)
Create a Movie & TV Show review website.
Customize the jReviews themes.
Review user profiles with the Everywhere addon.
Forum
Community forum
Submit a Ticket
Use your client area email to access the ticket system.
Downloads
Guides, modules and more...
CSV Import for Joomla and jReviews
 
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 08:11:39 PM
21714 Posts in 4960 Topics by 2844 Members
Latest Member: chotchcala
News: Use your client area email when you sign up to the forum so we can identify you as a trial or licensed user. Otherwise we may not answer your questions.
 
jReviews Support Forum  |  jReviews 1.x  |  Tips & tricks  |  Google maps API plugin « previous next »
Pages: 1 [2] 3 4 5
Author Topic: Google maps API plugin  (Read 20386 times)
andreasa
Hero Member
*****
Offline Offline

Posts: 271



WWW
« Reply #15 on: April 20, 2007, 06:48:14 AM »

remove the first _ I mean the field call is JR_XXXX and not _JR_XXXX

You need also (IMO) remove: "key='myLongGoogleAPIkey'"
and insert your google map API key in the mambot, of course I suppose that the mambot is pubblished.  Wink


Logged
CG
Jr. Member
**
Offline Offline

Posts: 43


« Reply #16 on: April 20, 2007, 12:37:11 PM »

Quote
the field call is JR_XXXX and not _JR_XXXX

OMG, for the life of me I can't believe I overlooked that!  Thank you for help and new set of eyes!  I was convinced it needed  the first _ for whatever reason.  I also took out the API key in the code and left it in the mambot and everything is working fine!

The final code looked like this:

Code:
{mosmap width='400'|height='300'|address='{JR_ADDRESS},{JR_CITY},{JR_STATE},{JR_ZIPCODE},US'|zoom='5'| zoomType='Small'|zoomNew='0'|mapType='Normal'|showMaptype='1'|overview='0'}
« Last Edit: April 20, 2007, 03:29:23 PM by CG » Logged
kristin
Newbie
*
Offline Offline

Posts: 12


« Reply #17 on: May 27, 2007, 03:58:01 PM »

I added this to com_content.html, but I only see a blank spot:

      {mosmap width='200'|height='150'|address='{JR_ADDRESS},{JR_CITY},{JR_STATE},{JR_ZIP},US'|zoom='5'| zoomType='Small'|zoomNew='0'|mapType='Normal'|showMaptype='1'|overview='0'}


Does anyone see anything wrong with this? Oh, and when I had typos, it was at least showing a map of the wrong place.  Once the typos were corrected to match the defined fields it stopped working.

Adding more info:

This does not work:
{mosmap width='150'|height='150'|address='{JR_STREET},{JR_CITY},{JR_STATE},{JR_ZIP},US'|zoom='5'| zoomType='Small'|zoomNew='0'|mapType='Normal'|showMaptype='1'|overview='0'}

But this does:
{mosmap width='150'|height='150'|address='727 East Ave,Pawtucket,RI,02860,US'|zoom='5'| zoomType='Small'|zoomNew='0'|mapType='Normal'|showMaptype='1'|overview='0'}

Also - I am attaching a screenshot of my fields.

Kristin
« Last Edit: May 27, 2007, 04:27:18 PM by kristin » Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8613


« Reply #18 on: May 27, 2007, 07:28:50 PM »

I appreciate the amount of detail you provided, it makes finding the problem easier Smiley

I think the problem might be the ordering of the mambots. Make sure the jreviews comment plugin's ordering is lower (comes before) than the google map one.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
kristin
Newbie
*
Offline Offline

Posts: 12


« Reply #19 on: May 27, 2007, 08:20:00 PM »

Thanks for the response.  Unfortunatly, I don't think that's it.   See the attached screenshot of the mambot order.
Logged
CG
Jr. Member
**
Offline Offline

Posts: 43


« Reply #20 on: May 27, 2007, 08:38:58 PM »

Yes, that's it...you need to move JReviews lower on the list...below Google Maps
Logged
kristin
Newbie
*
Offline Offline

Posts: 12


« Reply #21 on: May 27, 2007, 08:56:19 PM »

When I move google above jreviews in the mambot list, the maps stop working altogether - even for the hard-coded address. Weird.  I'll keep poking around.
Logged
kristin
Newbie
*
Offline Offline

Posts: 12


« Reply #22 on: May 27, 2007, 09:27:10 PM »

Ok, I got it.  google and/or jreview comments needed to be below the code support mambot.  And, (yes, I had 2 problems), I had turned on click to search on the city field which was causing a URL to be placed in the address field. 

Thanks for the help!
Logged
stewc
Full Member
***
Offline Offline

Posts: 80



« Reply #23 on: May 31, 2007, 01:39:29 PM »

This may be a stupid question but where in the com_component.html do I put the  code in?

TIA

Stew
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8613


« Reply #24 on: May 31, 2007, 10:56:39 PM »

Anywhere in between the patTemplate tags. It's com_content.html by the way.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
stewc
Full Member
***
Offline Offline

Posts: 80



« Reply #25 on: June 01, 2007, 12:33:11 PM »

Hi, Im having trouble getting this to work.  I inserted the code

<patTemplate:tmpl name="com_content" visibility="show" varscope="jreviewcontent" unusedvars="strip">
<!--  com_content.html  -->
{mosmap width='150'|height='150'|address='727 East Ave,Pawtucket,RI,02860,US'|zoom='5'| zoomType='Small'|zoomNew='0'|mapType='Normal'|showMaptype='1'|overview='0'}
   <div id="JR_com_content">
      <div id="itemdescription" class="JR_description contentheading"><patTemplate:translate>_JR_DESCRIPTION</patTemplate:translate></div>

      <patTemplate:tmpl name="cc1" type="simplecondition" requiredvars="customfields" varscope="jreviewcontent">
      {CUSTOMFIELDS}
      </patTemplate:tmpl>

      <patTemplate:link src="com_content_introimage" />

      {INTROTEXT}<div style="clear:both;" ><br />{FULLTEXT}</div>

      <patTemplate:link src="com_content_images" />
   </div>
   
   
   
</patTemplate:tmpl>

but all it displays is the code as txt.

I have published the bot and order is as

1.  MOS Image
2. Legacy mambot includer
3. code support
4.  Google MAPS
5.  Jreviews comment plugin
4 etc

any ideas, im stuck?HuhHuh?
« Last Edit: June 01, 2007, 12:58:13 PM by stewc » Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8613


« Reply #26 on: June 01, 2007, 03:11:21 PM »

Quote
1.  MOS Image
2. Legacy mambot includer
3. code support
4.  Google MAPS
5.  Jreviews comment plugin
4 etc

That's the wrong order. JReviews comment plugin must come before the google maps one. Otherwise the template where you made the change never gets processed before it hits the google maps mambot.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
stewc
Full Member
***
Offline Offline

Posts: 80



« Reply #27 on: June 01, 2007, 05:18:43 PM »

OK, changed order to

1.  MOS Image
2. Legacy mambot includer
3. code support
4.   Jreviews comment plugin
5. Google MAPS
6 etc

and i get this ....

Fatal error: Call to undefined function: domxml_open_mem() in w:\www\Joomla\mambots\content\plugin_googlemap2.php on line 141

line 141 is

$responsedoc = domxml_open_mem($getpage);

Now Im confused???
« Last Edit: June 01, 2007, 05:23:15 PM by stewc » Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8613


« Reply #28 on: June 01, 2007, 05:52:23 PM »

I don't know about that error, since it's not in jReviews  Tongue Try putting the jReviews comment plugin 2nd. I am guessing you don't want jReviews to generate the thumbnails in content and that is why you have the MOS Image first?
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
stewc
Full Member
***
Offline Offline

Posts: 80



« Reply #29 on: June 01, 2007, 06:40:14 PM »

I cant change the order of MOS Image - its stuck at 1

So as far as you can see I have done everything alright and the problem is not with jreviews?

Thanks
Logged
Pages: 1 [2] 3 4 5
« previous next »
    Jump to: