Add Google Business Hours to Website

We were wondering how to do this and never got it working till today. We wanted this in the footer of Joomla site running Gantry 5 template. Regular Labs Sourcer plugin was already installed. This will allow us to add some PHP in a Custom HTML module, and put the code in the footer position. Here was the code that was needed.

    $curlURL = '';
    $curl = curl_init($curlURL);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1 );
    $response=curl_exec( $curl );
        $day = jddayofweek($i,1);
        echo($day.": ".substr($response,$start,stripos($response,'\"]',$start)-$start)."<br />");

We got this from the following link:

To get our Company business ID we used the following link.

We typed in our business name, found our listing, and when we clicked on the red location arrow we got our business listing ID. Everything worked but the hours weren’t quite right. As we messed with it to get it right we suddenly started getting a different error.

302 Moved
The document has moved here.
Wednesday: http-equiv="content-type" content="text/html;charset=utf-8"> 

This error happens now due to too many requests. Going to give it some time to see if we can get it worked out from a different IP or wait a day or two.

After a couple of days we ended up putting a PHP file with the code above in the templates/hydrogen/html folder and using Sourcer plugin to “include” the code into a custom HTML module. This worked perfectly.

Let us know if this helped you…

What is

These are safe to click on. We were signing up a new user to a website, but the email the user received had the username and password changed to “….”. It turned out to be the new Barracuda spam filter the client had put in was blocking the “username” and “password” being sent through the email.

Here is the link to the Barracuda spam filter service.

This is Barracuda’s “real-timeURL analysis rewriting the URLs. Bad URLs get directed to Barracuda’s warning, and good URL‘s go through. These “redirected” URLs don’t go away so they don’t expire, so those old links will still work. There is more information here on Barracuda’s site.

Let us know if this helped you…

Translate »