Install Buying Buddy on Duda

There are 4 steps to install and setup Buying Buddy on your Duda website:

  1. Get a Google Map API Key.
  2. Install the Buying Buddy plugin as JavaScript.
  3. Create 2 new web pages and add the "results" and "details" widget short codes to them.
  4. Setup Social Share settings.

This article provides detailed instructions to guide you through these steps.

NOTE:
1. Website Type.
Make sure you have set your website type as a 'Duda' site in Plugin Installation and Settings.
This then ensures that you see the correct install code required for your Duda website.

2. Staging Domain / "Sorry this domain is not authorized"
Your Buying Buddy widgets are authorized to work on your IDX approved domains only.
When you are in Duda development area your site may be displayed using a Duda subdomain such as:
https://my.duda.co/home/site/(site-id}
and so instead of seeing the widgets you will see a loading icon or a message that says: "Sorry this domain is not authorized".
(Seeing this message means that the widgets and Plugin JavaScript are indeed working correctly!)
Also - the preview URL for Duda can also have a different URL too!

Duda Staging Domain

If you need your staging / development and preview domains to be authorized, please submit a help ticket and request a staging domain and tell us the domain you need authorized. When we authorize a staging domain for Duda, you must also add the full folder and page slugs to the 2 foundation pages too.
For example, if your staging link is something like this:
https://my.duda.co/home/site/412dec21
Then we will authorize this domain: "my.duda.co"
And, for Foundation Pages in "Plugin Installation and Settings", you will need to specify the page addresses as follows:
/home/site/412dec21/results (for search results)
/home/site/412dec21/details (for property details)

Don't forget to ALSO add these domains (in this case with the full URL - not just the domain name) as authorized referrers to your Google Maps API key too if you want to see the map loading. This is not needed of course, but would be useful where you want to see it all working in development mode.

When Editing and Previewing a Duda site, there can be separate 3 domains you may want to authorize while editing and previewing. Let us know with a help ticket if you need to have these added as additional staging domains.

Step 1: Get your Google Map API Key

A Google Map API key is required.

A Google Map API Key is required for any widget that uses a map. Widget features that do not use the map will function normally without a map key.
You should not postpone getting a Map Key - do this straight away so that everything works and you do not have to repeat this process.

Note: If this is a production or live website, you should obtain a Map Key.

Even if the Google Maps JavaScript library is being loaded (including a valid API Key) by third party code in you website, you must STILL add your Google Map API Key here.

Follow these instructions to Get a Google Map API key.
When you have created your Key, make sure it is added to Plugin Installation and Settings in your Buying Buddy account before proceeding with the next step.

Step 2: Add Buying Buddy Plugin to your Site

Step 2a: Get the Buying Buddy JavaScript Library Code

If you have not added the Google Map API key to your Buying Buddy account (Plugin Installation and Setup), then you will see Google warning messages on all maps.

  1. Login to your Buying Buddy dashboard at leadsandcontacts.com.
  2. Go to Plugin Installation and Settings for your website.
    Menu Widgets > Plugin Installation and Settings
  3. Select the appropriate website.
    On the Installation Overview tab, make sure that your site is set as a Duda site.
    For a Duda website you will be shown the JavaScript that is your Buying Buddy Plugin.
  4. Go to the "Add Plugin" tab and COPY the plugin code that is provided for YOUR website.

Step 2b: Add The Plugin to Your Site

Now login to your Duda website dashboard where you can edit your site.

  1. Go to the SETTINGS section for your website
  2. In SETTINGS, then click on HEAD HTML
  3. Paste the Buying Buddy JavaScript code (see above) in the HEAD HTML section and then click SAVE.
    IGNORE any warning messages you see about SCRIPT loading in the HEAD. This is required for Buying Buddy function.

This ensures that the Buying Buddy JavaScript is loaded on every page in your website. DO NOT MODIFY THE CODE.

Ensure that the Buying Buddy JavaScript is ONLY added once using the method described above.

Save Some Time Later!

While you are still in Settings you should also add the "Disclaimer Widget" to the footer so that it shows on every page. If you don't do this, then the MLS Disclaimer will be shown directly underneath all widgets. So the "Disclaimer Widget" helps keep your pages clean by showing the required disclaimers in the footer area.
See Disclaimer Widget Reference to learn more about this.

To add the Disclaimer widget:
in the Code Injection settings panel, scroll down to the FOOTER panel and paste in this code:
<div id="MBBv3_Disclaimer"></div>

Step 3: Add Foundation Pages with Widgets

Follow these instructions carefully. In summary:
* Create 2 live pages that should NOT be in your menus (they are reserved for use by Buying Buddy).
* Add the correct widget specified to each page. Only add one widget to each page.
* Ensure that these page addresses are correctly added to the "Foundation Pages" section in Plugin Installation and Setup in your Buying Buddy account.

Step 3a: Add 2 Foundation Pages

Create and 2 new pages that are required for Buying Buddy:

  • Results Page
  • Property Details Page

