Display Google Business Reviews at my homepage Topic is solved

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
monsterazor
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jun 25, 2019 10:45 am

Display Google Business Reviews at my homepage

Post by monsterazor » Tue Jun 25, 2019 10:57 am

Hi everyone;

I want to display Google Business reviews at my homepage. There are some extentions for it but there are paid and really expensive. So I have been looking for alternative ways to solve it and I find a page about that.

https://www.launch2success.com/guide/di ... site-2017/

I created custom module and add below codes as source code. But nothing displayed.

Code: Select all

<div id="google-reviews"></div>

<link rel="stylesheet" href="https://cdn.rawgit.com/stevenmonson/googleReviews/master/google-places.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/stevenmonson/googleReviews@6e8f0d794393ec657dab69eb1421f3a60add23ef/google-places.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=*********************_-0&signed_in=true&libraries=places"></script>

<script>
jQuery(document).ready(function( $ ) {
   $("#google-reviews").googlePlaces({
        placeId: '******************' //Find placeID @: https://developers.google.com/places/place-id
      , render: ['reviews']
      , min_rating: 4
      , max_rows:4
   });
});
</script>
I'm waiting for your replies.
Thanks...

User avatar
CyrusXxX
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 216
Joined: Wed Oct 04, 2017 6:23 am
Location: Belgrade Serbia
Contact:

Re: Display Google Business Reviews at my homepage

Post by CyrusXxX » Sun Jun 30, 2019 11:35 pm

Hello, monsterazor Is your text editor striping codes?

Try following this manual:

https://www.websolutionz.com.au/blog/di ... -on-joomla

Same thing but with RegularLabs Sourcerer code button.
https://extensions.joomla.org/extension/sourcerer/

P.S. I hope I do not have to mention that when you obtain api key from google you need to add your domain to list of allowed domains for api to work.
Knowledge is power and power is knowledge.

https://regenesiscomputers.com

monsterazor
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jun 25, 2019 10:45 am

Re: Display Google Business Reviews at my homepage

Post by monsterazor » Fri Jul 19, 2019 11:13 am

CyrusXxX wrote:
Sun Jun 30, 2019 11:35 pm
Hello, monsterazor Is your text editor striping codes?

Try following this manual:

https://www.websolutionz.com.au/blog/di ... -on-joomla

Same thing but with RegularLabs Sourcerer code button.
https://extensions.joomla.org/extension/sourcerer/

P.S. I hope I do not have to mention that when you obtain api key from google you need to add your domain to list of allowed domains for api to work.
According to your post I installed 'Sourcer' extension. It solved striping code issues and all codes what I added shown perfectly. Also I followed instructions of manual but any comment wasn't displayed. I checked my API key and it is activated already. What can I do differently ?

User avatar
CyrusXxX
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 216
Joined: Wed Oct 04, 2017 6:23 am
Location: Belgrade Serbia
Contact:

Re: Display Google Business Reviews at my homepage

Post by CyrusXxX » Sat Jul 20, 2019 10:32 am

monsterazor wrote:
Fri Jul 19, 2019 11:13 am
CyrusXxX wrote:
Sun Jun 30, 2019 11:35 pm
Hello, monsterazor Is your text editor striping codes?

Try following this manual:

https://www.websolutionz.com.au/blog/di ... -on-joomla

Same thing but with RegularLabs Sourcerer code button.
https://extensions.joomla.org/extension/sourcerer/

P.S. I hope I do not have to mention that when you obtain api key from google you need to add your domain to list of allowed domains for api to work.
According to your post I installed 'Sourcer' extension. It solved striping code issues and all codes what I added shown perfectly. Also I followed instructions of manual but any comment wasn't displayed. I checked my API key and it is activated already. What can I do differently ?
Hello monsterazor, can you confirm that api key is allowed for your domain (Credentials section in google dev console) and that you have added them with www and without www prefix.

Also can you share url where module is created and published?
Knowledge is power and power is knowledge.

https://regenesiscomputers.com

monsterazor
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jun 25, 2019 10:45 am

Re: Display Google Business Reviews at my homepage

Post by monsterazor » Sat Jul 20, 2019 8:54 pm

Image

Image

monsterazor
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jun 25, 2019 10:45 am

Re: Display Google Business Reviews at my homepage

Post by monsterazor » Sun Jul 21, 2019 9:21 am

Image

Image

User avatar
CyrusXxX
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 216
Joined: Wed Oct 04, 2017 6:23 am
Location: Belgrade Serbia
Contact:

Re: Display Google Business Reviews at my homepage

Post by CyrusXxX » Sun Jul 21, 2019 12:49 pm

Remove / on the second domain url
also you are having issues on your website which might affect what you are trying to do. Related to js conflicts and wrong implementation of google api codes.
Knowledge is power and power is knowledge.

https://regenesiscomputers.com

monsterazor
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jun 25, 2019 10:45 am

Re: Display Google Business Reviews at my homepage

Post by monsterazor » Tue Jul 23, 2019 10:42 am

CyrusXxX wrote:
Sun Jul 21, 2019 12:49 pm
Remove / on the second domain url
also you are having issues on your website which might affect what you are trying to do. Related to js conflicts and wrong implementation of google api codes.
Hi again;
I removed / from domain url. But I didn't understand exactly what you said about my site codes. What can I do to solve this issues ?

User avatar
CyrusXxX
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 216
Joined: Wed Oct 04, 2017 6:23 am
Location: Belgrade Serbia
Contact:

Re: Display Google Business Reviews at my homepage

Post by CyrusXxX » Tue Jul 23, 2019 12:08 pm

Hi again;
I removed / from domain url. But I didn't understand exactly what you said about my site codes. What can I do to solve this issues ?
Hello monsterazor, you have js conflicts on your website and errors of wrong implementations of google apis on your website.
Fix those issues and implement your api keys properly.
Knowledge is power and power is knowledge.

https://regenesiscomputers.com

monsterazor
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jun 25, 2019 10:45 am

Re: Display Google Business Reviews at my homepage

Post by monsterazor » Wed Aug 14, 2019 12:39 pm

Hi again;

I solved problem and I want to share solution.

I created module on Joomla. But codes was I added was stripped every try. After that I installed sourcerer according to CyrusXxX's post. Code stripping issue solved by this.
After that I acrivated Google Maps JS API and Google Places API at Google Dev.

Finally at Google Developer Console - Credentials section;
I created API key and I restricted with Google Maps JS api.
After that I created second API key and I restricted with Google Places API.

And all problems was solved. At now all last comments showing perfectly at my webpage.
You can check my website.
I hope that I can help to who have same issue with this solution.

Thanks for all your helps.


Post Reply

Return to “Extensions for Joomla! 3.x”