London Underground widget
-
I need to add a scripted widget from London Underground, but WordPress removes the script: <div style=”width:260px”><script language=”JavaScript” src=”http://www.tfl.gov.uk/tfl/syndication/widgets/serviceboard/embeddable/serviceboard-iframe-stretchy.js”></script></div>
I am authorized to use it because the Transport for London site says it can be used by anyone, therefore I don’t understand why WordPress isn’t allowing me to do it.
The blog I need help with is: (visible only to logged in users)
-
Certain types of code are stripped out by the WordPress.com software as they can introduce security vulnerabilities that would put all sites at risk. It looks like TFL lets you add buttons and banner images instead, those should work!
-
It’s because it uses JavaScript. WordPress.com doesn’t allow JavaScript, as it can contain malicious code, but WordPress.org does. A lot of sites supplying WordPress widgets will just refer to ‘WordPress’ without understanding the difference between the two versions. Since TFL updated their website I haven’t found a non-JavaScript solution that works with WordPress.com, the best I could find is a simple link like: http://www.tfl.gov.uk/tube-dlr-overground/status/ (you can see how I’ve used it on http://www.leytonstonetoday.net). On a private WordPress.com site I set up 18 months or so ago I had a live feed from Walthamstow, but I don’t think you can do that now as TFL have removed the way they did that. But it’s a JavaScript issue, not a copyright type issue. If you find a better way, I’d be interested to know!
-
Another approach may be to try to use the TFL Twitter feed, which you can embed in a WordPress.com widget. You could go on Twitter and try to tackle TFL on this issue, after all putting this info on your website helps them too.
-
@theworldisyouroystercard
I recommend hiring a web host http://wordpress.org/hosting and setting up your own wordpress.org install, as opposed to getting into convoluted workarounds that can end up becoming broken links when software is updated.Here’s a summary of what’s involved in making the move.
WordPress.com and WordPress.org are completely separate.
http://support.wordpress.com/com-vs-org/1. Hire a web host and purchase a domain http://wordpress.org/hosting/
2. Set up a WordPress.org install and equip it with a theme and plugins.
http://wordpress.org/themes/
http://wordpress.org/plugins/3. To move your content you need to create an XML export file of your content. It will not include the theme and widgets as they cannot be exported. Export your content out of your WordPress.com blog http://en.support.wordpress.com/export/ and import it into the install.
4. WordPress.com is the top level domain here and all blogs hosted by WordPress.com are on .wordpress.com sub-domains. Purchase a site redirect upgrade from wordpress.com
http://en.support.wordpress.com/site-redirect/
or if you have domain mapping then see here http://en.support.wordpress.com/domains/move-domain/#change-name-servers-to-point-the-domain-outside-of-wordpress-com and here http://en.support.wordpress.com/domains/move-domain/5. Transfer subscribers. See http://en.support.wordpress.com/moving-a-blog/moving-your-subscribers/
6. Set your wordpress.com blog visibility to private. To change blog visibility to private go to > Settings > Reading scroll to Blog Visibility and choose option 3 . See the guide here http://en.support.wordpress.com/settings/privacy-settings/
Alternatively you can purchase a Guided Transfer and Staff will do the move and set up for you http://en.support.wordpress.com/guided-transfer/
WordPress.com and WordPress.org have different log-ins and run different versions of themes with same names. If you don’t have a username account at WordPress.ORG click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, so you can post to the support forums there and receive advice from WordPress.ORG bloggers.
WordPress.com and WordPress.org are completely separate and have different logins, features, run different versions of some themes with the same names, and have separate support forums http://support.wordpress.com/com-vs-org/
If you don’t have a username account at WordPress.ORG click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, so you can post to the support forums there and receive advice from WordPress.ORG bloggers.
- The topic ‘London Underground widget’ is closed to new replies.