Plus, you should add a Search Form widget on any other different page too for testing.

  1. Go back to your Duda site editor, and create two BLANK PAGES.
    We suggest you give them appropriate titles, such as "Results" and "Details".
  2. Click the 'cog' icon for each page
    • Set the Page URLs to be "/listing-results" and "/listing-details" so that they match the default slugs in Foundation Page settings in your Buying Buddy account.
      (These URLs can be anything you like as long as they match the Foundation Page settings (see 3c. below).
    • For each page select "Hide In Navigation > Hide on all"
      so that these 2 pages are NOT be displayed in the menu.

Step 3b: Add Widgets to the 2 Foundation Pages you just created

TIP!
The "results" and "details" look best when they are placed in a container that can be the full width of the browser.

  1. Next, Edit the new "results" page.
  2. Add any columns or blocks for your page layout.

    TIP! You may want to change the "row" settings so that the row is "full bleed" - this will make the results full screen.

    Then, right click the block where you want to place the Buying Buddy widget - and choose "Edit HTML/CSS".
    Paste the following short code for the Buying Buddy "Results" widget:
    <div id="MBBv3_ListingResults"></div>


  3. SAVE your page.
  4. VERIFY. Once you have SAVED this page, preview it to see Buying Buddy results widget being displayed on the authorized domain (this will not display if you are using a sandbox development domain).
    Excellent! You have set up the Results Foundation Page.
  5. NOW REPEAT the above steps to setup your Details page ** Do not forget to do this! **
    TIP! You may want to change the "row" settings so that the row is "full bleed" - this will make the details full screen.

    The Widget short code to use is:
    <div id="MBBv3_SearchDetails"></div>

    Note: The details widget may display a SQL error if you preview it - ignore this.
    Excellent! You have now set up the Details Foundation Page.
  6. Finally, paste the Search Form widget to any other page using the process described above (this is for testing the search - this is not a foundation page).
    (Do not add the search widget to your "results" or "details" pages as this will break the widgets.)

    The Search form short code is:
    <div id="MBBv3_SearchForm"></div>

    Before testing - complete the next step!

Step 3c: Configure your Buying Buddy account so that page names match

It's important that the Buying Buddy system knows the page address you used for your Foundation Pages.
Buying Buddy needs to know where to go to show search results, and where to direct your leads (via emails etc.) to see search results and details of a specific property.
So in this step, you will update the Foundation Page settings in your Buying Buddy dashboard, to match the actual page addresses you created.

  1. In your Buying Buddy dashboard, navigate to Plugin Installation and Settings.
    Menu Widgets > Plugin Installation and Settings
    Then select the domain.
  2. Click the "Foundation Pages" tab to review the page addresses of the Widget Foundation pages.
  3. Check the page names shown and update them if needed.
  4. You will see that they are probably shown as /listing-results and /listing-details. If the details and results pages are using different slugs, then you need to change these to say the actual names of the pages you created, and in the browser when viewing these pages you will see the full address.

    NOTE: Use the actual page names for YOUR site - don't assume that they are the same as shown in this example!

Step 4: Enable Property Sharing

Stay in the Plugin Installation and Settings page in your Buying Buddy account for this next step!
Go to the Social Share Settings tab.

To ensure that the social share options can be used to share properties from your website on Facebook etc, you must add an A RECORD to your domain's DNS records.

  1. Menu Widgets > Plugin Installation and Settings
    Then go to "Social Share Settings" tab
  2. Modify the DNS records for your domain as follows:
    Add an A-RECORD for the subdomain "bb"
    to point to: 52.206.194.238
  3. Once you have added your A-RECORD, set the 'Social Share Option' (below) to be YES, and Save settings.

Troubleshooting

"SQL Error" on Details Page

If you see this message then this is because you are attempting to view the Property Details widget on a page on its own without a reference to a property! Ignore this, the widget is installed correctly and this error is never seen.

Staging / "Sorry this domain is not authorized"

If you see a message that says "Sorry this domain is not authorized", then this means that the Widgets and Plugin JavaScript are indeed working correctly, BUT that your page address is a domain that is not authorized to display Buying Buddy Widgets. It is probably a staging domain that Duda has applied while you are in the editor of your website,
e.g. "https://my.duda.com/xxxx/xxxx"

There are two options for dealing with this:

  1. Make sure your actual domain name is applied and working - and then view the "live" site in which case widgets will be displayed correctly. You can then choose to ignore this message while in development.
  2. If you need to do more extensive development then you can request (via Help Desk) to add your Duda development staging domain as an extra (free) "authorized" domain on your account.
    We call this a 'sandbox' development URL and it would be authorized temporarily while you do development.

Step 5: Doing More

Your Duda site editor will allow you to create custom search forms and use all the capabilities of the Buying Buddy widgets.

Some example that you may like to consider include;

  • Adding a Featured Listings page to display your own listings
  • Showing your Sold properties
  • Creating neighborhood pages with properties for neighborhoods
  • Adding lead capture forms that send leads directly to the Buying Buddy CRM
  • Adding a general contact form widget
  • and a lot more!

You can now use Widget Themes to style widgets - or even add custom CSS too if you wish to.

See our demonstration websites for ideas and inspiration

If you need more help please contact us.

Updated on April 16, 2024

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support
Buying Buddy Support