ConstructiveGrowth
Forum Replies Created
-
Forum: Plugins
In reply to: [CongressLookup] Not working as a widgetHuh. Interesting. Good to know. And thank you for letting us know the results that worked for you. Good luck with your project.
Forum: Plugins
In reply to: [CongressLookup] Not working as a widgetSorry 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.- This reply was modified 8 years, 3 months ago by ConstructiveGrowth.
Forum: Plugins
In reply to: [CongressLookup] API KeysAhhh… 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 KeysThere 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.
Forum: Plugins
In reply to: [CongressLookup] Plugin Not WorkingGreat. Glad to hear it’s now working.
Forum: Plugins
In reply to: [CongressLookup] Plugin Not WorkingWere you able to get it working?
Forum: Plugins
In reply to: [CongressLookup] Plugin Not WorkingThe 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.
Forum: Plugins
In reply to: [CongressLookup] Plugin Not WorkingThe error you are getting says:
“Google Maps API error: ApiNotActivatedMapError https://developers.google.com/maps/documentation/javascript/error-messages#api-not-activated-map-error”
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.
Forum: Plugins
In reply to: [CongressLookup] Plugin Not WorkingI’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
Forum: Plugins
In reply to: [CongressLookup] Plugin not working after updateThe 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.Forum: Plugins
In reply to: [CongressLookup] Plugin not working after updateI’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.
Forum: Plugins
In reply to: [CongressLookup] Adding Email to List of DataGood 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 fieldCONGRESSLOOKUP 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.
Forum: Plugins
In reply to: [CongressLookup] specify starting map addressAbsolutely. 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.
Forum: Plugins
In reply to: [CongressLookup] Getting a 404 in WP-AdminHello @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.
Great news! I’m glad that fixed it. I will add this to the troubleshooting instructions.
Good luck.