I forgot to mention that you'll need to load the script and wait until the JS is finished loading before calling it's functions.
So try this: common.css: @import url('http://s3.amazonaws.com/getsatisfaction.com/feedback/ feedback.css');
common.js: importScriptURI("http://s3.amazonaws.com/getsatisfaction.com/feedback/ feedback.js"); addOnloadHook(function importGSFN(){ var tab_options = {} tab_options.placement = "right"; // left, right, bottom, hidden tab_options.color = "#FFF"; // hex (#FF0000) or color (red) GSFN.feedback('http://getsatisfaction.com/jetblue/feedback/topics/ new?display=overlay&style=idea', tab_options);});
The thing about adding the container still applies with this code.
On Apr 12, 2009, at 2:38 PM, Jeremy Baron wrote:
There's no need to write an extension or modify any php.
You can accomplish that just by modifying common.js and common.css ( http://www.mediawiki.org/wiki/Manual:Interface/Common.js , http:// www.mediawiki.org/wiki/Manual:Interface/Common.css )
It looks like part of it is just a floating iframe w/ position fixed + absolute so it might be fine out of the box but you might end up having a piece placed at an undesirable location. (possibly changing from page load to page load or browser to browser)
If there are any problems you can use an undocumented feature of their JS (at least not documented at getsatisfaction.com/widgets ): add this line before GSFN.feedback: tab_options.container = "mycontainerid"; add a div somewhere on your site with that id Then the getsatisfaction html will be placed in that container div instead of just document.write'ing. "mycontainerid" can be whatever you want (assuming no conflicts with Since it's an undocumented feature there's no guarantee that it won't break without notice.
On Apr 12, 2009, at 1:35 PM, Bobby S wrote:
I am trying to add the Get Satisfaction widget to Mediawiki. Here is some sample code:
<style type='text/css'>@import url('http://s3.amazonaws.com/getsatisfaction.com/feedback/ feedback.css');</style>
<script src='http://s3.amazonaws.com/getsatisfaction.com/feedback/ feedback.js' type='text/javascript'></script>
<script type="text/javascript" charset="utf-8"> var tab_options = {} tab_options.placement = "right"; // left, right, bottom, hidden tab_options.color = "#FFF"; // hex (#FF0000) or color (red) GSFN.feedback('http://getsatisfaction.com/jetblue/feedback/ topics/new?display=overlay&style=idea', tab_options); </script>
Does anyone know how I could do this? I assume there are two routes - one directly in Monobook.php and another as an extension. I'm actually surprised there isn't an extension for this, but could anyone help me out on what to do?
Thanks! Bobby