Forum Replies Created

Viewing 15 replies - 31 through 45 (of 140 total)
  • Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Huh. Interesting. Good to know. And thank you for letting us know the results that worked for you. Good luck with your project.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Sorry to hear you are experiencing problems with our plugin. Thank you for the link to the page.

    I can see that the page code is showing HTML paragraphs <p> ... </p> being inserted into the middle of the code that runs the plugin. This is probably what’s breaking the code.

    The widget you are using may be the culprit. It looks like you are using the standard text widget <aside id="text-4" class="widget widget_text">. They updated this widget recently to include the visual editor option. Please try adding our shortcode under the “Text” tab and let me know if that fixes the issues.

    Forum: Plugins
    In reply to: [CongressLookup] API Keys
    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Ahhh… Yeah, that “enable” step has tripped up several people. Glad you got it sorted out! And, you’re welcome 😀 Please consider giving us a review.

    Forum: Plugins
    In reply to: [CongressLookup] API Keys
    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    There are a number of reasons for this error that could have nothing to do with APIs. Please do the following two things:

    #1 Please update to version 3.0.1 which was just released.
    #2 Go to the main plugin page and scroll down until you come to the Trouble Shooting section. Please work through these steps and see if any of them fix your issue.

    If you still can not get it to work, please report back and we’ll get to the bottom of it.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Great. Glad to hear it’s now working.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Were you able to get it working?

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    The current version of our plugin is 3.0. If you have an earlier version you have to update the plugin to the latest one. When you do so, the CongressLookup setting page will look like this and have two Google API fields:

    https://ps.w.org/congresslookup/assets/screenshot-2.jpg

    Please report back the results.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    The error you are getting says:

    “Google Maps API error: ApiNotActivatedMapError https://developers.google.com/maps/documentation/javascript/error-messages#api-not-activated-map-error&#8221;

    The Google Maps JavaScript API is not activated on your API project. You may need to enable the Google Maps JavaScript API under APIs in the Google API Console.

    Please check that you have activated the APIs.

    And, in WP Admin > Settings > CongressLookup, make sure you are using your original API Key in the Map field and the new Civics API Key in the Civics field.

    Please report back with the results.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    I’m sorry you are having problems with the plugin.

    Will you send me a link to your website so I can explore this further? If you are not comfortable adding it here you can use the contact form on CongressLookup.com

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    The problem was not with the working of the plugin but with the instructions not being complete. When you create the new API key, you have to also enable the Civic information. Here are the complete instructions:

    To display the contact information for each Congress person we now use the Google Civic Information API which requires a separate API key. To receive one:
    * Using your Google account, login to the Google API Console. Here you create a project if you don’t already have one.
    * Click “Create credentials”.
    * Choose “API Keys” (do not restrict). Copy and save this key to use in the CongressLookup settings.<br>
    Now you have to enable the Civic API:
    * Click the “Library” side menu tab.
    * In the search field enter “Civic”.
    * Click on the “Google Civic Information API” link.
    * Then click the word “Enable”.
    * On your website, go to: Settings > CongressLookup > Configuration. Paste the Civic API key in the Google Civic API Key field.
    * Save CongressLookup settings.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    I’m sorry you are having an issue. I see that there is an issue and I have contacted the coder. It being a weekend it may be Monday before I hear back from him. I will get this resolved as quickly as possible and report back. Thank you for your patience.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Good question.

    CongressLookup is more of a “bridge” that uses Google Maps API and the Sunlight Labs Congress API (now managed by ProPublica). The Congress API did have an email variable but it was essentially useless as nearly all Congresspeople now use contact forms to cut down on spam.

    We have added some hooks that you may be able to use for this purpose. If you look in our FAQs it gives you examples:

    Q: Do you have hooks to modify the output?
    A: Yes. As of version 2.1.8 we have added the following hooks:

    “congress_results” filter to modify array returned by api
    “congress_field” filter to modify field title
    “congress_value” filter to modify field value
    “congress_output” filter to modify output per field

    CONGRESSLOOKUP HOOK FILTERS EXAMPLES…

    If you need additional hooks they can be added.

    We also offer a JavaScript input area under the custom shortcode section that might also be helpful to you.

    If the preceding information was not helpful to you, please let me know.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Absolutely. Go to WP Admin > Settings > CongressLookup > Custom Shortcode > Add Shortcode

    There you’ll find a number of setting, one of which is “Default Center Address”. Just use the shortcode just like any other one. And you can use multiple shortcodes throughout your site.

    Please let me know if you have any additional questions.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Hello @ammbo,

    Yes. Sunlight Labs is no more and ProPublica has taken over the database. They no longer require an API Key. HOWEVER, If you are using the most recent version of CongressLookup there are instructions under Settings > CongressLookup on how to get a key for Google Maps which is now required.

    Let me know if you are still having problems.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Great news! I’m glad that fixed it. I will add this to the troubleshooting instructions.

    Good luck.

Viewing 15 replies - 31 through 45 (of 140 total)