Comments (10)
Cool - I can reach out to ballotpedia.org. Do we have a contact there?
from askthem.
@davidmooreppf or @jpmckinney might, I don't.
from askthem.
I've never looked at ballotpedia.
from askthem.
Sorry just seeing this - try [email protected], I emailed w/ him back in June '11 when we were developing OG.
Feel free to 'cc' me. At the time he was in his email sig ::
Geoff Pallay
Project Director, State Legislatures
Ballotpedia
www.ballotpedia.org
www.lburnsinstitute.org
from askthem.
Email sent. Awaiting response ...
from askthem.
After getting your email with their response, I took it upon myself to see what whether they could use mod-rewrite to handle the pattern (rather than a redirect per se).
First thing to determine is whether they serve their site with Apache:
http://toolbar.netcraft.com/site_report?url=http://ballotpedia.org
Looks like they do.
So what they need to do is put this in their vhost config in their Apache config:
RedirectMatch 301 /wiki/index.php/Images/(.*)\.jpg$ http://ballotpedia.org/wiki/images/c/c3/$1.jpg
However, looking at the pattern of the second part again, I see "c/c3" in the path. Does that part of the path change on depending on the elected official? That may screw up the redirect match OR our own handling if it comes to that.
from askthem.
Ugh. According to this guy:
http://ballotpedia.org/wiki/images/2/23/Max_Maxfield.jpg
what comes after "/wiki/images/" in the path may vary which we have no of knowing from the original URL.
So we can't do URL hacking on our end or get them to do a simple RedirectMatch on their end.
Seems we have to actually get the data correctly updated in OpenStates (since we periodically rebuild our data from OpenStates).
from askthem.
It's worth experimenting with whether we can get the photos locally through OpenStates. See notes here:
https://www.pivotaltracker.com/story/show/50147951
from askthem.
Temporary patch: add a bit of custom logic to show placeholder image when the image path contains ballotpedia.org
from askthem.
Worked around in other ways.
from askthem.
Related Issues (20)
- Add images for VA Senators HOT 1
- new users for action network HOT 1
- Staff member can designate user account as representing a partner organization HOT 1
- When asking user is partner organization, a question's TOS are updated to notify of sharing of signatures with partner organization
- Staff members can download CSV of question signers basic information HOT 1
- homepage copy fix
- issue w/ old session? HOT 6
- Internet slowdown day modal HOT 2
- Homepage blurbs not being set as default HOT 4
- increase height of HonestAds widget zip-code box - for FF visitors
- on /map, some city names show Q's, but none listed in /questions HOT 1
- A user's email address can be turned off for notifications HOT 1
- Process AWS SNS bounce notifications by disabling user's email
- images briefly broken on production HOT 6
- name alignment with profile photos got a little wonky HOT 3
- widget design enhancements - seeking volunteer time on useful new tools
- site-wide enhancements to info display & new features
- old verified Twitter avatars not displaying as expected? HOT 2
- PPF devops tasks January 2016 - for time estimates
- reboot site-wide Recent Questions view HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from askthem.